[Python-Dev] b32encode and NUL bytes

2005-06-09 Thread Pavel Pergamenshchik
Hi. Is this a feature? I do see b32encode padding the string with NULs first. >>> b32decode(b32encode('\x00')) Traceback (most recent call last): File "", line 1, in ? File "/usr/lib/python2.4/base64.py", line 228, in b32decode last = binascii.unhexlify(hex(acc)[2:-1]) TypeError: Odd-lengt

Re: [Python-Dev] Example workaround classes for using Unicode with csv module...

2005-06-09 Thread kent sin
The suggestion Skip is indeed very useful, however it does not work when some of the item is not string, here is another try: class UnicodeReader: def __init__(self, f, dialect=csv.excel, encoding="utf-8", **kwds): self.reader = csv.reader(f, dialect=dialect, **kwds) self.encod

[Python-Dev] Weekly Python Patch/Bug Summary

2005-06-09 Thread Kurt B. Kaiser
Patch / Bug Summary ___ Patches : 339 open ( -5) / 2857 closed (+12) / 3196 total ( +7) Bugs: 908 open ( -8) / 5036 closed (+22) / 5944 total (+14) RFE : 189 open ( -2) / 168 closed ( +5) / 357 total ( +3) New / Reopened Patches __ Trivial t