[issue1537721] csv module: add header row to DictWriter

2010-08-29 Thread florian-rathgeber
Changes by florian-rathgeber : -- nosy: +florian-rathgeber ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue1537721] csv module: add header row to DictWriter

2010-03-05 Thread Dirkjan Ochtman
Dirkjan Ochtman added the comment: Both the solaris and windows slaves seem to have succeeded this time. -- resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue1537721] csv module: add header row to DictWriter

2010-03-04 Thread Dirkjan Ochtman
Dirkjan Ochtman added the comment: Committed in r78660 after positive comment from briancurtin re Windows. Hopefully this fixes Solaris, as well. -- ___ Python tracker ___ __

[issue1537721] csv module: add header row to DictWriter

2010-03-04 Thread Dirkjan Ochtman
Dirkjan Ochtman added the comment: Testing on Windows with this: Index: Lib/test/test_csv.py === --- Lib/test/test_csv.py(revision 78430) +++ Lib/test/test_csv.py(working copy) @@ -9,6 +9,7 @@ import tempfile impo

[issue1537721] csv module: add header row to DictWriter

2010-03-04 Thread Florent Xicluna
Florent Xicluna added the comment: according to the buidbots, it hurts some platforms: Windows XP, Windows 7 and sparc Solaris10 * sparc solaris10 test_writerows (test.test_csv.Test_Csv) ... ok == FAIL: test_write_simple_d

[issue1537721] csv module: add header row to DictWriter

2010-02-23 Thread Dirkjan Ochtman
Changes by Dirkjan Ochtman : -- assignee: -> djc resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bug

[issue1537721] csv module: add header row to DictWriter

2010-02-23 Thread Dirkjan Ochtman
Dirkjan Ochtman added the comment: Fixed in SVN, r78384. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1537721] csv module: add header row to DictWriter

2009-12-07 Thread Skip Montanaro
Skip Montanaro added the comment: >> Isn't the alpha period (2.7 and 3.2 in this case) precisely when an >> API can change? Antoine> Well, it can, but only if there are compelling reasons to do Antoine> so. It should be the exception rather than the rule. The Antoine> reasons h

[issue1537721] csv module: add header row to DictWriter

2009-12-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Isn't the alpha period (2.7 and 3.2 in this case) precisely when an API can > change? Well, it can, but only if there are compelling reasons to do so. It should be the exception rather than the rule. The reasons here seem far from compelling, and moreover we

[issue1537721] csv module: add header row to DictWriter

2009-12-07 Thread Skip Montanaro
Skip Montanaro added the comment: Antoine> We can't change default behaviour because it will break Antoine> compatibility, so an additional method looks ok to me. >> Why can't default behavior be changed? Antoine> Well, because it will break assumptions about the generated documen

[issue1537721] csv module: add header row to DictWriter

2009-12-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: Le lundi 07 décembre 2009 à 23:42 +, Skip Montanaro a écrit : > Skip Montanaro added the comment: > > Antoine> We can't change default behaviour because it will break > Antoine> compatibility, so an additional method looks ok to me. > > Why can't defa

[issue1537721] csv module: add header row to DictWriter

2009-12-07 Thread Skip Montanaro
Skip Montanaro added the comment: Antoine> We can't change default behaviour because it will break Antoine> compatibility, so an additional method looks ok to me. Why can't default behavior be changed? S -- ___ Python tracker

[issue1537721] csv module: add header row to DictWriter

2009-12-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: We can't change default behaviour because it will break compatibility, so an additional method looks ok to me. -- nosy: +pitrou stage: test needed -> patch review versions: +Python 3.2 -Python 3.1 ___ Python tracker

[issue1537721] csv module: add header row to DictWriter

2009-12-07 Thread djc
djc added the comment: Skip, I agree that it's hard to decide if we should have the class write the header on __init__(). I figured starting off with a method to make doing it "manually" is a good start; people can start using that, and if it's deemed useful we can always add the auto-write late

[issue1537721] csv module: add header row to DictWriter

2009-12-07 Thread Skip Montanaro
Skip Montanaro added the comment: I'm sorry, but I don't have time to look at this right now. On the one hand, one person asks for more symmetry. Someone else wants to add a writeheader method. If you want symmetry shouldn't the DictWriter simply write the header without being asked? I'm con

[issue1537721] csv module: add header row to DictWriter

2009-12-07 Thread djc
djc added the comment: I'd like to commit this, but it would be nice to get a review first: Index: Lib/csv.py === --- Lib/csv.py (revision 76697) +++ Lib/csv.py (working copy) @@ -132,6 +132,10 @@ self.extrasaction = ext

[issue1537721] csv module: add header row to DictWriter

2009-08-06 Thread djc
Changes by djc : -- nosy: +djc ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman

[issue1537721] csv module: add header row to DictWriter

2009-04-18 Thread Matthew Iversen
Matthew Iversen added the comment: Skip, you were arguing in another csv issue on a NamedTupleReader that the Reader and Writer should work in concert together. Certainly, making this default functionality for DictWriter would definitely make it work more in concert with DictReader. A sample p

[issue1537721] csv module: add header row to DictWriter

2009-03-31 Thread Skip Montanaro
Skip Montanaro added the comment: I don't see a patch. Is there some reason that if you need this you can't simply subclass DictWriter? -- nosy: +skip.montanaro ___ Python tracker __

[issue1537721] csv module: add header row to DictWriter

2009-03-29 Thread Daniel Diniz
Changes by Daniel Diniz : -- keywords: +patch stage: -> test needed versions: +Python 2.7, Python 3.1 ___ Python tracker ___ ___ Py