PyCF_DONT_IMPLY_DEDENT

Kay Schluehr kay.schluehr at gmx.net
Thu Jul 12 03:06:14 EDT 2007


I found this flag in codeop.py

PyCF_DONT_IMPLY_DEDENT = 0x200          # Matches pythonrun.h

It is apperantly a parser flag used in the PARSER_FLAGS define in
pythonrun.c.

Questions: what does it actually mean and why is this implementation
detail exposed to Python code. I tried to change the value and it
caused severe problems. When it is a constant anyway why does it have
to be passed to the compile function in codeop.py as a variable?

Thx




More information about the Python-list mailing list