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

2006-07-04 Thread Phillip J. Eby
At 05:49 AM 7/5/2006 +0200, Guido van Rossum wrote: >>* Alternate spelling of outer names when binding (e.g. ".x = whatever" to >>bind an outer x) > >We looked at and rejected "globals.x = whatever". I think the same >reasoning applies here. I thought the 'globals.x' proposal required that 'x' alw

Re: [Python-Dev] zlib module build failure on Mac OSX 10.4.7

2006-07-04 Thread Ronald Oussoren
On Jul 4, 2006, at 11:21 PM, Neal Norwitz wrote: Ronald, Bob, I know Skip found and fixed his problem, however, is this problem likely to affect other users? Is there anything we can do to help alleviate/diagnose this problem? I'll either enhance configure or roll back my change to setup.py

Re: [Python-Dev] 2.5b1 Windows install

2006-07-04 Thread Martin v. Löwis
Aahz wrote: > Ah-ha! I haven't actually tested this directly, but I bet I know what's > going on: this isn't properly quoted and fails with TARGETDIR of > "C:\Program Files\Python25" because of the space. I did test to see that > it works fine with "C:\Python25" > > Shall I file a bug? Or do yo

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

2006-07-04 Thread Guido van Rossum
On 7/5/06, Phillip J. Eby <[EMAIL PROTECTED]> wrote: > At 12:18 AM 7/5/2006 +0200, Guido van Rossum wrote: > >I don't see anything else that's attractive. The realistic options are: > > > >1. do nothing > >2. extend global's meaning > >3. add outer keyword > > Did you also consider and reject: > >

Re: [Python-Dev] 2.5b1 Windows install

2006-07-04 Thread Aahz
On Mon, Jun 26, 2006, "Martin v. L?wis" wrote: > Aahz wrote: >> >> Has anyone else tried doing an admin install with "compile .py files" >> checked? It's causing my install to blow up, but I'd prefer to assume >> it's some weird Windows config/bug unless other people also have it, in >> which case

[Python-Dev] User's complaints

2006-07-04 Thread Neal Norwitz
On 7/4/06, Guido van Rossum <[EMAIL PROTECTED]> wrote: > > From actual users of > the language I get more complaints about the breakneck speed of > Python's evolution than about the brokenness of the current language. Guido, I'm really interested in your perspective here. I assume you hear far

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

2006-07-04 Thread Phillip J. Eby
At 12:18 AM 7/5/2006 +0200, Guido van Rossum wrote: >I don't see anything else that's attractive. The realistic options are: > >1. do nothing >2. extend global's meaning >3. add outer keyword Did you also consider and reject: * Alternate binding operators (e.g. ":=", ".=", etc.) * Alternate spel

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

2006-07-04 Thread Guido van Rossum
On 7/4/06, Talin <[EMAIL PROTECTED]> wrote: > Guido van Rossum wrote: > > Also please explain what problem you are solving before proposing a > > solution. > Actually, the "problem" I am trying to solve is the debate on the > mailing list. That is, I listen to what people are asking for, and what

Re: [Python-Dev] Time-out in URL Open

2006-07-04 Thread Guido van Rossum
On 7/4/06, Facundo Batista <[EMAIL PROTECTED]> wrote: > 2006/7/3, Guido van Rossum <[EMAIL PROTECTED]>: > > > To fake things like this, socket.setdefaulttimeout() was added, though > > I don't know if it actually works. Have you tried that? > > This affect all the sockets. So, assuming your app is

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

2006-07-04 Thread Talin
Guido van Rossum wrote: > Please move this to the python-3000 list. > > Also please explain what problem you are solving before proposing a > solution. > > I note that we are seeing quite a flurry of language change proposals. > I have to recommend restraint; I *don't* want to turn the entire >

Re: [Python-Dev] zlib module build failure on Mac OSX 10.4.7

2006-07-04 Thread Neal Norwitz
Ronald, Bob, I know Skip found and fixed his problem, however, is this problem likely to affect other users? Is there anything we can do to help alleviate/diagnose this problem? n -- On 7/1/06, Ronald Oussoren <[EMAIL PROTECTED]> wrote: > > On Jul 1, 2006, at 8:46 PM, Martin v. Löwis wrote: > >

Re: [Python-Dev] 2.5 and beyond

2006-07-04 Thread Fernando Perez
Thomas Heller wrote: > I would like to ask about the possibility to add some improvements to > ctypes > in Python 2.5, although the feature freeze is now in effect. Hopefully > former third-party libraries can have the freeze relaxed somewhat;-). > > I intend to do these changes, the first is a

Re: [Python-Dev] Time-out in URL Open

2006-07-04 Thread Facundo Batista
2006/7/3, Guido van Rossum <[EMAIL PROTECTED]>: > To fake things like this, socket.setdefaulttimeout() was added, though > I don't know if it actually works. Have you tried that? This affect all the sockets. And I hit the problem when servicing information with a web service (TCPServer), and I ne

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

2006-07-04 Thread Guido van Rossum
Please move this to the python-3000 list. Also please explain what problem you are solving before proposing a solution. I note that we are seeing quite a flurry of language change proposals. I have to recommend restraint; I *don't* want to turn the entire language upside down. That's not a commen

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

2006-07-04 Thread Andrew Koenig
> Borrowing from Perl, the keyword 'my' is used to declare an explicitly > scoped variable: > > def f1(): >my x = 1 >def f2(): > x = 2 # Does not create a new x > > In the above example, the statement 'my x = 1' declares that the scope > of the variable 'x' is the

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

2006-07-04 Thread Giovanni Bajo
Talin wrote: > This is sort of a re-do of an earlier proposal which seems to have > gotten lost in the shuffle of the larger debate. > > I propose to create a new type of scoping rule, which I will call > "explicit" lexical scoping, that will co-exist with the current > "implicit" scoping rule tha

[Python-Dev] Proposed beta 2 changes (Q for Anthony/Neal)

2006-07-04 Thread Nick Coghlan
I've got a couple of changes ready to go for beta 2, but need a go ahead from one of the release managers before committing either of them: 1. Finishing the __module_name__ workaround to allow relative imports from the main module when using -m. I'd really like to finish this, because having

Re: [Python-Dev] 2.5 and beyond

2006-07-04 Thread Thomas Heller
Neal Norwitz schrieb: > I'm glad to see Anthony ratcheting down. At this point, we need to be > fixing bugs and improving doc. Maybe Anthony and I should have a > contest to see who can revert the most changes. :-) > Neal (and/or Anthony), I would like to ask about the possibility to add some i

Re: [Python-Dev] doc for new restricted execution design for Python

2006-07-04 Thread Fuzzyman
Ka-Ping Yee wrote: >Hi Brett, > >Here are some comments on the description of the restricted execution >model that you posted. > > [snip...] > >>Filesystem >>=== >> >>The most obvious facet of a filesystem to protect is reading from it. >>One does not want what is stored in ``/etc/

Re: [Python-Dev] doc for new restricted execution design for Python

2006-07-04 Thread Ka-Ping Yee
Hi Brett, Here are some comments on the description of the restricted execution model that you posted. > When referring to the state of an interpreter, it is either "trusted" or > "untrusted". A trusted interpreter has no restrictions imposed upon any > resource. An untrusted interpreter has at

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

2006-07-04 Thread Talin
This is sort of a re-do of an earlier proposal which seems to have gotten lost in the shuffle of the larger debate. I propose to create a new type of scoping rule, which I will call "explicit" lexical scoping, that will co-exist with the current "implicit" scoping rule that exists in Python tod

Re: [Python-Dev] Time-out in URL Open

2006-07-04 Thread Georg Brandl
[EMAIL PROTECTED] wrote: > Facundo> I need a timeout in urlopen, just to be able to make: > > urllib2.urlopen("http://no.host.org";, timeout=2) > > Facundo> This is actually not possible, but I'll make it work. > > Facundo> I want to know, please, if this is useful in genera