[XML-SIG] ConfigParser.py
Fred L. Drake, Jr.
fdrake@acm.org
Fri, 1 Nov 2002 13:39:21 -0500
Fred Moscicki writes:
> I think this is the right Mailing list to send this too.
It's not. ConfigParser has nothing to do with XML.
> My program was
> trying to make use of the ConfigParser.py in the new python2.2.2 release.
> There is a variable in the ConfigParser class called _boolean_states which
> apparently makes use of some built-ins (True,False) from 2.2.3 which aren't
> available in 2.2.2. Therefore, when I try to import ConfigParser, I get a
> NameError.
Python 2.2.2 does define True, False, and bool(), just not as new the
bool type introduced in Python 2.3:
Python 2.2.2 (#4, Oct 14 2002, 13:59:09)
[GCC 2.96 20000731 (Red Hat Linux 7.1 2.96-98)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> True
1
>>> False
0
>>> type(True)
<type 'int'>
If those are not defined, you're not running Python 2.2.2 as
released.
-Fred
--
Fred L. Drake, Jr. <fdrake at acm.org>
PythonLabs at Zope Corporation