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 beazley
Recipients beazley
Date 2008-12-30.18:30:31
SpamBayes Score 1.2086291e-05
Marked as misclassified No
Message-id <1230661832.97.0.502272701907.issue4769@psf.upfronthosting.co.za>
In-reply-to
Content
One more followup.   The quopri module (which is highly related to 
base64 in that quopri and base64 are often used together within MIME) 
does accept both unicode and byte strings when decoding.  For example, 
this works:

>>> quopri.decodestring('Hello World')
b'Hello World'
>>> quopri.decodestring(b'Hello World')
b'Hello World'
>>>

However, the quopri module, like base64, uses byte strings almost 
everywhere else.  For example, encoding a byte string with quopri still 
produces bytes (just like base64)

>>> quopri.encodestring(b'Hello World')
b'Hello World'
>>>
History
Date User Action Args
2008-12-30 18:30:33beazleysetrecipients: + beazley
2008-12-30 18:30:32beazleysetmessageid: <1230661832.97.0.502272701907.issue4769@psf.upfronthosting.co.za>
2008-12-30 18:30:32beazleylinkissue4769 messages
2008-12-30 18:30:31beazleycreate