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 pitrou
Recipients barry, chrism, eric.araujo, ncoghlan, pitrou, serhiy.storchaka, terry.reedy
Date 2013-12-07.00:11:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1386375087.83.0.594153934592.issue19837@psf.upfronthosting.co.za>
In-reply-to
Content
To give another data point: returning a different type based on argument value is also what the open() functions does, more or less.

(that said, I would slightly favour a separate dump_bytes(), myself)
History
Date User Action Args
2013-12-07 00:11:27pitrousetrecipients: + pitrou, barry, terry.reedy, chrism, ncoghlan, eric.araujo, serhiy.storchaka
2013-12-07 00:11:27pitrousetmessageid: <1386375087.83.0.594153934592.issue19837@psf.upfronthosting.co.za>
2013-12-07 00:11:27pitroulinkissue19837 messages
2013-12-07 00:11:27pitroucreate