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

2005-01-07 Thread Bob Ippolito
On Jan 6, 2005, at 15:03, Bob Ippolito wrote: On Jan 6, 2005, at 14:59, Ronald Oussoren wrote: On 6-jan-05, at 14:04, Jack Jansen wrote: On 6 Jan 2005, at 00:49, Martin v. Löwis wrote: The "new" solution is basically to go back to the Unix way of building an extension: link it against nothing and

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

2005-01-07 Thread Andrew McNamara
>I'm considering a change to the csv module that could potentially break >some obscure uses of the module (but CSV files usually quote, rather >than escape, so the most common uses aren't effected). > >Currently, with a non-default escapechar='\\', input like: > >field one,field \ >two,fiel

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

2005-01-07 Thread Jack Jansen
On 7 Jan 2005, at 11:08, Bob Ippolito wrote: 10.3 or later. For older OSX releases (either because you build Python on 10.2 or earlier, or because you've set MACOSX_DEPLOYMENT_TARGET to a value of 10.2 or less) we use the old behaviour of linking with "-framework Python". Wouldn't it be better t

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

2005-01-07 Thread Magnus Lie Hetland
Andrew McNamara <[EMAIL PROTECTED]>: > [snip] > Currently, with a non-default escapechar='\\', input like: > > field one,field \ > two,field three > > Returns: > > ["field one", "field \\\ntwo", "field three"] > > In the 2.5 series, I propose changing this to return: > > ["fiel

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

2005-01-07 Thread Michael Chermside
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't work with the c

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

2005-01-07 Thread Alex Martelli
On 2005 Jan 07, at 14:45, Michael Chermside wrote: 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

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

2005-01-07 Thread Michael Hudson
Bob Ippolito <[EMAIL PROTECTED]> writes: > On Jan 6, 2005, at 8:17, Michael Hudson wrote: > >> Ilya Sandler <[EMAIL PROTECTED]> writes: >> >>> A problem: >>> >>> The current struct.unpack api works well for unpacking C-structures >>> where >>> everything is usually unpacked at once, but it >>> bec

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

2005-01-07 Thread Thomas Heller
> Bob Ippolito <[EMAIL PROTECTED]> writes: >> This is my ctypes-like attempt at a high-level interface for struct. >> It works well for me in macholib: >> http://svn.red-bean.com/bob/py2app/trunk/src/macholib/ptypes.py Michael Hudson <[EMAIL PROTECTED]> writes: > > Unsurprisingly, that's fairly s

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

2005-01-07 Thread Bob Ippolito
On Jan 7, 2005, at 9:33 AM, Thomas Heller wrote: Bob Ippolito <[EMAIL PROTECTED]> writes: This is my ctypes-like attempt at a high-level interface for struct. It works well for me in macholib: http://svn.red-bean.com/bob/py2app/trunk/src/macholib/ptypes.py Michael Hudson <[EMAIL PROTECTED]> writes

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

2005-01-07 Thread Michael Hudson
Thomas Heller <[EMAIL PROTECTED]> writes: >> Bob Ippolito <[EMAIL PROTECTED]> writes: > >>> This is my ctypes-like attempt at a high-level interface for struct. >>> It works well for me in macholib: >>> http://svn.red-bean.com/bob/py2app/trunk/src/macholib/ptypes.py > > Michael Hudson <[EMAIL PROT

Re: [Python-Dev] Re: Subscribing to PEP updates

2005-01-07 Thread Nick Coghlan
Barry Warsaw wrote: As an experiment, I just added a PEP topic to the python-checkins mailing list. You could subscribe to this list and just select the PEP topic (which matches the regex "PEP" in the Subject header or first few lines of the body). Give it a shot and let's see if that does the tri

Re: [Python-Dev] Re: Subscribing to PEP updates

2005-01-07 Thread Barry Warsaw
On Fri, 2005-01-07 at 10:05, Nick Coghlan wrote: > Barry Warsaw wrote: > > As an experiment, I just added a PEP topic to the python-checkins > > mailing list. You could subscribe to this list and just select the PEP > > topic (which matches the regex "PEP" in the Subject header or first few > > li

RE: [Python-Dev] Re: Subscribing to PEP updates

2005-01-07 Thread Batista, Facundo
Title: RE: [Python-Dev] Re: Subscribing to PEP updates [Barry Warsaw] > As an experiment, I just added a PEP topic to the python-checkins > mailing list.  You could subscribe to this list and just select the PEP > topic (which matches the regex "PEP" in the Subject header or first few > line

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

2005-01-07 Thread Tim Peters
[Andrew McNamara] >> Also, review comments from Jeremy Hylton, 10 Apr 2003: >> >>I've been reviewing extension modules looking for C types that should >>participate in garbage collection. I think the csv ReaderObj and >>WriterObj should participate. The ReaderObj it contains a referen

Re: [Python-Dev] Re: Subscribing to PEP updates

2005-01-07 Thread Sjoerd Mullender
Batista, Facundo wrote: [Barry Warsaw] > As an experiment, I just added a PEP topic to the python-checkins > mailing list. You could subscribe to this list and just select the PEP > topic (which matches the regex "PEP" in the Subject header or first few > lines of the body). > > Give it a sh

Re: [Python-Dev] Re: super() harmful?

2005-01-07 Thread James Y Knight
On Jan 6, 2005, at 5:45 PM, Delaney, Timothy C (Timothy) wrote: Well, there's my autosuper recipe you've seen before: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/286195 which does basically what Philip descibes ... You missed the most important part of the example -- the automatic argu

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

2005-01-07 Thread Skip Montanaro
Andrew> I'm considering a change to the csv module that could Andrew> potentially break some obscure uses of the module (but CSV files Andrew> usually quote, rather than escape, so the most common uses Andrew> aren't effected). I'm with the other respondents. This looks like a bu

Re: [Python-Dev] Re: Subscribing to PEP updates

2005-01-07 Thread Nick Coghlan
Barry Warsaw wrote: Please do (he says, hoping it works :). Speaking of which. . . care to poke PEP 0 or one of the other PEP's? There's probably a couple of PEP's which could be moved from 'Open' to 'Accepted' or 'Accepted' to 'Implemented' to try it out. Cheers, Nick. -- Nick Coghlan | [EM

[Python-Dev] Re: super() harmful?

2005-01-07 Thread James Y Knight
On Jan 6, 2005, at 12:13 PM, Guido van Rossum wrote: So it has nothing to do with the new paradigm, just with backwards compatibility. I appreciate those issues (more than you'll ever know) but I don't see why you should try to discourage others from using the new paradigm, which is what your artic

[Python-Dev] Concurrency and Python

2005-01-07 Thread Edward C. Jones
Today's Slashdot (http://slashdot.org/articles/05/01/07/158236.shtml?tid=137) points to: "The Free Lunch Is Over: A Fundamental Turn Toward Concurrency in Software" by Herb Sutter at "http://www.gotw.ca/publications/concurrency-ddj.htm";. Is Python a suitable language for concurrent programmin

[Python-Dev] Re: [Python-checkins] python/dist/src/Python pythonrun.c, 2.161.2.15, 2.161.2.16

2005-01-07 Thread Jeremy Hylton
How's the merge going? And if I haven't already said thanks, then, thanks for doing it! Jeremy ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/pyth

Re: [Python-Dev] Concurrency and Python

2005-01-07 Thread James Y Knight
On Jan 7, 2005, at 2:44 PM, Edward C. Jones wrote: Is Python a suitable language for concurrent programming? Depends on what you mean. Python is not very good for shared-memory concurrent programming. (That is, threads). The library doesn't have enough good abstractions for locks/synchronizatio

Re: [Python-Dev] Re: [Python-checkins] python/dist/src/Python pythonrun.c, 2.161.2.15, 2.161.2.16

2005-01-07 Thread Kurt B. Kaiser
Jeremy Hylton <[EMAIL PROTECTED]> writes: > How's the merge going? Looks like it's done. I tagged ast-branch when I finished: merged_from_MAIN_07JAN05 Right now I'm trying to get Python-ast.c to compile. It wasn't modified by the merge, so there's some other issue. > And if I haven't already

Re: Re: [Python-Dev] Re: [Python-checkins] python/dist/src/Python pythonrun.c, 2.161.2.15, 2.161.2.16

2005-01-07 Thread olsongt
> > From: [EMAIL PROTECTED] (Kurt B. Kaiser) > Date: 2005/01/07 Fri PM 09:18:11 GMT > To: python-dev@python.org > Subject: Re: [Python-Dev] Re: [Python-checkins] python/dist/src/Python > pythonrun.c, 2.161.2.15, 2.161.2.16 > > Jeremy Hylton <[EMAIL PROTECTED]> writes: > > > How's the merg

Re: [Python-Dev] Re: [Python-checkins] python/dist/src/Python pythonrun.c, 2.161.2.15, 2.161.2.16

2005-01-07 Thread Jeremy Hylton
On Fri, 07 Jan 2005 16:18:11 -0500, Kurt B. Kaiser <[EMAIL PROTECTED]> wrote: > Looks like it's done. I tagged ast-branch when I finished: > > merged_from_MAIN_07JAN05 > > Right now I'm trying to get Python-ast.c to compile. It wasn't > modified by the merge, so there's some other issue. I'm g

Re: [Python-Dev] Re: [Python-checkins] python/dist/src/Python pythonrun.c, 2.161.2.15, 2.161.2.16

2005-01-07 Thread Kurt B. Kaiser
Jeremy Hylton <[EMAIL PROTECTED]> writes: > ../Python/symtable.c:193: structure has no member named `st_tmpname' > > Do you see that? Yeah, the merge eliminated it from the symtable struct in symtable.h. You moved it to symtable_entry at rev 2.12 in MAIN :-) I'll research it. Apparently my buil

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

2005-01-07 Thread Ilya Sandler
I will try to respond to all comments at once. But first a clarification: -I am not trying to design a high-level API on top of existing struct.unpack and -I am not trying to design a replacement for struct.unpack (If I were to replace struct.unpack(), then I would probably go along

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

2005-01-07 Thread Nick Coghlan
Ilya Sandler wrote: item=unpack( "", rec, offset) How about making offset a standard integer, and change the signature to return a tuple when it is used: item = unpack(format, rec) # Full unpacking offset = 0 item, offset = unpack(format, rec, offset) # Partial unpacking The second

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

2005-01-07 Thread Raymond Hettinger
[Ilya Sandler] > I view struct module as a low-level (un)packing library on top on which > a more complex stuff can be built and I am simply suggesting a way to > improve this low level functionality... > > > We could have an optional offset argument for > > > > > > unpack(format, buffer, offset=No

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

2005-01-07 Thread Ilya Sandler
> How about making offset a standard integer, and change the signature to > return tuple when it is used: > item, offset = unpack(format, rec, offset) # Partial unpacking Well, it would work well when unpack results are assigned to individual vars: x,y,offset=unpack( "ii", rec, offset) but

Re: [Python-Dev] Re: [Python-checkins] python/dist/src/Python pythonrun.c, 2.161.2.15, 2.161.2.16

2005-01-07 Thread Kurt B. Kaiser
[EMAIL PROTECTED] (Kurt B. Kaiser) writes: > [JH] >> ../Python/symtable.c:193: structure has no member named `st_tmpname' >> >> Do you see that? > > Yeah, the merge eliminated it from the symtable struct in symtable.h. > You moved it to symtable_entry at rev 2.12 in MAIN :-) > > I'll research it.

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

2005-01-07 Thread Nick Coghlan
Ilya Sandler wrote: How about making offset a standard integer, and change the signature to return tuple when it is used: item, offset = unpack(format, rec, offset) # Partial unpacking Well, it would work well when unpack results are assigned to individual vars: x,y,offset=unpack( "ii", rec, o