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 serhiy.storchaka
Recipients barry, gregory.p.smith, larry, ncoghlan, serhiy.storchaka, taleinat, zach.ware
Date 2015-05-08.13:00:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1431090021.25.0.548882387342.issue24145@psf.upfronthosting.co.za>
In-reply-to
Content
For now str(accept={str, NoneType}) is used only 14 times in 6 files in 5 modules. The "z" format unit is used also in still not converted modules  _codecs (a lot of sites), _locale, mmap, _multiprocessing, and _socket. Current syntax doesn't look so ugly for me. I would wait until we converted more modules and implemented more converters that don't match existing format units.

Alternative syntax can be "str | NoneType" (without the accept parameter at all).
History
Date User Action Args
2015-05-08 13:00:21serhiy.storchakasetrecipients: + serhiy.storchaka, barry, gregory.p.smith, ncoghlan, taleinat, larry, zach.ware
2015-05-08 13:00:21serhiy.storchakasetmessageid: <1431090021.25.0.548882387342.issue24145@psf.upfronthosting.co.za>
2015-05-08 13:00:21serhiy.storchakalinkissue24145 messages
2015-05-08 13:00:21serhiy.storchakacreate