[Python-Dev] csv module and universal newlines

2005-01-09 Thread Andrew McNamara
This item, from the TODO list, has been bugging me for a while: >* Reader and universal newlines don't interact well, reader doesn't > honour Dialect's lineterminator setting. All outstanding bug id's > (789519, 944890, 967934 and 1072404) are related to this - it's > a difficult problem and f

Re: [Python-Dev] Re: [Csv] Minor change to behaviour of csv module

2005-01-09 Thread Andrew McNamara
>> Andrew explains that in the CSV module, escape characters are not >> properly removed. >> >> Magnus writes: >>> IMO this is the *only* reasonable behaviour. I don't understand why >>> the escape character should be left in; this is one of the reason why >>> UNIX-style colon-separated values don'

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

2005-01-09 Thread Raymond Hettinger
> Instead, I would suggest that even a very limited initial > implementation of StructReader() like object suggested by Raymond would > be more useful... I have a draft patch also. Let's work out improvements off-list (perhaps on ASPN). Feel free to email me directly. Raymond __

Re: [Python-Dev] Re: csv module TODO list

2005-01-09 Thread Andrew McNamara
>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

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

2005-01-09 Thread Irmen de Jong
Okay. I've created a bug report 1098990: codec readline() splits lines apart Btw, I've set it to group Python 2.5, is that correct? Or should bugs that relate to the current CVS trunk have no group? Thx Irmen. ___ Python-Dev mailing list Python-Dev@pytho

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

2005-01-09 Thread Ilya Sandler
> (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 constructable from a

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

2005-01-09 Thread Irmen de Jong
Simon Percivall wrote: It looks like the readline method broke at revision 1.36 of codecs.py, when it was modified, yes. Okay. I've created a bug report 1098990: codec readline() splits lines apart --Irmen ___ Python-Dev mailing list Python-Dev@python.org