[issue20277] default __debug__ value and asserts

2014-01-16 Thread Michael Foord
Michael Foord added the comment: Having __debug__ True by default is unintuitive and not particularly useful. However it is relatively well known, so although it is "rarely" used that probably only means hundreds of thousands of piece of code. So it isn't going to change I'm afraid. -

[issue20277] default __debug__ value and asserts

2014-01-16 Thread xwild
xwild added the comment: Yes it's acceptable, but why the debug mode is enabled by default? It's a not expected behavior. -- ___ Python tracker ___ __

[issue20277] default __debug__ value and asserts

2014-01-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Specify the -O option in she-bang: #!/usr/bin/env python3 -O -- ___ Python tracker ___ ___ Python

[issue20277] default __debug__ value and asserts

2014-01-16 Thread xwild
Changes by xwild : -- nosy: +ezio.melotti, michael.foord, pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue20277] default __debug__ value and asserts

2014-01-16 Thread xwild
Changes by xwild : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue20277] default __debug__ value and asserts

2014-01-16 Thread xwild
Changes by xwild : -- versions: -3rd party ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue20277] default __debug__ value and asserts

2014-01-16 Thread xwild
New submission from xwild: Why the python sets the "__debug__" builtin = True by default? It causes that people never use the "assert" construction by their programms in a regular way. it's too hard to explain everyone that "-O" is required by a script. It's very usefull instruction and actuall