4 ms·
Because Python lets you get as far as it does without formally learning everything, but is also expected to suit a huge variety of use cases, it ends up with lo
by zahlman 2mo ago
Because Python lets you get as far as it does without formally learning everything, but is also expected to suit a huge variety of use cases, it ends up with lots of hidden details that are irrelevant to most users.
The most direct way to find out about `__debug__` is to read `python -h` (or the usage message, which is not all that easy to trigger) in full, and then head over to the documentation.
> Does it actually get used that often in real world code?
https://github.com/search?q=language%3APython+%2F%28%3F-i%29__debug__%2F&type=code https://github.com/search?q=language%3APython+%2F%28%3F-i%29...