[issue11426] CSV examples can't close their files

2011-03-12 Thread Eli Bendersky
Changes by Eli Bendersky : -- resolution: -> accepted status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue11426] CSV examples can't close their files

2011-03-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset 52e1ad467edd by Eli Bendersky in branch '2.7': Issue #11426: use 'with' statements on open files in CSV examples http://hg.python.org/cpython/rev/52e1ad467edd -- ___ Python tracker

[issue11426] CSV examples can't close their files

2011-03-12 Thread Ezio Melotti
Ezio Melotti added the comment: This should be now fixed in 3.x, but not on 2.7. -- ___ Python tracker ___ ___ Python-bugs-list maili

[issue11426] CSV examples can't close their files

2011-03-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4cb0a8f5c952 by Eli Bendersky in branch 'default': Issue #11426: use 'with' statements on open files in CSV examples http://hg.python.org/cpython/rev/4cb0a8f5c952 New changeset d54e9c4fcd43 by Eli Bendersky in branch '3.1': Issue #11426: use 'with'

[issue11426] CSV examples can't close their files

2011-03-11 Thread Eli Bendersky
Eli Bendersky added the comment: SilentGhost: yep, thanks for the reminder :) -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue11426] CSV examples can't close their files

2011-03-11 Thread SilentGhost
SilentGhost added the comment: Related issue #10461 -- nosy: +SilentGhost ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue11426] CSV examples can't close their files

2011-03-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset f2a73d65422a by Eli Bendersky in branch 'default': Issue #11426: use 'with' statements on open files in CSV examples http://hg.python.org/cpython/rev/f2a73d65422a -- nosy: +python-dev ___ Python tracker

[issue11426] CSV examples can't close their files

2011-03-11 Thread Ezio Melotti
Ezio Melotti added the comment: Patch looks good to me. The quotes are somewhat inconsistent (sometimes '' and sometimes ""), if you want you can "fix" them while you are at it. -- ___ Python tracker

[issue11426] CSV examples can't close their files

2011-03-10 Thread Eli Bendersky
Eli Bendersky added the comment: The attached patch tries to be true to the convention in other documentation pages, by using "with" in complete code samples (examples), but not using it in prompt (>>>) samples, where usage of "with" unnecessarily complicates interaction. -- keywords

[issue11426] CSV examples can't close their files

2011-03-07 Thread Eli Bendersky
Changes by Eli Bendersky : -- nosy: +eli.bendersky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue11426] CSV examples can't close their files

2011-03-06 Thread Graham Wideman
New submission from Graham Wideman : On the csv doc page (.../library/csv.html) most of the examples show creation of an anonymous file object within the csv.reader or csv.writer function, for example... spamWriter = csv.writer(open('eggs.csv', 'w'), delimiter=' ', This anonymity prevent