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 josh.r
Recipients josh.r, mangrisano, paul.j3, zygocephalus
Date 2019-06-05.00:37:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1559695030.66.0.680752208835.issue37150@roundup.psfhosted.org>
In-reply-to
Content
Ah, right. It doesn't actually validate the mode string (it just stores it for when open is called, assuming open will validate it). So yeah, it silently accepts any string, not just valid mode strings. Not a contractual guarantee or anything, just how FileType.__init__ is implemented.
History
Date User Action Args
2019-06-05 00:37:10josh.rsetrecipients: + josh.r, paul.j3, mangrisano, zygocephalus
2019-06-05 00:37:10josh.rsetmessageid: <1559695030.66.0.680752208835.issue37150@roundup.psfhosted.org>
2019-06-05 00:37:10josh.rlinkissue37150 messages
2019-06-05 00:37:10josh.rcreate