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 r.david.murray
Recipients ezio.melotti, magnusc, michael.foord, r.david.murray, rbcollins, rhettinger, serhiy.storchaka, steven.daprano
Date 2015-05-06.13:12:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1430917973.41.0.199648186135.issue24134@psf.upfronthosting.co.za>
In-reply-to
Content
Why not sentinel = Object()? 

+1 for the patch, once tests are added.

This may "break" code in maintenance releases, but presumably that will be finding real bugs.  It is hard to imagine someone intentionally passing None to get the context manager behavior, even though it is documented in the doc strings (but not the main docs, I note).  If anyone can find examples of that, though, we'd need to restrict this to 3.5.
History
Date User Action Args
2015-05-06 13:12:53r.david.murraysetrecipients: + r.david.murray, rhettinger, rbcollins, ezio.melotti, steven.daprano, michael.foord, serhiy.storchaka, magnusc
2015-05-06 13:12:53r.david.murraysetmessageid: <1430917973.41.0.199648186135.issue24134@psf.upfronthosting.co.za>
2015-05-06 13:12:53r.david.murraylinkissue24134 messages
2015-05-06 13:12:53r.david.murraycreate