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 Matt.Bachmann
Recipients Matt.Bachmann, serhiy.storchaka
Date 2014-05-26.04:55:06
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1401080106.52.0.387580984378.issue21343@psf.upfronthosting.co.za>
In-reply-to
Content
Looking into the project im working on I discovered why relpath was acting strangely.

It is because the project mocks get_cwd but not get_cwdu. Your request helped me track that down :-)

So that is not an issue. However, the issue described in the original ticket definitely happens in a clean python shell.

I still think it is bad that the method sometimes returns str and sometimes returns unicode, but I see your point that ultimately the byte strings that do come out of here coerce into unicode cleanly.

Thanks for working though this with me.
History
Date User Action Args
2014-05-26 04:55:06Matt.Bachmannsetrecipients: + Matt.Bachmann, serhiy.storchaka
2014-05-26 04:55:06Matt.Bachmannsetmessageid: <1401080106.52.0.387580984378.issue21343@psf.upfronthosting.co.za>
2014-05-26 04:55:06Matt.Bachmannlinkissue21343 messages
2014-05-26 04:55:06Matt.Bachmanncreate