Re: [Python-Dev] PEP 3148 ready for pronouncement

2010-05-23 Thread Brian Quinlan
On May 23, 2010, at 2:44 PM, Glyph Lefkowitz wrote: On May 22, 2010, at 8:47 PM, Brian Quinlan wrote: Jesse, the designated pronouncer for this PEP, has decided to keep discussion open for a few more days. So fire away! As you wish! I retract my request ;-) The PEP should be

Re: [Python-Dev] PEP 3148 ready for pronouncement

2010-05-23 Thread geremy condra
On Sun, May 23, 2010 at 2:37 AM, Brian Quinlan br...@sweetapp.com wrote: snip Finally, why isn't this just a module on PyPI?  It doesn't seem like there's any particular benefit to making this a stdlib module and going through the whole PEP process - except maybe to prompt feedback like this

Re: [Python-Dev] PEP 3148 ready for pronouncement

2010-05-23 Thread Brian Quinlan
On May 23, 2010, at 7:15 PM, geremy condra wrote: On Sun, May 23, 2010 at 2:37 AM, Brian Quinlan br...@sweetapp.com wrote: snip Finally, why isn't this just a module on PyPI? It doesn't seem like there's any particular benefit to making this a stdlib module and going through the whole

Re: [Python-Dev] PEP 3148 ready for pronouncement

2010-05-23 Thread Lennart Regebro
On Sun, May 23, 2010 at 11:39, Brian Quinlan br...@sweetapp.com wrote: This package eliminates the need to construct the boilerplate present in many Python applications i.e. a thread or process pool, a work queue and result queue.  It also makes it easy to take an existing Python application

Re: [Python-Dev] PEP 3148 ready for pronouncement

2010-05-23 Thread Brian Quinlan
On May 23, 2010, at 7:54 PM, Lennart Regebro wrote: On Sun, May 23, 2010 at 11:39, Brian Quinlan br...@sweetapp.com wrote: This package eliminates the need to construct the boilerplate present in many Python applications i.e. a thread or process pool, a work queue and result queue. It

Re: [Python-Dev] PEP 3148 ready for pronouncement

2010-05-23 Thread Robert Collins
On Sun, May 23, 2010 at 10:15 PM, Brian Quinlan br...@sweetapp.com wrote: Also, you can't fix bugs except by releasing new versions of Python. Therefore the API must be completely stable, and the product virtually bugfree before it should be in stdlib. The best way of ensuring that is to

Re: [Python-Dev] PEP 3148 ready for pronouncement

2010-05-23 Thread Dirkjan Ochtman
On Sun, May 23, 2010 at 12:15, Brian Quinlan br...@sweetapp.com wrote: I doubt it. Simple modules are unlikely to develop a following because it is too easy to partially replicate their functionality. urlparse and os.path are very useful modules but I doubt that they would have been successful

Re: [Python-Dev] PEP 3148 ready for pronouncement

2010-05-23 Thread Brian Quinlan
On May 23, 2010, at 8:43 PM, Robert Collins wrote: On Sun, May 23, 2010 at 10:15 PM, Brian Quinlan br...@sweetapp.com wrote: Also, you can't fix bugs except by releasing new versions of Python. Therefore the API must be completely stable, and the product virtually bugfree before it

[Python-Dev] Dead modules

2010-05-23 Thread Antoine Pitrou
On Sun, 23 May 2010 12:43:57 +0200 Dirkjan Ochtman dirk...@ochtman.nl wrote: In general, this reminds me of the ipaddr discussions. I read through the thread from March real quick to see if there was reasoning there why this package should be an exception from the normal standards track

Re: [Python-Dev] PEP 3148 ready for pronouncement

2010-05-23 Thread Brian Quinlan
On May 23, 2010, at 8:43 PM, Dirkjan Ochtman wrote: On Sun, May 23, 2010 at 12:15, Brian Quinlan br...@sweetapp.com wrote: I doubt it. Simple modules are unlikely to develop a following because it is too easy to partially replicate their functionality. urlparse and os.path are very useful

Re: [Python-Dev] Dead modules

2010-05-23 Thread Dirkjan Ochtman
On Sun, May 23, 2010 at 12:51, Antoine Pitrou solip...@pitrou.net wrote: I disagree that a stdlib module is a dead module. It is perfectly possible to augment the API with new functionality without breaking compatibility. You can also deprecate old APIs if you want. Right, it wasn't intended

Re: [Python-Dev] PEP 3148 ready for pronouncement

2010-05-23 Thread Andrew Svetlov
Is there any reason to have Future .cancelled, .done, .running as methods? From my perspective they are really readonly properties. BTW, is 'cancelled' correct name? Spell-checkers likes only single 'l' form: 'canceled'. On Sun, May 23, 2010 at 2:47 PM, Brian Quinlan br...@sweetapp.com wrote:

Re: [Python-Dev] PEP 3148 ready for pronouncement

2010-05-23 Thread Lennart Regebro
On Sun, May 23, 2010 at 12:15, Brian Quinlan br...@sweetapp.com wrote: You could make the same argument about any module in the stdlib. Yeah, and that's exactly what I did. I doubt it. Simple modules are unlikely to develop a following because it is too easy to partially replicate their

Re: [Python-Dev] PEP 3148 ready for pronouncement

2010-05-23 Thread Jon Ribbens
On Sun, May 23, 2010 at 03:16:27PM +0400, Andrew Svetlov wrote: Is there any reason to have Future .cancelled, .done, .running as methods? From my perspective they are really readonly properties. BTW, is 'cancelled' correct name? Spell-checkers likes only single 'l' form: 'canceled'. In

Re: [Python-Dev] PEP 3148 ready for pronouncement

2010-05-23 Thread Brian Quinlan
On 23 May 2010, at 21:17, Lennart Regebro wrote: On Sun, May 23, 2010 at 12:15, Brian Quinlan br...@sweetapp.com wrote: You could make the same argument about any module in the stdlib. Yeah, and that's exactly what I did. I doubt it. Simple modules are unlikely to develop a following

Re: [Python-Dev] PEP 3148 ready for pronouncement

2010-05-23 Thread Steve Holden
Brian Quinlan wrote: On May 23, 2010, at 2:44 PM, Glyph Lefkowitz wrote: [...] One minor suggestion on the internal future methods bit - something I wish we'd done with Deferreds was to put 'callback()' and 'addCallbacks()' on separate objects, so that it was very explicit whether you

Re: [Python-Dev] PEP 3148 ready for pronouncement

2010-05-23 Thread Lennart Regebro
On Sun, May 23, 2010 at 13:29, Brian Quinlan br...@sweetapp.com wrote: Parts of it, yes. Just like I can replace most operations in os.path and urlparse with a few lines of code. Yeah, but parts of is not the question. I've read the PEP, and I do *not* know how to implement it. That means it's

Re: [Python-Dev] PEP 3148 ready for pronouncement

2010-05-23 Thread Jesse Noller
On Sun, May 23, 2010 at 7:52 AM, Steve Holden st...@holdenweb.com wrote: ...snip... Issues like the ones I'm bringing up could be fixed pretty straightforwardly if it were just a matter of filing a bug on a small package, but fixing a stdlib module is a major undertaking. True but I don't

Re: [Python-Dev] PEP 3148 ready for pronouncement

2010-05-23 Thread Antoine Pitrou
On Sun, 23 May 2010 08:34:22 -0400 Jesse Noller jnol...@gmail.com wrote: Brian has already agreed to name spacing it to concurrent.futures - this means it will be a small part to a much larger concurrent.* implementation ala Java. What I would question here is what other things will be part

Re: [Python-Dev] PEP 3148 ready for pronouncement

2010-05-23 Thread Steve Holden
Jesse Noller wrote: On Sun, May 23, 2010 at 7:52 AM, Steve Holden st...@holdenweb.com wrote: ...snip... Issues like the ones I'm bringing up could be fixed pretty straightforwardly if it were just a matter of filing a bug on a small package, but fixing a stdlib module is a major

Re: [Python-Dev] PEP 3148 ready for pronouncement

2010-05-23 Thread Terry Reedy
On 5/22/2010 8:06 PM, Jeffrey Yasskin wrote: On Sat, May 22, 2010 at 4:12 PM, Brian Quinlanbr...@sweetapp.com wrote: Rename executor = executer -1 for consistency with Java. -10 for 'executer'. As far as I can find out, it is a misspelling of 'executor'. If the designers of some other

Re: [Python-Dev] PEP 3148 ready for pronouncement

2010-05-23 Thread Glyph Lefkowitz
On May 23, 2010, at 2:37 AM, Brian Quinlan wrote: On May 23, 2010, at 2:44 PM, Glyph Lefkowitz wrote: On May 22, 2010, at 8:47 PM, Brian Quinlan wrote: Jesse, the designated pronouncer for this PEP, has decided to keep discussion open for a few more days. So fire away! As you

Re: [Python-Dev] PEP 3148 ready for pronouncement

2010-05-23 Thread Greg Ewing
Glyph Lefkowitz wrote: Finally, why isn't this just a module on PyPI? It doesn't seem like there's any particular benefit to making this a stdlib module and going through the whole PEP process I'm inclined to agree. This needs to be field-tested before being considered for stdlib inclusion.

Re: [Python-Dev] PEP 3148 ready for pronouncement

2010-05-23 Thread Greg Ewing
Brian Quinlan wrote: The good news in this case is that the same API has been used successfully in Java and C++ for years so it is unlikely that any major changes will need to be made. That doesn't follow. An API that's appropriate for Java or C++ is not necessarily appropriate for Python.

Re: [Python-Dev] PEP 3148 ready for pronouncement

2010-05-23 Thread Greg Ewing
Brian Quinlan wrote: Simple modules are unlikely to develop a following because it is too easy to partially replicate their functionality. I don't think it needs a particularly large following. What it does need is at least a few people using it in some real projects. No matter how much

Re: [Python-Dev] PEP 3148 ready for pronouncement

2010-05-23 Thread Greg Ewing
Andrew Svetlov wrote: BTW, is 'cancelled' correct name? Spell-checkers likes only single 'l' form: 'canceled'. I think this is an English vs. American thing. Double 'l' looks right to me, but then I was brought up as a loyal subject of the antipodean branch of the British Empire. :-) -- Greg

Re: [Python-Dev] PEP 3148 ready for pronouncement

2010-05-23 Thread Stephen J. Turnbull
Brian Quinlan writes: If you are familiar with threads then writing a good enough solution without futures probably won't take you very long. Also, unless you are familiar with another futures implementation, you aren't likely to know where to look. That looks like an argument

Re: [Python-Dev] PEP 3148 ready for pronouncement

2010-05-23 Thread Cameron Simpson
On 24May2010 10:47, Stephen J. Turnbull step...@xemacs.org wrote: | Brian Quinlan writes: | If you are familiar with threads then writing a good enough solution | without futures probably won't take you very long. Also, unless you | are familiar with another futures implementation, you

[Python-Dev] moving issues from argparse tracker to python tracker?

2010-05-23 Thread Steven Bethard
Before I go and add about 30 open issues to the Python tracker, I figured I should ask. What's the normal process for the bug trackers of modules that move to the standard library? I have a few feature requests, etc. for argparse, and I was planning to just copy them over to the Python bug tracker

Re: [Python-Dev] moving issues from argparse tracker to python tracker?

2010-05-23 Thread Senthil Kumaran
On Sun, May 23, 2010 at 08:52:19PM -0700, Steven Bethard wrote: requests, etc. for argparse, and I was planning to just copy them over to the Python bug tracker (and close them on the Google code tracker). I think, this is a good idea. +1 from me. There is only one module, bsddb, which is