Python Forum
using a try/except in a conditional expression
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
using a try/except in a conditional expression
#3
(Aug-13-2019, 02:46 AM)Skaperen Wrote: i'm thinking of passing lists of strings with code to exec()

Why would you do that instead of just passing functions? The idea of higher order functions (i.e. functions that take/return functions) is a very useful one and since functions are first class in Python, it's possible to write them.
Reply


Messages In This Thread
RE: using a try/except in a conditional expression - by ndc85430 - Aug-27-2019, 11:39 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020