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 pitrou
Recipients dmbaggett, pitrou
Date 2009-04-21.15:30:49
SpamBayes Score 1.6690224e-08
Marked as misclassified No
Message-id <>
The patch must be against the SVN trunk, in standard unified diff ("svn
diff" does the trick).

What do you call standard arrays? Do you mean the builtin list type?
Storing one separate character per list element is a poor choice because
it will waste a lot of memory. The array.array type is more efficient
for this.

However, there are two other, more idiomatic ways of doing this:
- accumulate the chunks of encoded/decoded data into a list (but not
only 1-character strings...) and join() them at the end.
- or, use a StringIO object (from the cStringIO module)

Bonus points if you time all three possibilities and submit the fastest :-)
Date User Action Args
2009-04-21 15:30:51pitrousetrecipients: + pitrou, dmbaggett
2009-04-21 15:30:51pitrousetmessageid: <>
2009-04-21 15:30:50pitroulinkissue5803 messages
2009-04-21 15:30:49pitroucreate