Re: [Python-Dev] urllib.quote and unicode bug resuscitation attempt

2006-07-12 Thread Stefan Rank
on 12.07.2006 07:53 Martin v. Löwis said the following: > Anthony Baxter wrote: >>> The right thing to do is IRIs. >> For 2.5, should we at least detect that it's unicode and raise a >> useful error? > > That can certainly be done, sure. > > Martin That would be great. And I agree that updati

Re: [Python-Dev] User's complaints

2006-07-12 Thread skip
>> Python 2.3: >> >> >>> import time >> >>> time.strftime("%Y-%m-%d", (2005, 6, 4) + (0,)*6) >> '2005-06-04' Martin> Is there any specific reason you couldn't write Martin> "%d-%02d-%02d" % (2005, 6, 4) Martin> (i.e. not use strftime at all)? Sure, but that was

Re: [Python-Dev] Long options support

2006-07-12 Thread Georg Brandl
Fredrik Lundh wrote: > Georg Brandl wrote: > >> I've just closed a bug report wishing for long option support, >> pointing to a patch sitting in the patch tracker implementing >> this. >> >> Should we accept at least the very common options "--help" and >> "--version" in 2.5? > > Guido pronounced

Re: [Python-Dev] Long options support

2006-07-12 Thread Fredrik Lundh
Georg Brandl wrote: > Late it comes, but here is a patch for getopt.c implementing > this pronouncement. I think there's no need to wait for 2.6 with it, > or is there? check it in already. ___ Python-Dev mailing list Python-Dev@python.org http://

[Python-Dev] Behavior change in subprocess.py

2006-07-12 Thread Kevin Jacobs <[EMAIL PROTECTED]>
During my testing of Python 2.5b2, I've found something that may be worthy of discussion.  I suspect that recent GC and finalization changes have altered the behavior of the Popen object in subprocess.py.  I am now getting many many many finalization warnings in my code like: Exception exceptions.A

Re: [Python-Dev] Explicit Lexical Scoping (pre-PEP?)

2006-07-12 Thread Boris Borcic
Terry Reedy wrote: > "Boris Borcic" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >> I agree with you (and argued it in "scopes vs augmented assignment vs >> sets" >> recently) that mutating would be sufficient /if/ the compiler would view >> augmented assignment as mutations oper

Re: [Python-Dev] Autoloading? (Making Queue.Queue easier to use)

2006-07-12 Thread Guido van Rossum
Why do I have the feeling you sent this to the wrong list? On 7/10/06, Perkins, Christopher <[EMAIL PROTECTED]> wrote: > John, > > I see what you are doing with the algorithm now, and I can easily re-factor > it. What I am having issues with is how structured it is. 5 minute > windows? Then run

Re: [Python-Dev] Long options support

2006-07-12 Thread Anthony Baxter
On Wednesday 12 July 2006 21:55, Georg Brandl wrote: > >> Should we accept at least the very common options "--help" and > >> "--version" in 2.5? > > > > Guido pronounced on this in May > > Late it comes, but here is a patch for getopt.c implementing > this pronouncement. I think there's no need to

Re: [Python-Dev] Support for PyGetSetDefs in pydoc

2006-07-12 Thread Barry Warsaw
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Jul 10, 2006, at 9:52 PM, Barry Warsaw wrote: > Patch #1520294 adds support for attributes defined with PyGetSetDef > in extension modules to pydoc, specifically so things like help > (array.array.typecode) gives something useful, like the attri

Re: [Python-Dev] User's complaints

2006-07-12 Thread Armin Rigo
Hi Brett, On Tue, Jul 11, 2006 at 06:05:21PM -0700, Brett Cannon wrote: > It is the last point in the first paragraph on time.strftime() discussing > what changed in Python 2.4 as to what the change was. It's also in > Misc/NEWS . Basically the guy didn't read the release notes or the docs to >

Re: [Python-Dev] User's complaints

2006-07-12 Thread Neal Norwitz
On 7/12/06, Armin Rigo <[EMAIL PROTECTED]> wrote: > > Only two breakages is certainly nice, and I know that we all try quite > hard to minimize that; that's probably still two breakages too much. I agree, but some of this responsibility has to fall to users. Sometimes these breakages are bugs, pur

[Python-Dev] Restricted execution: what's the threat model?

2006-07-12 Thread Jim Jewett
Ka-Ping Yee writes: > A. The interpreter will not crash no matter what Python code > it is given to execute. Why? We don't want it to crash the embedding app (which might be another python interpreter), but if the sandboxed interpreter itself crashes, is that so bad? The embedding app

Re: [Python-Dev] Restricted execution: what's the threat model?

2006-07-12 Thread Bob Ippolito
On Jul 12, 2006, at 2:23 PM, Jim Jewett wrote: > Ka-Ping Yee writes: > >> A. The interpreter will not crash no matter what Python code >> it is given to execute. > > Why? > > We don't want it to crash the embedding app (which might be another > python interpreter), but if the sandboxed i

Re: [Python-Dev] Explicit Lexical Scoping (pre-PEP?)

2006-07-12 Thread Fredrik Lundh
Boris Borcic wrote: >> note that most examples of this type already work, if the target type is >> mutable, and implement the right operations: >> >> def counter(num): >> num = mutable_int(num) >> def inc(): >> num += 1 >> return num >>

Re: [Python-Dev] Explicit Lexical Scoping (pre-PEP?)

2006-07-12 Thread Ka-Ping Yee
On Thu, 13 Jul 2006, Fredrik Lundh wrote: > Boris Borcic wrote: > > >> note that most examples of this type already work, if the target type is > >> mutable, and implement the right operations: > >> > >> def counter(num): > >> num = mutable_int(num) > >> def inc(): > >>

Re: [Python-Dev] User's complaints

2006-07-12 Thread Brett Cannon
On 7/12/06, Armin Rigo <[EMAIL PROTECTED]> wrote: Hi Brett,On Tue, Jul 11, 2006 at 06:05:21PM -0700, Brett Cannon wrote:> It is the last point in the first paragraph on time.strftime() discussing> what changed in Python 2.4 as to what the change was.  It's also in > Misc/NEWS .  Basically the guy d

Re: [Python-Dev] Restricted execution: what's the threat model?

2006-07-12 Thread Brett Cannon
On 7/12/06, Jim Jewett <[EMAIL PROTECTED]> wrote: Ka-Ping Yee writes:>   A.  The interpreter will not crash no matter what Python code>   it is given to execute.Why?We don't want it to crash the embedding app (which might be another python interpreter), but if the sandboxed interpreter itself c

Re: [Python-Dev] User's complaints

2006-07-12 Thread Guido van Rossum
On 7/12/06, Armin Rigo <[EMAIL PROTECTED]> wrote: > I guess I'm going to side with Greg Black on his blog entry. I seem to recall that that particular one wass *not* an accidental bug. I believe I fell over exactly the problem that Greg Black complained about (or almost the same; maybe my problem

Re: [Python-Dev] User's complaints

2006-07-12 Thread Brett Cannon
On 7/12/06, Guido van Rossum <[EMAIL PROTECTED]> wrote: On 7/12/06, Armin Rigo <[EMAIL PROTECTED]> wrote:> I guess I'm going to side with Greg Black on his blog entry.I seem to recall that that particular one wass *not* an accidental bug. I believe I fell over exactly the problem that Greg Blackcom

Re: [Python-Dev] User's complaints

2006-07-12 Thread Guido van Rossum
On 7/12/06, Brett Cannon <[EMAIL PROTECTED]> wrote: > On 7/12/06, Guido van Rossum <[EMAIL PROTECTED]> wrote: > > > On 7/12/06, Armin Rigo <[EMAIL PROTECTED]> wrote: > > > I guess I'm going to side with Greg Black on his blog entry. > > > > I seem to recall that that particular one wass *not* an ac

Re: [Python-Dev] User's complaints

2006-07-12 Thread Anthony Baxter
On Thursday 13 July 2006 14:46, Guido van Rossum wrote: > Thanks for confirming memory! So it was an intentional regression; > "bugs happen" doesn't apply in this case. And an unfortunate > regression at that -- not because one guy writes a silly blog entry > about it, but because it breaks real c

Re: [Python-Dev] User's complaints

2006-07-12 Thread Brett Cannon
On 7/12/06, Anthony Baxter <[EMAIL PROTECTED]> wrote: On Thursday 13 July 2006 14:46, Guido van Rossum wrote:> Thanks for confirming  memory! So it was an intentional regression;> "bugs happen" doesn't apply in this case. And an unfortunate> regression at that -- not because one guy writes a silly

Re: [Python-Dev] User's complaints

2006-07-12 Thread Jeroen Ruigrok van der Werven
On 7/5/06, Neal Norwitz <[EMAIL PROTECTED]> wrote: > For example, we heard grumblings about the releases coming too often. > Once we went to an 18 month release schedule, there was minimal > complaining. It should be fairly safe to assume this silence means > people think we are doing a good job.

Re: [Python-Dev] User's complaints

2006-07-12 Thread Neal Norwitz
On 7/12/06, Jeroen Ruigrok van der Werven <[EMAIL PROTECTED]> wrote: > On 7/5/06, Neal Norwitz <[EMAIL PROTECTED]> wrote: > > For example, we heard grumblings about the releases coming too often. > > Once we went to an 18 month release schedule, there was minimal > > complaining. It should be fair