[Tutor] Looking for ConfigObj Documentation

Marc Tompkins marc.tompkins at gmail.com
Thu Feb 19 18:58:21 CET 2009


On Thu, Feb 19, 2009 at 4:51 AM, Wayne Watson
<sierra_mtnview at sbcglobal.net>wrote:

>  Hi, actually I had two aims with the pseudo code, 1. print it, and 2.
> check to see if it would pull in the two modules. I pulled it into Word, and
> quickly formatted it to get the line wrap out, and put it in some sort of
> readable format. After that, I thought why not just take it as it was, and
> scoop it into IDLE.  My plan was to right a test program to get a better
> understanding of how to use ConfigObj rather than just try it through the
> program I plan to use it in.
>
> I've tried to keep to IDLE for no reason other than the author recommended
> it. Well, OK, I had gotten comfortable with the editor.  I'll try wxPython.
>

I wasn't very clear (and I shouldn't have mentioned wx at all, for
clarity!)  wxPython is not an alternative to IDLE, it's an alternative to
Tkinter.  SPE happens to have been written using wx (as IDLE uses Tkinter).
As I say, I should have left wx out of that... my point was that IDLE was
messing with the error somewhow and leading you to think it was a problem
with ConfigObj, when in fact it was probably the missing "import sys".
Since IDLE does that sort of thing A LOT, and also has known issues with
Tkinter (which you've experienced firsthand), I thought I'd slip in a gentle
suggestion to change tools.


>
> I took a quick look look at where Python was installed and found it was
> directly under C:, and not under Program Files. That's a surprise. Now I
> recall where I found something about classes and paths. It's on the File
> menu of IDLE, Class Browser and Path Browser.
>
> I thought, in the last post, I asked about items like: show_real_time =
> boolean(default=False) and hourly_rate = integer(min=0, default=0); but,
> apparently, I accidentally knocked it out.  Anyway, here's the question.
> Where is the syntax for items like boolean,  integer, and others described?
> The doc I have barely refers to them.
>

I posted it a few messages back - here's the link again:
http://www.voidspace.org.uk/python/validate.html
In particular you want this section:
http://www.voidspace.org.uk/python/validate.html#the-standard-functions


-- 
www.fsrtechnologies.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20090219/6aa882b3/attachment.htm>


More information about the Tutor mailing list