Re: [Python-Dev] Python Grammar Ambiguity

2006-04-28 Thread Christos Georgiou
Michael Foord [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] snip It worries me that there might be a valid expression allowed here that I haven't thought of. My current rules allow anything that looks like ``(a, [b, c, (d, e)], f)`` - any nested identifier list. Would anything

Re: [Python-Dev] 2.5 open issues

2006-04-28 Thread Thomas Heller
Neal Norwitz wrote: If you are addressed on this message, it means you have open issues that need to be resolved for 2.5. Some of these issues are documentation, others are code issues. Documentation missing: +++ Fredrik: ElementTree Gerhard: pysqlite Martin: msilib

[Python-Dev] rest2latex - was: Re: Raising objections

2006-04-28 Thread Gerhard Häring
Thomas Heller wrote: [...] I'm now happy with the tool that converts the ctypes tutorial from reST to LaTeX, I will later (today or tomorrow) commit that into Python SVN. Did you commit that already? Alternatively, can you send it to me, please? -- Gerhard

Re: [Python-Dev] rest2latex - was: Re: Raising objections

2006-04-28 Thread Thomas Heller
Gerhard Häring wrote: Thomas Heller wrote: [...] I'm now happy with the tool that converts the ctypes tutorial from reST to LaTeX, I will later (today or tomorrow) commit that into Python SVN. Did you commit that already? Alternatively, can you send it to me, please? -- Gerhard I meant

Re: [Python-Dev] rest2latex - was: Re: Raising objections

2006-04-28 Thread engelbert . gruber
On Fri, 28 Apr 2006, Thomas Heller wrote: Gerhard Häring wrote: Thomas Heller wrote: [...] I'm now happy with the tool that converts the ctypes tutorial from reST to LaTeX, I will later (today or tomorrow) commit that into Python SVN. Did you commit that already? Alternatively, can you send

Re: [Python-Dev] 2.5 open issues

2006-04-28 Thread A.M. Kuchling
On Fri, Apr 28, 2006 at 10:27:45AM +0200, Thomas Heller wrote: I could imagine three parts of the ctypes docs: ... 3. Some articles/howtos which cover advanced issues. Note that there's now a Doc/howto directory, so you could put articles there. The howtos aren't built as part of the

Re: [Python-Dev] 2.5 open issues

2006-04-28 Thread A.M. Kuchling
On Thu, Apr 27, 2006 at 10:58:49PM -0700, Neal Norwitz wrote: If you are addressed on this message, it means you have open issues that need to be resolved for 2.5. Some of these issues are documentation, others are code issues. This information comes from PEP 356. There are also these items

[Python-Dev] Is this a bad idea: picky floats?

2006-04-28 Thread skip
From a numerical standpoint, floats shouldn't generally be compared using equality. I came across a bug at work yesterday where I had written: if not delta: return 0.0 where delta was a floating point number. After a series of calculations piling up round-off error delta took on a

Re: [Python-Dev] 2.5 open issues

2006-04-28 Thread Guido van Rossum
On 4/28/06, A.M. Kuchling [EMAIL PROTECTED] wrote: There are also these items in the 'possible features' section: Modules under consideration for inclusion: - bdist_deb in distutils package (Owner: ???)

Re: [Python-Dev] 2.5 open issues

2006-04-28 Thread Phillip J. Eby
At 07:38 AM 4/28/2006 -0700, Guido van Rossum wrote: On 4/28/06, A.M. Kuchling [EMAIL PROTECTED] wrote: - wsgiref to the standard library (Owner: Phillip Eby) I still hope this can go in; it will help web framework authors do the right thing long term. I doubt I'll have time to

Re: [Python-Dev] Dropping __init__.py requirement for subpackages

2006-04-28 Thread Thomas Heller
Thomas Wouters wrote: On 4/27/06, Thomas Wouters [EMAIL PROTECTED] wrote: Alrighty then. The list has about 12 hours to convince me (and you) that it's a bad idea to generate that warning. I'll be asleep by the time the trunk un-freezes, and I have a string of early meetings tomorrow. I'll get

Re: [Python-Dev] 2.5 open issues

2006-04-28 Thread A.M. Kuchling
On Fri, Apr 28, 2006 at 11:02:07AM -0400, Phillip J. Eby wrote: I doubt I'll have time to write documentation for it before alpha 3. If it's okay for the docs to wait for one of the beta releases -- or better yet, if someone could volunteer to create rough draft documentation that I could

Re: [Python-Dev] Dropping __init__.py requirement for subpackages

2006-04-28 Thread Martin v. Löwis
Thomas Wouters wrote: Indeed! I hadn't realized that, although I might've if I'd been able to find where Modules is put on sys.path. And, likewise, I would do as you suggest (which feels like the right thing) if I could only find out where Modules is put on sys.path :) I don't have time to

Re: [Python-Dev] Internal documentation for egg formats now available

2006-04-28 Thread M.-A. Lemburg
Phillip J. Eby wrote: At 09:54 PM 4/27/2006 +0200, M.-A. Lemburg wrote: Note that I was talking about the .pth file being writable, not the directory. Please stop this vague, handwaving FUD. You have yet to explain how this situation is supposed to arise. Is there some platform on which

Re: [Python-Dev] 2.5 open issues

2006-04-28 Thread Phillip J. Eby
At 11:54 AM 4/28/2006 -0400, A.M. Kuchling wrote: On Fri, Apr 28, 2006 at 11:02:07AM -0400, Phillip J. Eby wrote: I doubt I'll have time to write documentation for it before alpha 3. If it's okay for the docs to wait for one of the beta releases -- or better yet, if someone could volunteer

Re: [Python-Dev] Internal documentation for egg formats now available

2006-04-28 Thread M.-A. Lemburg
M.-A. Lemburg wrote: No, I'm talking about a format which has the same if not more benefits as what you're trying to achieve with the .egg file approach, but without all the magic and hacks. It's not like this wouldn't be possible to achieve. That may or may not be true. Perhaps if you had

Re: [Python-Dev] 2.5 open issues

2006-04-28 Thread Ronald Oussoren
On 28-apr-2006, at 17:07, Martin v. Löwis wrote: Neal Norwitz wrote: Who is the owner for getting new icons installed with the new logo? For the OSX icons, I guess Ronald Oussoren owns the task of getting them into the distribution. That's fine by me. I'll be adding them to the universal

Re: [Python-Dev] 2.5 open issues

2006-04-28 Thread Ronald Oussoren
On 28-apr-2006, at 17:41, Martin v. Löwis wrote: - Support for building fat Mac binaries (Intel and PPC) (Owner: Ronald Oussoren) Yes, this would be cool. This is nearly committed. For some reason, SF apparently dropped my last change request for it, and Ronald's patch

Re: [Python-Dev] 2.5 open issues

2006-04-28 Thread Martin v. Löwis
Ronald Oussoren wrote: That's fine by me. I'll be adding them to the universal python 2.4 tree soon and to 2.5 when that's is done. Do have to wait for the contributor agreement, which the folks over at [EMAIL PROTECTED] say is good enough, to do that? If the artist has informally

Re: [Python-Dev] 2.5 open issues

2006-04-28 Thread Georg Brandl
Martin v. Löwis wrote: Neal Norwitz wrote: Who is the owner for getting new icons installed with the new logo? Nobody, so far (for Windows). Somebody should contact the owner and find out what the license on this work is, and then tell me what to do with them. I assume the py and pyc icons

[Python-Dev] Summer of Code mailing list

2006-04-28 Thread Neal Norwitz
There's a new SoC mailing list. [EMAIL PROTECTED] You can sign up here: http://mail.python.org/mailman/listinfo/soc2006 This list is for any SoC discussion: mentors, students, idea, etc. Student can submit applications starting May 1, so now is the time to get students interested in your

Re: [Python-Dev] Internal documentation for egg formats now available

2006-04-28 Thread Phillip J. Eby
(Thank you, by the way, for actually reading some of the documentation before writing this post, and for asking questions instead of jumping to conclusions.) At 06:43 PM 4/28/2006 +0200, M.-A. Lemburg wrote: I've now found this section in the documentation which seems to have the reason:

Re: [Python-Dev] 2.5 open issues

2006-04-28 Thread Thomas Heller
Georg Brandl wrote: Martin v. Löwis wrote: Neal Norwitz wrote: Who is the owner for getting new icons installed with the new logo? Nobody, so far (for Windows). Somebody should contact the owner and find out what the license on this work is, and then tell me what to do with them. I assume

[Python-Dev] Adding wsgiref to stdlib

2006-04-28 Thread Guido van Rossum
PEP 333 specifies WSGI, the Python Web Server Gateway Interface v1.0; it's written by Phillip Eby who put a lot of effort in it to make it acceptable to very diverse web frameworks. The PEP has been well received by web framework makers and users. As a supplement to the PEP, Phillip has written a

[Python-Dev] Bug day?

2006-04-28 Thread John J Lee
Is another bug day planned in the next week or two? John ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] Adding wsgiref to stdlib

2006-04-28 Thread Bill Janssen
I'm inviting people to discuss the addition of wsgiref to the standard library. I'd like the discussion to be finished before a3 goes out; +1. I think it's faily low-risk. WSGI has been discussed and implemented for well over a year; there are many working implementations of the spec. Adding

Re: [Python-Dev] Adding wsgiref to stdlib

2006-04-28 Thread Phillip J. Eby
At 11:03 AM 4/28/2006 -0700, Guido van Rossum wrote: (I'm asking Phillip to post the URL for the current source; searching for it produces multiple repositories.) Source browsing: http://svn.eby-sarna.com/wsgiref/ Anonymous SVN: svn://svn.eby-sarna.com/svnroot/wsgiref

Re: [Python-Dev] 2.5 open issues

2006-04-28 Thread Martin v. Löwis
Georg Brandl wrote: As I posted here previously, I contacted the owner, and he said that he didn't care about specifying a license. I guess that means that we can pick one ;) Can you please ask whether he would be willing to fill out a contrib form

Re: [Python-Dev] rest2latex - was: Re: Raising objections

2006-04-28 Thread engelbert . gruber
i commited mkpydoc to docutils/sandbox/pydoc-writer with some small modifications - Patch for python 2.3. - Filenames from command line. - Guard definition of ``locallinewidth`` against redefinition. - latex needs definition of ``locallinewidth``. 1. there isnt a copyright in

[Python-Dev] Float formatting and #

2006-04-28 Thread Georg Brandl
Is there a reason why the alternate format isn't documented for float conversions in http://docs.python.org/lib/typesseq-strings.html ? '%#8.f' % 1.0 keeps the decimal point while '%8.f' % 1.0 drops it. Also, for %g the alternate form keeps trailing zeroes. While at it, I noticed a difference

Re: [Python-Dev] [Web-SIG] Adding wsgiref to stdlib

2006-04-28 Thread Ian Bicking
Guido van Rossum wrote: PEP 333 specifies WSGI, the Python Web Server Gateway Interface v1.0; it's written by Phillip Eby who put a lot of effort in it to make it acceptable to very diverse web frameworks. The PEP has been well received by web framework makers and users. As a supplement to

Re: [Python-Dev] Float formatting and #

2006-04-28 Thread Georg Brandl
Georg Brandl wrote: Is there a reason why the alternate format isn't documented for float conversions in http://docs.python.org/lib/typesseq-strings.html ? '%#8.f' % 1.0 keeps the decimal point while '%8.f' % 1.0 drops it. Also, for %g the alternate form keeps trailing zeroes. While at

Re: [Python-Dev] [Web-SIG] Adding wsgiref to stdlib

2006-04-28 Thread Guido van Rossum
On 4/28/06, Ian Bicking [EMAIL PROTECTED] wrote: I'd like to include paste.lint with that as well (as wsgiref.lint or whatever). Since the last discussion I enumerated in the docstring all the checks it does. There's still some outstanding issues, mostly where I'm not sure if it is too

Re: [Python-Dev] [Web-SIG] Adding wsgiref to stdlib

2006-04-28 Thread Ian Bicking
Guido van Rossum wrote: I think another useful addition would be some prefix-based dispatcher, similar to paste.urlmap (but probably a bit simpler): http://svn.pythonpaste.org/Paste/trunk/paste/urlmap.py IMO this is getting into framework design. Perhaps something like this could be added

Re: [Python-Dev] [Web-SIG] Adding wsgiref to stdlib

2006-04-28 Thread Phillip J. Eby
At 02:32 PM 4/28/2006 -0500, Ian Bicking wrote: Guido van Rossum wrote: PEP 333 specifies WSGI, the Python Web Server Gateway Interface v1.0; it's written by Phillip Eby who put a lot of effort in it to make it acceptable to very diverse web frameworks. The PEP has been well received by

Re: [Python-Dev] [Web-SIG] Adding wsgiref to stdlib

2006-04-28 Thread Guido van Rossum
It still looks like an application of WSGI, not part of a reference implementation. Multiple apps looks like an advanced topic to me; more something that the infrastructure (Apache server or whatever) ought to take care of. I don't expect you to agree with me. But I don't expect you to be able to

Re: [Python-Dev] [Web-SIG] Adding wsgiref to stdlib

2006-04-28 Thread Phillip J. Eby
At 01:19 PM 4/28/2006 -0700, Guido van Rossum wrote: It still looks like an application of WSGI, not part of a reference implementation. Multiple apps looks like an advanced topic to me; more something that the infrastructure (Apache server or whatever) ought to take care of. I'm fine with a

Re: [Python-Dev] [Web-SIG] Adding wsgiref to stdlib

2006-04-28 Thread Guido van Rossum
On 4/28/06, Phillip J. Eby [EMAIL PROTECTED] wrote: If it's small enough, I'd say to add this mapper to wsgiref.util, or if Guido is strongly set against it being in the code, we should at least put it in the documentation as an example of how to use 'shift_path_info()' in wsgiref.util. I'm

Re: [Python-Dev] [Web-SIG] Adding wsgiref to stdlib

2006-04-28 Thread Collin Winter
On 4/28/06, Phillip J. Eby [EMAIL PROTECTED] wrote: At 01:19 PM 4/28/2006 -0700, Guido van Rossum wrote: It still looks like an application of WSGI, not part of a reference implementation. Multiple apps looks like an advanced topic to me; more something that the infrastructure (Apache server

Re: [Python-Dev] [Web-SIG] Adding wsgiref to stdlib

2006-04-28 Thread Ian Bicking
Phillip J. Eby wrote: I'd like to include paste.lint with that as well (as wsgiref.lint or whatever). Since the last discussion I enumerated in the docstring all the checks it does. There's still some outstanding issues, mostly where I'm not sure if it is too restrictive (marked with @@ in

Re: [Python-Dev] [Web-SIG] Adding wsgiref to stdlib

2006-04-28 Thread Ian Bicking
Phillip J. Eby wrote: At 01:19 PM 4/28/2006 -0700, Guido van Rossum wrote: It still looks like an application of WSGI, not part of a reference implementation. Multiple apps looks like an advanced topic to me; more something that the infrastructure (Apache server or whatever) ought to take

Re: [Python-Dev] [Web-SIG] Adding wsgiref to stdlib

2006-04-28 Thread Phillip J. Eby
At 04:04 PM 4/28/2006 -0500, Ian Bicking wrote: I don't see why not to use prefix matching. It is more consistent with the handling of the default application ('', instead of a method that needs to be overridden), and more general, and the algorithm is only barely more complex and not what I'd

Re: [Python-Dev] binary trees. Review obmalloc.c

2006-04-28 Thread Martin v. Löwis
Vladimir 'Yu' Stepanov wrote: * To adapt allocation of blocks of memory with other alignment. Now alignment is rigidly set on 8 bytes. As a variant, it is possible to use alignment on 4 bytes. And this value can be set at start of the interpreter through arguments/variable environments/etc.

Re: [Python-Dev] [Web-SIG] Adding wsgiref to stdlib

2006-04-28 Thread Ian Bicking
Phillip J. Eby wrote: At 04:04 PM 4/28/2006 -0500, Ian Bicking wrote: I don't see why not to use prefix matching. It is more consistent with the handling of the default application ('', instead of a method that needs to be overridden), and more general, and the algorithm is only barely

Re: [Python-Dev] [Web-SIG] Adding wsgiref to stdlib

2006-04-28 Thread Phillip J. Eby
At 05:47 PM 4/28/2006 -0500, Ian Bicking wrote: It will still be only a couple lines less than prefix matching. That's beside the point. Prefix matching is inherently a more complex concept, and more likely to be confusing, without introducing much in the way of new features. If I want to

Re: [Python-Dev] [Web-SIG] Adding wsgiref to stdlib

2006-04-28 Thread Phillip J. Eby
At 04:34 PM 4/28/2006 -0700, Titus Brown wrote: Hi, Phillip, I'm getting this error when I run the tests, with both Python 2.3 and 2.4: == FAIL: testHeaderFormats (wsgiref.tests.test_handlers.HandlerTests)

Re: [Python-Dev] [Web-SIG] Adding wsgiref to stdlib

2006-04-28 Thread Ian Bicking
Phillip J. Eby wrote: At 05:47 PM 4/28/2006 -0500, Ian Bicking wrote: It will still be only a couple lines less than prefix matching. That's beside the point. Prefix matching is inherently a more complex concept, and more likely to be confusing, without introducing much in the way of new

Re: [Python-Dev] 2.5 open issues

2006-04-28 Thread Neal Norwitz
Here's what's left for 2.5 after the most recent go around. There's no owner for these items. If no one takes them, they won't get done and I will move them to deferred within a week: * Add @decorator decorator to functional, rename to functools? What's the benefit of @decorator? Who

[Python-Dev] Weekly Python Patch/Bug Summary

2006-04-28 Thread Kurt B. Kaiser
Patch / Bug Summary ___ Patches : 378 open ( +7) / 3199 closed ( +4) / 3577 total (+11) Bugs: 901 open ( -7) / 5792 closed (+25) / 6693 total (+18) RFE : 214 open ( +3) / 214 closed ( +2) / 428 total ( +5) New / Reopened Patches __ Allow

Re: [Python-Dev] 2.5 open issues

2006-04-28 Thread Collin Winter
On 4/28/06, Neal Norwitz [EMAIL PROTECTED] wrote: There's no owner for these items. If no one takes them, they won't get done and I will move them to deferred within a week: * Add @decorator decorator to functional, rename to functools? What's the benefit of @decorator? Who made

Re: [Python-Dev] 2.5 open issues

2006-04-28 Thread Tim Peters
[Georg Brandl] As I posted here previously, I contacted the owner, and he said that he didn't care about specifying a license. I guess that means that we can pick one ;) [Martin v. Löwis] Can you please ask whether he would be willing to fill out a contrib form

Re: [Python-Dev] Float formatting and #

2006-04-28 Thread Tim Peters
[Georg Brandl] ... Reviewing the printf man page, this is okay since for %f, the precision is the number of digits after the decimal point while for %g, it is the number of significant digits. Still, that should be documented in the Python manual. Well, there are a lot of little details in