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 vstinner
Recipients HWJ, amaury.forgeotdarc, bboissin, benjamin.peterson, djc, dlitz, draghuram, gvanrossum, loewis, pitrou, vstinner, zegreek
Date 2008-10-03.11:43:52
SpamBayes Score 2.2412135e-07
Marked as misclassified No
Message-id <200810031344.06702.victor.stinner@haypocalc.com>
In-reply-to <1223033492.23259.2.camel@fsol>
Content
> The most generic way of allowing all bytes-alike objects is to write:
>     path = bytes(path)

If you use that, any unicode may fails and the function will always return 
unicode. The goal is to get:
  func(bytes)->bytes
  func(bytearray)->bytes (or maybe bytearray, it doesn't matter)
  func(unicode)->unicode
History
Date User Action Args
2008-10-03 11:43:54vstinnersetrecipients: + vstinner, gvanrossum, loewis, amaury.forgeotdarc, pitrou, draghuram, benjamin.peterson, djc, HWJ, dlitz, zegreek, bboissin
2008-10-03 11:43:52vstinnerlinkissue3187 messages
2008-10-03 11:43:52vstinnercreate