Re: [Python-Dev] splitext('.cshrc')

2007-03-06 Thread Terry Reedy
"Phillip J. Eby" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | >Windows did not allow .xxx as a filename in my attempts, so this case seems | >irrelevant there. | | Huh? .xyz files work fine on Windows. Tim G. explained that Explorer, which I tried, is for whatever reason stri

Re: [Python-Dev] Python-3000 upgrade path

2007-03-06 Thread Guido van Rossum
On 2/27/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > 2to3 should take great care _tell_ you when it fails. One concern I have is > that the source translation may subtly alter the *semantics* of unit test > code, so that the tests are no longer effective and do not provide adequate > cove

Re: [Python-Dev] locals(), closures, and IronPython...

2007-03-06 Thread Greg Ewing
Andrew Dalke wrote: > def __init__(self, prec=None, rounding=None, > traps=None, flags=None, > _rounding_decision=None, > Emin=None, Emax=None, > capitals=None, _clamp=0, > _ignored_flags=None): > ..

Re: [Python-Dev] Encouraging developers

2007-03-06 Thread Terry Reedy
""Martin v. Löwis"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | Terry Reedy schrieb: | > It would also be helpful if the new tracker system could produce a list of | > module-specific open items sorted by module, since that would indicate | > modules needing attention, and I co

[Python-Dev] PEP 364, Transitioning to the Py3K standard library

2007-03-06 Thread Barry Warsaw
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Here's a new PEP that's the outgrowth of work Brett Cannon and I did at PyCon. Basically we were looking for a way to allow for forward compatibility with PEP 3108, which describes a reorganization of the standard library. PEP 364 is for Python

Re: [Python-Dev] splitext('.cshrc')

2007-03-06 Thread Terry Jones
I think there are various good arguments that the current behavior of splitext isn't optimal. But. these don't feel strong enough to me to break existing code or to force people who happen to be in the know to go hunt down and review old code etc. I don't see the point in doing that, just to fi

Re: [Python-Dev] splitext('.cshrc')

2007-03-06 Thread Greg Ewing
Tim Lesher wrote: > FWIW, all of the "standard" Windows functions from the Microsoft CRT > (_splitpath) to the Shell API (PathRemoveExtension) to the CLR > (System.IO.Path.*) believe that ".cshrc" is the extension of the > filename ".cshrc". > > I'm not sure if that's an argument for or against th

Re: [Python-Dev] locals(), closures, and IronPython...

2007-03-06 Thread Mike Klaas
On 3/6/07, Greg Ewing <[EMAIL PROTECTED]> wrote: > Although you can get a similar effect now by doing > > def __init__(self, **kwds): > args = dict(prec=None, rounding=None, >traps=None, flags=None, >_rounding_decision=None, >

Re: [Python-Dev] splitext('.cshrc')

2007-03-06 Thread glyph
On 10:18 pm, [EMAIL PROTECTED] wrote: Phillip J. Eby schrieb: At 10:01 PM 3/6/2007 +0100, Martin v. L�wis wrote: It's unfortunate, of course, that people apparently relied on this behavior I was going to say it's the *documented* behavior, but I see that the documentation is actually such tha

Re: [Python-Dev] Python-3000 upgrade path

2007-03-06 Thread glyph
On 10:22 pm, [EMAIL PROTECTED] wrote: On 2/27/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: 2to3 should take great care _tell_ you when it fails. One concern I have is that the source translation may subtly alter the *semantics* of unit test code, so that the tests are no longer effective a

Re: [Python-Dev] PEP 364, Transitioning to the Py3K standard library

2007-03-06 Thread Brett Cannon
On 3/6/07, Barry Warsaw <[EMAIL PROTECTED]> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Here's a new PEP that's the outgrowth of work Brett Cannon and I did > at PyCon. Basically we were looking for a way to allow for forward > compatibility with PEP 3108, which describes a reorga

Re: [Python-Dev] Python-3000 upgrade path

2007-03-06 Thread Guido van Rossum
On 3/6/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > On 10:22 pm, [EMAIL PROTECTED] wrote: > >On 2/27/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > >>2to3 should take great care _tell_ you when it fails. One concern I have > >>is that the source translation may subtly alter the *semantic

Re: [Python-Dev] Encouraging developers

2007-03-06 Thread Anthony Baxter
On Tuesday 06 March 2007 20:24, Martin v. Löwis wrote: > It might be that individuals get designated maintainers: Guido > maintains list and tuple, Tim maintaines dict, Raymond maintains > set, I maintain configure.in. However, I doubt that would work in > practice. That approach would simply give

Re: [Python-Dev] Finding the python library binaries (and docs)

2007-03-06 Thread David Abrahams
on Tue Mar 06 2007, "Martin v. Löwis" wrote: > David Abrahams schrieb: >> on Tue Mar 06 2007, "Martin v. Löwis" wrote: >>> David Abrahams schrieb: I'm trying to find the Python library binaries associated with a given python executable. >>> This really isn't a python-dev question; ple

Re: [Python-Dev] Encouraging developers

2007-03-06 Thread skip
Martin> If, for "Modules", you want a more fine-grained classification, Martin> it would be possible to add new categories, or add another field Martin> "affected modules" (multi-list, I assume). Why not add some tag capability to the new tracker (maybe the generic keywords field you

Re: [Python-Dev] how can I review? [was: Encouraging developers]

2007-03-06 Thread Jim Jewett
I guess I should have been less specific. :D It has been quite a while since I worried about my own patches going stale; I just want to know how my review time can be more useful. Once a committer has already decided to look at a patch, comments may make the next step easier. But is there anywa

Re: [Python-Dev] Encouraging developers

2007-03-06 Thread Barry Warsaw
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Mar 6, 2007, at 7:51 PM, [EMAIL PROTECTED] wrote: > Why not add some tag capability to the new tracker (maybe the generic > keywords field you mentioned would suffice)? People could attach > whatever > tags seem appropriate. Limiting the tags t

Re: [Python-Dev] Adding socket timeout to urllib2

2007-03-06 Thread Adam Olsen
On 3/6/07, Guido van Rossum <[EMAIL PROTECTED]> wrote: > On 3/6/07, Facundo Batista <[EMAIL PROTECTED]> wrote: > > Guido van Rossum wrote: > > > > >> - I'll modify urlopen for it to accept a socket_timeout parameter, > > >> default to None > > > > > > I'd call it timeout. There can't really be much

Re: [Python-Dev] Adding socket timeout to urllib2

2007-03-06 Thread Guido van Rossum
On 3/6/07, Adam Olsen <[EMAIL PROTECTED]> wrote: > On 3/6/07, Guido van Rossum <[EMAIL PROTECTED]> wrote: > > On 3/6/07, Facundo Batista <[EMAIL PROTECTED]> wrote: > > > Guido van Rossum wrote: > > > > > > >> - I'll modify urlopen for it to accept a socket_timeout parameter, > > > >> default to Non

Re: [Python-Dev] Adding socket timeout to urllib2

2007-03-06 Thread skip
>> Think of it this way. "Timeout" doesn't mean the whole thing needs to >> be completed in 10 secs. It means that over 10 secs of no activity >> causes it to be aborted. Adam> IOW, It's an idle timeout. Not quite. It's a timeout when you are waiting for some sort of response. If

Re: [Python-Dev] Adding socket timeout to urllib2

2007-03-06 Thread Adam Olsen
On 3/6/07, Guido van Rossum <[EMAIL PROTECTED]> wrote: > On 3/6/07, Adam Olsen <[EMAIL PROTECTED]> wrote: > > IOW, It's an idle timeout. > > That's not in wikipedia. :-) I know, I checked before posting. ;) > It's the only timeout that is available to us, realistically; the > socket module calls

Re: [Python-Dev] Adding socket timeout to urllib2

2007-03-06 Thread Guido van Rossum
On 3/6/07, Adam Olsen <[EMAIL PROTECTED]> wrote: > I think calling it "timeout" in the API is fine. The documentation > can then clarify that it's an idle timeout, except it only applies > when blocked in a network operation. Since "idel timeout" is not a commonly understood term it would be even

Re: [Python-Dev] PEP 364, Transitioning to the Py3K standard library

2007-03-06 Thread Barry Warsaw
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 >> Supported Renamings >> === >> >> There are at least 4 use cases explicitly supported by this PEP: >> >> - - Simple top-level package name renamings, such as ``StringIO`` to >>``stringio``; >> >> - - Sub-package renamings where th

Re: [Python-Dev] Adding socket timeout to urllib2

2007-03-06 Thread skip
Guido> Since "idel timeout" is not a commonly understood term it would Guido> be even better if it was explained without using it. I think it's commonly understood, but it doesn't mean what the socket timeout is used for. It's how long a connection can be idle (the client doesn't make a

Re: [Python-Dev] PEP 364, Transitioning to the Py3K standard library

2007-03-06 Thread skip
Barry, Does the proposed renaming include any restructuring (e.g. making hierarchies out of all or part of the stdlib where none existed before)? It wasn't obvious to me. For example, might there be a restructuring of the entire stdlib? Skip ___ Pyth

Re: [Python-Dev] Adding socket timeout to urllib2

2007-03-06 Thread skip
Bob> What does idle timeout have to do with urllib2 or any IO layer for Bob> that matter? I've only seen it as a very high level server-only Bob> feature... Nothing at all. I believe Adam just applied that term incorrectly to the socket timeout parameter. Skip __

Re: [Python-Dev] Adding socket timeout to urllib2

2007-03-06 Thread Bob Ippolito
On 3/6/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Guido> Since "idel timeout" is not a commonly understood term it would > Guido> be even better if it was explained without using it. > > I think it's commonly understood, but it doesn't mean what the socket > timeout is used for.

Re: [Python-Dev] Lack of sequential decompression in the zipfile module

2007-03-06 Thread Nilton Volpato
Hi Derek, On 2/16/07, Derek Shockey <[EMAIL PROTECTED]> wrote: > Though I am an avid Python programmer, I've never forayed into the area of > developing Python itself, so I'm not exactly sure how all this works. > > I was confused (and somewhat disturbed) to discover recently that the > zipfile mo

Re: [Python-Dev] Encouraging developers

2007-03-06 Thread Neal Norwitz
On 3/6/07, Ron Adam <[EMAIL PROTECTED]> wrote: > Neal Norwitz wrote: > > I'm looking forward to a new tracker and hope it manages single projects... > (patches and bugs) better. It would be great if we could search for items > based on possibly the following conditions. The best place to discuss

Re: [Python-Dev] Encouraging developers

2007-03-06 Thread Neal Norwitz
On 3/6/07, Terry Reedy <[EMAIL PROTECTED]> wrote: > > ""Martin v. Löwis"" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > >1. Public identification will not help, because: > >2. most code isn't in the responsibility of anybody (so publically > >identifying responsibilities would

Re: [Python-Dev] Encouraging developers

2007-03-06 Thread Ron Adam
Neal Norwitz wrote: > On 3/6/07, Ron Adam <[EMAIL PROTECTED]> wrote: >> Neal Norwitz wrote: >> >> I'm looking forward to a new tracker and hope it manages single >> projects... >> (patches and bugs) better. It would be great if we could search for >> items >> based on possibly the following cond

Re: [Python-Dev] locals(), closures, and IronPython...

2007-03-06 Thread Andrew Dalke
On 3/6/07, Mike Klaas <[EMAIL PROTECTED]> wrote: > There's nothing quite like running help(func) and getting *args, > **kwargs as the documented parameter list. I think >>> import resource >>> help(resource.getpagesize) Help on built-in function getpagesize in module resource: getpagesize(...)

Re: [Python-Dev] Finding the python library binaries (and docs)

2007-03-06 Thread Martin v. Löwis
David Abrahams schrieb: >> That absolutely cannot be the case. Python is open source, you have >> *everything* you need to answer this question. > > That assumes this is one of those questions to which "use the source" > is applicable. I think answering it requires some understanding of > intentio

<    1   2