| View previous topic :: View next topic |
| Author |
Message |
BigDaddy
Joined: 26 May 2006 Posts: 147
|
| Hi, did you know if SafeConfigParser is new in version 2.4 or 2.3 of python? because we found both information in documentation |
| |
|
|
|
|
Mupolan
Joined: 30 May 2006 Posts: 101
| |
BigDaddy
Joined: 26 May 2006 Posts: 147
| |
Mupolan
Joined: 30 May 2006 Posts: 101
|
| BigDaddy, that just says the 'set' method's behaviour is new in 2.4. the SafeConfigParser itself is new in 2.3. |
| |
|
|
BigDaddy
Joined: 26 May 2006 Posts: 147
|
| Ok, thank you Mupolan, so there is no way to put a new option in an ini file with SafeConfigParser and python 2.3 right? |
| |
|
|
Peter Pitt
Joined: 20 May 2006 Posts: 114 Location: Egypt
|
BigDaddy, I'm guessing that SafeConfigParser is a subclass of RawConfigParser, in which case it will still have a set in 2.3
But the set won't do the type check - see the docs for RawConfigParser's set() |
| |
|
|
BigDaddy
Joined: 26 May 2006 Posts: 147
|
| Peter Pitt, ok so the SafeConfigParser's set is only usefull if I have to check the type, thanks for making it more clear to me |
| |
|
|
Peter Pitt
Joined: 20 May 2006 Posts: 114 Location: Egypt
|
| BigDaddy, if you're writing to files, SafeConfigParser's set just means you fail earlier when there are non-string values. |
| |
|
|
|