[Python-Dev] Weekly Python Patch/Bug Summary

2005-03-18 Thread Kurt B. Kaiser
Patch / Bug Summary ___ Patches : 286 open ( +7) / 2801 closed ( +4) / 3087 total (+11) Bugs: 870 open (+19) / 4867 closed (+14) / 5737 total (+33) RFE : 175 open ( +2) / 150 closed ( +0) / 325 total ( +2) New / Reopened Patches __ inspect.p

Re: [Python-Dev] Draft PEP to make file objects support non-blocking mode.

2005-03-18 Thread James Y Knight
On Mar 18, 2005, at 8:19 PM, Greg Ward wrote: Is having to use fcntl and os really so awful? At least it requires the programmer to prove he knows what he's doing putting this file into non-blocking mode, and that he really wants to do it. ;-) I'd tend to agree. :) Moreover, I don't think fread/f

Re: [Python-Dev] __metaclass__ problem

2005-03-18 Thread Nick Coghlan
Phillip J. Eby wrote: At 10:11 AM 3/19/05 +1000, Nick Coghlan wrote: 'Meta1' is NOT a subclass of 'Meta2', yet the exception is not thrown. Instead, the explicitly requested metaclass has been silently replaced with a subclass. I think the OP is justified in calling that 'suprising'. This is pre

Re: [Python-Dev] Draft PEP to make file objects support non-blocking mode.

2005-03-18 Thread Greg Ward
On 18 March 2005, Donovan Baarda said: > Rationale > = > > Many Python library methods and classes like select.select(), os.popen2(), > and subprocess.Popen() return and/or operate on builtin file objects. > However even simple applications of these methods and classes require the > files

Re: [Python-Dev] __metaclass__ problem

2005-03-18 Thread Phillip J. Eby
At 10:11 AM 3/19/05 +1000, Nick Coghlan wrote: Nick Coghlan wrote: If you are not getting an exception when breaking this rule, my guess would be that your metaclasses are not inheriting from 'type', or else are not invoking type's __new__ method. The logic to trigger the exception lives in type

Re: [Python-Dev] __metaclass__ problem

2005-03-18 Thread Nick Coghlan
Nick Coghlan wrote: If you are not getting an exception when breaking this rule, my guess would be that your metaclasses are not inheriting from 'type', or else are not invoking type's __new__ method. The logic to trigger the exception lives in type's __new__ method - if that doesn't get invoked

Re: [Python-Dev] Re: Change 'env var BROWSER override' semantics in webbrowser.py

2005-03-18 Thread Fred L. Drake, Jr.
On Friday 18 March 2005 17:44, Reinhold Birkenfeld wrote: > Additionally, there are several patches on SF that pertain to > webbrowser.py; perhaps you can review some of them... Given the time I haven't been able to devote to the webbrowser module, a consolidated set of reviews would be very he

Re: [Python-Dev] __metaclass__ problem

2005-03-18 Thread Nick Coghlan
Dirk Brenckmann wrote: In consequence a programmer only is in control of the "metaclass" of his class, if he decides it to be a subtype of all former metaclasses he used in his class hierarchy, or if he uses the same metaclass as the superclass does. The behaviour is intentional, but you are correc

[Python-Dev] Re: Change 'env var BROWSER override' semantics in webbrowser.py

2005-03-18 Thread Reinhold Birkenfeld
Martin v. Löwis wrote: > Rodrigo Dias Arruda Senra wrote: >> I propose a small change in webbrowse.py module. > > I think I'm generally in favour of such a change. However: > > - please don't post patches to python-dev, unless you *want* >them to be ignored. Typically, nobody will pick up pat

Re: [Python-Dev] RELEASED Python 2.4.1, release candidate 1

2005-03-18 Thread Martin v. Löwis
Vincent Wehren wrote: To check what I mentioned on comp.lang.python earlier, I ran the installer again (with 2.4.1 still intact), selected the "Change Python 2.4.1c1" radio button, clicked the "Finish" Button, clicked the "Advanced" button, clicked the "Cancel" button, and clicked "Yes" to the ques

Re: [Python-Dev] Change 'env var BROWSER override' semantics in webbrowser.py

2005-03-18 Thread Martin v. Löwis
Rodrigo Dias Arruda Senra wrote: I propose a small change in webbrowse.py module. I think I'm generally in favour of such a change. However: - please don't post patches to python-dev, unless you *want* them to be ignored. Typically, nobody will pick up patches from python-dev and apply them, ex

[Python-Dev] Change 'env var BROWSER override' semantics in webbrowser.py

2005-03-18 Thread Rodrigo Dias Arruda Senra
Hi, I propose a small change in webbrowse.py module. At the present time: """ Under Unix, if the environment variable BROWSER exists, it is interpreted to override the platform default list of browsers,... """ (extract from Python-2.4/Doc/html/lib/module-webbrowser.html) I propose the following c

[Python-Dev] Re: [Python-checkins] python/dist/src/Doc/lib libcsv.tex, 1.18, 1.19

2005-03-18 Thread Walter Dörwald
[EMAIL PROTECTED] wrote: Update of /cvsroot/python/python/dist/src/Doc/lib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22325 Modified Files: libcsv.tex Log Message: add UnicodeReader and UnicodeWriter example classes [] +The \module{csv} module doesn't directly support reading and

Re: [Python-Dev] thread semantics for file objects

2005-03-18 Thread Martin v. Löwis
stelios xanthakis wrote: I think that when two threads write to the same fd without syncronization, the result is not deterministic anyway. In the case they are reading from the same fd, even worse! (and therefore the input cannot be useful to any serious algorithm) Yes, but we are not talking ab

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

2005-03-18 Thread Skip Montanaro
I added UnicodeReader and UnicodeWriter example classes to the csv module docs just now. They mention problems with ASCII NUL characters (which I vaguely remember - NUL-terminated strings are used internally, right?). Do NULs still present a problem? I saw nothing in the log messages that menti

Re: [Python-Dev] thread semantics for file objects

2005-03-18 Thread stelios xanthakis
Jeremy Hylton wrote: On Thu, 17 Mar 2005 16:25:44 -0500, Aahz <[EMAIL PROTECTED]> wrote: On Thu, Mar 17, 2005, Jeremy Hylton wrote: Are the thread semantics for file objecst documented anywhere? I don't see anything in the library manual, which is where I expected to find it. It looks lik

Re: [Python-Dev] thread semantics for file objects

2005-03-18 Thread Jeremy Hylton
On Fri, 18 Mar 2005 07:57:25 +0100, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: > Writing down all these properties does little good, IMO. This includes > your proposed property of file reads: anybody reading your statement > will think "of course it works this way - why even mention it". The thi

[Python-Dev] __metaclass__ problem

2005-03-18 Thread Dirk Brenckmann
Hi there, first of all I'd like to introduce myself, because I'm new to this list. If I did wrong to post here, please be patient... The reason for my posting is my previous work with __metaclass__ and advice.py, which is nice to use. While working with __metaclass__ I found situations, where I c

Re: [Python-Dev] Python 2.4 won the "Jolt productivity award" last night

2005-03-18 Thread Simon Brunning
On Fri, 18 Mar 2005 09:07:19 +, Simon Brunning <[EMAIL PROTECTED]> wrote: > The 2005 winners are listed here: > http://www.sdmagazine.com/pressroom/jolt_winners_2005.pdf Oh, and while I'm breaking cover on python-dev; congratulations to the lot of you for this. You all richly deserve it. --

Re: [Python-Dev] Faster Set.discard() method?

2005-03-18 Thread Barry Warsaw
On Fri, 2005-03-18 at 01:19, Andrew McNamara wrote: > No, exceptions are fast at the C level - all they do is set a flag. The > expense of exceptions is saving a restoring python frames, I think, > which doesn't happen in this case. So the current implementation is > ideal for C code - clear and f

Re: [Python-Dev] python-dev Summary for 2005-03-01 through 2005-03-15 [draft]

2005-03-18 Thread Paul Moore
On Thu, 17 Mar 2005 18:21:33 -0800, Brett C. <[EMAIL PROTECTED]> wrote: > > 2.4.1 should be out soon > > Python 2.4.1c1 is out. Very shortly c2 will be released. Assuming no major > issues come up, 2.4 final will be out. You probably mean somethi

Re: [Python-Dev] thread semantics for file objects

2005-03-18 Thread Paul Moore
On Fri, 18 Mar 2005 07:57:25 +0100, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: > The guarantee that "we" want to make is certainly stronger: if the > threads all read from the same file, each will get a series of "chunks". > The guarantee is that it is possible to combine the chunks in a way to >

Re: [Python-Dev] python-dev Summary for 2005-03-01 through 2005-03-15 [draft]

2005-03-18 Thread Nick Coghlan
- sum() semantics discussed - Guido's blog entry on `the fate of reduce() in Python 3000`_ (which reiterated Guido's plan to cut map(), reduce(), filter() and lambdas (what about zip()?) caused a huge discussion on whether sum() worked the best way

Re: [Python-Dev] Python 2.4 won the "Jolt productivity award" last night

2005-03-18 Thread Simon Brunning
On Thu, 17 Mar 2005 16:01:03 +, Gareth McCaughan <[EMAIL PROTECTED]> wrote: > http://www.sdmagazine.com/jolts/ , > > but it's not been updated yet and therefore still has last year's > winners on it. I haven't found anything with more up-to-date > results. The 2005 winners are listed here