[Python-3000] PEP 3112

2007-05-06 Thread Martin v. Löwis
I just read PEP 3112, and I believe it contains a flaw/underspecification. It says # Each shortstringchar or longstringchar must be a character between 1 # and 127 inclusive, regardless of any encoding declaration [2] in the # source file. What does that mean? In particular, what is "a character

Re: [Python-3000] PEP: Eliminate __del__

2007-05-06 Thread Martin v. Löwis
> Can I please press the button for a few days until I can offer a > useful starting point. Socially, this is the point of the PEP process in the first place: the PEP author is supposed to collect community feedback in the PEP, and address it as necessary. People won't stop discussing if the PE

Re: [Python-3000] PEP: Eliminate __del__

2007-05-06 Thread Talin
Martin v. Löwis wrote: > Procedurally, there is a problem that this still isn't an > officially-posted PEP, even though it's already several days > past the deadline. OTOH, it's listed in the PEP parade. Still, > I would like to see a posted PEP rather sooner than later. > Defending the deadline wi

Re: [Python-3000] PEP: Eliminate __del__

2007-05-06 Thread Hasan Diwan
On 01/05/07, Raymond Hettinger <[EMAIL PROTECTED]> wrote: PEP: Eliminating __del__ +1 -- Cheers, Hasan Diwan <[EMAIL PROTECTED]> ___ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe:

Re: [Python-3000] the future of the GIL

2007-05-06 Thread Greg Ewing
Josiah Carlson wrote: > There are many solutions to handling the scaling of Python on multicore > processors, only one of which is killing the GIL. Another is Greg > Ewing's ideas offered in the "Ideas towards GIL removal" thread in the > python-ideas list. Yeah, except I think only one of those

Re: [Python-3000] PEP: Supporting Non-ASCII Identifiers

2007-05-06 Thread Baptiste Carvello
Martin v. Löwis a écrit : >> If this is to ever happen, it should be only accessible through a >> command-line >> option to python. That way we make sure people are aware that they are making >> their code incompatible with the larger world. > > In what way will the source code be incompatible wi

[Python-3000] comments

2007-05-06 Thread tomer filiba
i finished reading almost all of the new peps, so to prevent cluttering i'll post all my comments in a single message. 3130 (Access to Current Module/Class/Function) why make them keywords? they could as well be builtin functions, like globals() an

Re: [Python-3000] comments

2007-05-06 Thread Jim Jewett
On 5/6/07, tomer filiba <[EMAIL PROTECTED]> wrote: > 3130 (Access to Current Module/Class/Function) > > why make them keywords? they could as well be builtin functions, > like globals() and locals(). i.e., getmodule(), getclass(), and > getfunction(

Re: [Python-3000] the future of the GIL

2007-05-06 Thread Giovanni Bajo
On 05/05/2007 15.29, tomer filiba wrote: > however, running a threaded python script over an 8-core > machine, where you can utilize at most 12.5% of the horsepower, > seems like too large a sacrifice to me. You seem to believe that the only way to parallelize your programs is to use threads. IM

Re: [Python-3000] the future of the GIL

2007-05-06 Thread Talin
Giovanni Bajo wrote: > On 05/05/2007 15.29, tomer filiba wrote: > >> however, running a threaded python script over an 8-core >> machine, where you can utilize at most 12.5% of the horsepower, >> seems like too large a sacrifice to me. > > You seem to believe that the only way to parallelize your

[Python-3000] Dealing with timestamp issues for rebuiling AST using Parser/asdl_c.py

2007-05-06 Thread Brett Cannon
I am sending this email to make sure people are aware of a possible build problem they might come up against that is unique to Python 3.0 and how to deal with it. I decided to do a ``make distclean`` and rebuild my p3yk checkout. But I came across the error of:: File "./Parser/asdl_c.py", line

Re: [Python-3000] PEP: Eliminate __del__

2007-05-06 Thread Greg Ewing
Giovanni Bajo wrote: > What I really meant was: > >self.__wr = weakref.ref(self, ...) Okay, that looks better. But I'm not sure what will happen if the holder becomes part of a cycle. If the GC picks the holder as the object to clear to break the cycle, then the weakref will be deallocated be

Re: [Python-3000] the future of the GIL

2007-05-06 Thread Josiah Carlson
Talin <[EMAIL PROTECTED]> wrote: > Giovanni Bajo wrote: > > On 05/05/2007 15.29, tomer filiba wrote: > > > >> however, running a threaded python script over an 8-core > >> machine, where you can utilize at most 12.5% of the horsepower, > >> seems like too large a sacrifice to me. > > > > You see

Re: [Python-3000] Dealing with timestamp issues for rebuiling AST using Parser/asdl_c.py

2007-05-06 Thread Martin v. Löwis
> File "./Parser/asdl_c.py", line 744 > print(auto_gen_msg, file=f) I think asdl_c.py should be formulated in a way that is compatible with 2.x. It already uses f.write in many places; the few remaining ones should be updated. Regards, Martin ___

Re: [Python-3000] [Python-Dev] Pre-pre PEP for 'super' keyword

2007-05-06 Thread Delaney, Timothy (Tim)
Steve Holden wrote: > Tim Delaney wrote: >> BTW, one of my test cases involves multiple super calls in the same >> method - there is a *very* large performance improvement by >> instantiating it once. >> > And how does speed deteriorate for methods with no uses of super at > all (which will, I s

Re: [Python-3000] Dealing with timestamp issues for rebuiling AST using Parser/asdl_c.py

2007-05-06 Thread Neal Norwitz
On 5/6/07, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: > > File "./Parser/asdl_c.py", line 744 > > print(auto_gen_msg, file=f) > > I think asdl_c.py should be formulated in a way > that is compatible with 2.x. It already uses > f.write in many places; the few remaining ones > should be updat