This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author groner
Recipients barry, groner, r.david.murray
Date 2016-09-11.19:41:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1473622886.98.0.816263085664.issue25235@psf.upfronthosting.co.za>
In-reply-to
Content
I agree that there isn't a way to know if a header should be added implicitly, until Generator is called.

A possible change to the Generator behavior is to generate the header in the serialized output, without modifying the original.  I don't know that it makes debugging easier, but it would keep the Generator from having this side effect.

Maybe being explicit is better, a utility factory could be used to keep the common case simple.  I don't know if such a change is reasonable at this point.
History
Date User Action Args
2016-09-11 19:41:27gronersetrecipients: + groner, barry, r.david.murray
2016-09-11 19:41:26gronersetmessageid: <1473622886.98.0.816263085664.issue25235@psf.upfronthosting.co.za>
2016-09-11 19:41:26gronerlinkissue25235 messages
2016-09-11 19:41:26gronercreate