Comments on base52 encoder/decoder ?

Paul Rubin phr-n2002b at NOSPAMnightsong.com
Wed Jan 8 19:11:03 CET 2003


bokr at oz.net (Bengt Richter) writes:
> BTW, how about the option to insert \n after every line_len characters?
> And if so, should there be a final \n guaranteed there or not there?
> Or should that be left to the outside too?

I'd say leave that on the outside too.

I've sometimes thought there should be a function for splitting a long
string into a bunch of shorter ones of specified length, but I don't
know if that would give a worthwhile speedup vs. the obvious list
comprehension.




More information about the Python-list mailing list