[Patches] [ python-Patches-1176578 ] Clarify unicode.(en|de)code.()
docstrings
SourceForge.net
noreply at sourceforge.net
Mon Apr 4 21:47:08 CEST 2005
Patches item #1176578, was opened at 2005-04-04 12:47
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1176578&group_id=5470
Category: Core (C code)
Group: Python 2.5
Status: Open
Resolution: None
Priority: 5
Submitted By: Brett Cannon (bcannon)
Assigned to: Nobody/Anonymous (nobody)
Summary: Clarify unicode.(en|de)code.() docstrings
Initial Comment:
I was reading the docstrings for unicode.encode() and
unicode.decode() and they were making no sense to me
since I kept expecting ``unicode("hi",
"utf-8").encode("utf-16")`` to return a unicode object,
just with an internal representation of UTF-16. Then I
started playing with them some more and I realized the
methods encoded and decoded into and out of a byte
stream. Then it made sense.
Attached is a patch to mention that they are working
with byte streams. I also capitalized the first words
in all the sentences.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1176578&group_id=5470
More information about the Patches
mailing list