0

Are there any guarded commands in Python? And what are they? I've searched every where, but i can't find it.

Jim Lewis
  • 41,827
  • 6
  • 83
  • 95

1 Answers1

0

The only preprocessor directive I was able to fine was the __debug__ statement as explained by this answer.

It compiles to True when running python without any optimizations (no -O flag) and can optimize certain if statements as seen here.

Community
  • 1
  • 1
Mike
  • 6,151
  • 3
  • 26
  • 48