These docs do not say what the maximum debug level is.
I need to know that.
These docs do not say what the maximum debug level is.
I need to know that.
I went through httplib.py and the code is littered with the following statement:
if self.debuglevel > 0:
This means there are just two levels.
Yes this could have been better documented.
Also any time you need to check such an information, you can easily look at the code.
Here is my favorite approach to locate a source file for a particular module.
>>> import httplib
>>> httplib.__file__
'/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.pyc'
Now you can just open the following file to go through it's source code
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py
As I saw from httplib.py sources there are only 2 debug levels:
This is a typical check:
if self.debuglevel > 0:
print "blablabla"
© 2022 - 2024 — McMap. All rights reserved.