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 larry, serhiy.storchaka
Date 2016-03-30.09:31:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1459330274.5.0.616265410958.issue26671@psf.upfronthosting.co.za>
In-reply-to
Content
path_converter in Modules/posixmodule.c sequentially tries to convert an argument to str, bytes, and int. If previous conversion is failed, it clears the error and tries with type. This can hide some errors (such as MemoryError) and even cause using unexpected conversion.

Proposed patch cleans up path_converter. In addition it avoids copying the content of instances of string subclass.
History
Date User Action Args
2016-03-30 09:31:14serhiy.storchakasetrecipients: + serhiy.storchaka, larry
2016-03-30 09:31:14serhiy.storchakasetmessageid: <1459330274.5.0.616265410958.issue26671@psf.upfronthosting.co.za>
2016-03-30 09:31:14serhiy.storchakalinkissue26671 messages
2016-03-30 09:31:14serhiy.storchakacreate