[issue1816] sys.cmd_flags patch

Christian Heimes report at bugs.python.org
Sun Jan 13 10:14:56 CET 2008


Christian Heimes added the comment:

The new patch is using a struct sequence (like the result of os.stat):

>>> import sys
>>> sys.flags
<sys.flags (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)>
>>> dir(sys.flags)
['__add__', '__class__', '__contains__', '__delattr__', '__doc__',
'__eq__', '__ge__', '__getattribute__', '__getitem__', '__getslice__',
'__gt__', '__hash__', '__init__', '__le__', '__len__', '__lt__',
'__mul__', '__ne__', '__new__', '__reduce__', '__reduce_ex__',
'__repr__', '__rmul__', '__setattr__', '__str__', 'debug',
'division_new', 'division_warning', 'dont_write_bytecode',
'ingnore_environment', 'inspect', 'interactive', 'n_fields',
'n_sequence_fields', 'n_unnamed_fields', 'no_site', 'optimize',
'py3k_warning', 'tabcheck', 'unicode', 'verbose']
>>> sys.flags.debug
0

Please ignore the other files. They are part of my second PEP.

Added file: http://bugs.python.org/file9149/trunk_sys_flags.patch

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1816>
__________________________________


More information about the Python-bugs-list mailing list