[python-win32] ini File Management with win32ui

robin and jim robinjim@earthlink.net
Sun, 12 Aug 2001 05:48:34 -0600


This is a multi-part message in MIME format.

------=_NextPart_000_0008_01C122F2.6CB1B4A0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hello John,=0D
=0D
I suppose this does not help much, but here is the result on my Win 98 syst=
em with Python 2.0:=0D
=0D
PythonWin 2.0 (#8, Oct 16 2000, 17:27:58) [MSC 32 bit (Intel)] on win32.=0D
Portions Copyright 1994-2001 Mark Hammond (MarkH@ActiveState.com) - see 'He=
lp/About PythonWin' for further copyright information.=0D
>>> import ConfigParser=0D
>>> p =3D ConfigParser.ConfigParser()=0D
>>> dir (p)=0D
['_ConfigParser__defaults', '_ConfigParser__sections']=0D
>>> =0D
=0D
If you do not get any responses before then, I will try this tomorrow when =
I have access to a Win 2k system.=0D
  ----- Original Message ----- =0D
  From: John Hopkins =0D
  To: python-win32@python.org ; activepython@listserv.ActiveState.com =0D
  Sent: Saturday, August 11, 2001 8:38 PM=0D
  Subject: [python-win32] ini File Management with win32ui=0D
=0D
=0D
  I need to manage an ini file on Win2k and NT4.  After reading in the arch=
ives and the documentation I tried to use ConfigParser with the followinfg =
results:=0D
=0D
  >>> import ConfigParser=0D
  >>> p =3D ConfigParser.ConfigParser()=0D
  Traceback (most recent call last):=0D
    File "<interactive input>", line 1, in ?=0D
  TypeError: object is not callable: <module 'ConfigParser' from 'ConfigPar=
ser.py'>=0D
=0D
  According to PythonWin's About box, I'm using ActivePython build 2.1.211.=
=0D
=0D
  Any help will be greatly appreciated.=0D
=0D
  Thanks in advance,=0D
=0D
  John=0D
=0D

------=_NextPart_000_0008_01C122F2.6CB1B4A0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">=0D
<HTML><HEAD>=0D
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Diso-8859-1"=
>=0D
<META content=3D"MSHTML 5.50.4522.1800" name=3DGENERATOR>=0D
<STYLE></STYLE>=0D
</HEAD>=0D
<BODY bgColor=3D#ffffff>=0D
<DIV><FONT face=3D"Comic Sans MS" size=3D2>Hello John,</FONT></DIV>=0D
<DIV><FONT face=3D"Comic Sans MS" size=3D2></FONT>&nbsp;</DIV>=0D
<DIV><FONT face=3D"Comic Sans MS" size=3D2>I suppose this does not help muc=
h, but =0D
here is the result on my Win 98 system with Python 2.0:</FONT></DIV>=0D
<DIV><FONT face=3D"Comic Sans MS" size=3D2></FONT>&nbsp;</DIV>=0D
<DIV><FONT face=3D"Comic Sans MS" size=3D2>PythonWin 2.0 (#8, Oct 16 2000, =
17:27:58) =0D
[MSC 32 bit (Intel)] on win32.<BR>Portions Copyright 1994-2001 Mark Hammond=
 (<A =0D
href=3D"mailto:MarkH@ActiveState.com">MarkH@ActiveState.com</A>) - see 'Hel=
p/About =0D
PythonWin' for further copyright information.<BR>&gt;&gt;&gt; import =0D
ConfigParser<BR>&gt;&gt;&gt; p =3D ConfigParser.ConfigParser()<BR>&gt;&gt;&=
gt; dir =0D
(p)<BR>['_ConfigParser__defaults', '_ConfigParser__sections']<BR>&gt;&gt;&g=
t; =0D
</FONT></DIV>=0D
<DIV><FONT face=3D"Comic Sans MS" size=3D2></FONT>&nbsp;</DIV>=0D
<DIV><FONT face=3D"Comic Sans MS" size=3D2>If you do not get any responses =
before =0D
then, I will try this tomorrow when I have access to a Win 2k =0D
system.</FONT></DIV>=0D
<BLOCKQUOTE dir=3Dltr =0D
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LE=
FT: #000000 2px solid; MARGIN-RIGHT: 0px">=0D
  <DIV style=3D"FONT: 10pt arial">----- Original Message ----- </DIV>=0D
  <DIV =0D
  style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>Fro=
m:</B> =0D
  <A title=3Djohn@hopkinsit.com href=3D"mailto:john@hopkinsit.com">John Hop=
kins</A> =0D
  </DIV>=0D
  <DIV style=3D"FONT: 10pt arial"><B>To:</B> <A title=3Dpython-win32@python=
.org =0D
  href=3D"mailto:python-win32@python.org">python-win32@python.org</A> ; <A =
=0D
  title=3Dactivepython@listserv.ActiveState.com =0D
  href=3D"mailto:activepython@listserv.ActiveState.com">activepython@listse=
rv.ActiveState.com</A> =0D
  </DIV>=0D
  <DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Saturday, August 11, 2001 8:=
38 =0D
  PM</DIV>=0D
  <DIV style=3D"FONT: 10pt arial"><B>Subject:</B> [python-win32] ini File =
=0D
  Management with win32ui</DIV>=0D
  <DIV><BR></DIV>=0D
  <DIV><FONT face=3DArial size=3D2>I need to manage an ini file on Win2k an=
d =0D
  NT4.&nbsp; After reading in the archives and the documentation I tried to=
 =0D
  use&nbsp;ConfigParser with the followinfg results:</FONT></DIV>=0D
  <DIV>&nbsp;</DIV>=0D
  <DIV><FONT face=3DArial size=3D2>&gt;&gt;&gt; import ConfigParser<BR>&gt;=
&gt;&gt; =0D
  p =3D ConfigParser.ConfigParser()<BR>Traceback (most recent call =0D
  last):<BR>&nbsp; File "&lt;interactive input&gt;", line 1, in ?<BR>TypeEr=
ror: =0D
  object is not callable: &lt;module 'ConfigParser' from =0D
  'ConfigParser.py'&gt;<BR></FONT></DIV>=0D
  <DIV><FONT face=3DArial size=3D2>According to PythonWin's About box, I'm =
using =0D
  ActivePython build 2.1.211.</FONT></DIV>=0D
  <DIV><FONT face=3DArial size=3D2>&nbsp;</DIV></FONT>=0D
  <DIV><FONT face=3DArial size=3D2>Any help will be greatly =0D
appreciated.</FONT></DIV>=0D
  <DIV>&nbsp;</DIV>=0D
  <DIV><FONT face=3DArial size=3D2>Thanks in advance,</FONT></DIV>=0D
  <DIV>&nbsp;</DIV>=0D
  <DIV><FONT face=3DArial size=3D2>John</FONT></DIV>=0D
  <DIV>&nbsp;</DIV></BLOCKQUOTE></BODY></HTML>=0D

------=_NextPart_000_0008_01C122F2.6CB1B4A0--

_______________________________________________
ActivePython mailing list
ActivePython@listserv.ActiveState.com
http://listserv.ActiveState.com/mailman/listinfo/activepython