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 steve.dower
Recipients JGoutin, lemburg, paul.moore, steve.dower, tim.golden, vstinner, zach.ware
Date 2017-01-21.22:45:54
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1485038755.41.0.716196576786.issue29241@psf.upfronthosting.co.za>
In-reply-to
Content
Thanks for checking that.

I don't think it's worth retaining the cache on Windows in the face of the broken behaviour. Any real-world case where a lot of paths are being encoded or decoded is also likely to involve file-system access which will dwarf the encoding time. Further, passing bytes on Windows will result in another decode/encode cycle anyway, so there will be a bigger performance impact in using str (though even then, probably only when the str is already represented using 16-bit characters).

Unless somebody wants to make a case for having a more complex mechanism to reset the cache, I'll make the change to remove it (protected by an 'if sys.platform.startswith('win')' check).
History
Date User Action Args
2017-01-21 22:45:55steve.dowersetrecipients: + steve.dower, lemburg, paul.moore, vstinner, tim.golden, zach.ware, JGoutin
2017-01-21 22:45:55steve.dowersetmessageid: <1485038755.41.0.716196576786.issue29241@psf.upfronthosting.co.za>
2017-01-21 22:45:55steve.dowerlinkissue29241 messages
2017-01-21 22:45:54steve.dowercreate