Re: [Python-Dev] ConfigParser to save with order

2006-01-20 Thread Paramjit Oberoi
> I think it's moot unless you also preserve comments. Ideally would be > something that prserved everything (ordering, blank lines, comments > etc.) from how it was read in. Modifying a value should keep its > position. Adding a value should add it to the end of the section it's > in (unless there

Re: [Python-Dev] PEP 246, redux

2005-01-13 Thread Paramjit Oberoi
On Thu, 13 Jan 2005 20:40:56 +0100, Alex Martelli <[EMAIL PROTECTED]> wrote: > > So please explain what's imperfect in wrapping a str into a StringIO? If I understand Philip's argument correctly, the problem is this: def print_next_line(f: file): print f.readline() s = "line 1\n" "line 2" p