Re: [Python-Dev] an idea for improving struct.unpack api

2005-01-08 Thread Paul Moore
On Fri, 7 Jan 2005 19:40:18 -0800 (PST), Ilya Sandler <[EMAIL PROTECTED]> wrote: > Eg. I just looked at xdrlib.py code and it seems that almost every > invocation of struct._unpack would shrink from 3 lines to 1 line of code > > (i = self.__pos > self.__pos = j = i+4 > data

Re: [Python-Dev] 2.3.5 schedule, and something I'd like to get in

2005-01-08 Thread Anthony Baxter
On Saturday 08 January 2005 00:05, Jack Jansen wrote: > > This patch implements the proposed direct framework linking: > > http://python.org/sf/1097739 > > Looks good, I'll incorporate it. And as I haven't heard of any > showstoppers for the -undefined dynamic_lookup (and Anthony seems to be > offl

Re: [Python-Dev] an idea for improving struct.unpack api

2005-01-08 Thread Guido van Rossum
First, let me say two things: (a) A higher-level API can and should be constructed which acts like a (binary) stream but has additional methods for reading and writing values using struct format codes (or, preferably, somewhat higher-level type names, as suggested). Instances of this API should be

[Python-Dev] Re: csv module TODO list

2005-01-08 Thread Martin Bless
I'd love to see a 'split' and a 'join' function in the csv module to just convert between string and list without having to bother about files. Something like csv.split(aStr [, dialect='excel'[, fmtparam]]) -> list object and csv.join(aList, e[, dialect='excel'[, fmtparam]]) -> str object Fe

[Python-Dev] Weekly Python Patch/Bug Summary

2005-01-08 Thread Kurt B. Kaiser
Patch / Bug Summary ___ Patches : 267 open ( +6) / 2727 closed ( +9) / 2994 total (+15) Bugs: 798 open ( -3) / 4748 closed (+15) / 5546 total (+12) RFE : 165 open ( +0) / 140 closed ( +1) / 305 total ( +1) New / Reopened Patches __ Remove wi

[Python-Dev] os.removedirs() vs. shutil.rmtree()

2005-01-08 Thread Skip Montanaro
Is there a reason the standard library needs both os.removedirs and shutil.rmtree? They seem awful similar to me (I can see they aren't really identical). Ditto for os.renames and shutil.move. Presuming they are all really needed, is there some reason they don't all belong in the same module? S

Re: [Python-Dev] os.removedirs() vs. shutil.rmtree()

2005-01-08 Thread Johannes Gijsbers
On Sat, Jan 08, 2005 at 02:45:25PM -0600, Skip Montanaro wrote: > Is there a reason the standard library needs both os.removedirs and > shutil.rmtree? They seem awful similar to me (I can see they aren't really > identical). Ditto for os.renames and shutil.move. Presuming they are all > really n

[Python-Dev] Possible bug in codecs readline? It breaks lines apart.

2005-01-08 Thread Irmen de Jong
Hello using current cvs Python on Linux, I observe this weird behavior of the readline() method on file-like objects returned from the codecs module: [EMAIL PROTECTED] ypage]$ cat testfile1.txt xxx yyy offending line: ladfj askldfj klasdj fskl

Re: [Python-Dev] Possible bug in codecs readline? It breaks lines apart.

2005-01-08 Thread Simon Percivall
On 2005-01-09, at 04.11, Irmen de Jong wrote: Hello using current cvs Python on Linux, I observe this weird behavior of the readline() method on file-like objects returned from the codecs module: [...] See how it breaks certain lines in half? It only happens when a certain encoding is used, so regu