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
  • 43,505
  • 7
  • 82
  • 96

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,813
  • 4
  • 29
  • 50