[Python-Dev] VERBOSE and DEBUG conventions.

Steven Majewski sdm7g@Virginia.EDU
Wed, 23 Jan 2002 11:26:09 -0500 (EST)


Py_DebugFlag is used for debugging the Python parser.
Py_VerboseFlag is used for debugging and tracing imports.
 (and in some places it wants Py_VerboseFlag > 1 (more than one "-v")
   for output)

Are there any conventions on which to use for other debugging output?
(Or did Guido have any particular conventions in mind when he added
them? )

Right now, I'm using Py_VerboseFlag to also trigger logging of message
sends in pyobjc. Stealing this flag for another use isn't a problem
here because [1] the logging goes to a /tmp file, so I don't have
to turn off import tracing -- the two logging streams don't get mixed
together, and [2] it only functions when you import pyobjc, so it's
not going to get in someone else's use.

But I may need to add other debug and log output to my module and
I'ld like to do it in the least suprising manner if possible.

-- Steve Majewski