Re: [Python-3000] Enough with the u"string" already!

2008-03-25 Thread Christian Heimes
Neal Norwitz schrieb: > Two options exist here: http://bugs.python.org/issue2477 > I have no plans to finish this patch off anytime soon. But this > should be enough to make further progress. Thank you very much, Neal! I've merged your patch with mine. It works very well. The new patch is avail

Re: [Python-3000] Enough with the u"string" already!

2008-03-25 Thread Ralf Schmitt
On Tue, Mar 25, 2008 at 12:08 PM, Christian Heimes <[EMAIL PROTECTED]> wrote: > Neal Norwitz schrieb: > > Two options exist here: http://bugs.python.org/issue2477 > > I have no plans to finish this patch off anytime soon. But this > > should be enough to make further progress. > > Thank you very

Re: [Python-3000] Enough with the u"string" already!

2008-03-25 Thread Christian Heimes
Ralf Schmitt schrieb: > Is there a webinterface for viewing that patch? I don't know but I've appended the patch to the feature request http://bugs.python.org/issue2477 Christian ___ Python-3000 mailing list Python-3000@python.org http://mail.python.org

Re: [Python-3000] [Python-Dev] Python source code on Bazaar vcs

2008-03-25 Thread Barry Warsaw
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Mar 24, 2008, at 11:06 PM, [EMAIL PROTECTED] wrote: >Barry> All the gory details are documented here: > >Barry> http://www.python.org/dev/bazaar > > Thanks. I checked out, made a branch named test3, changed > Makefile.pre.in > to ha

Re: [Python-3000] Enough with the u"string" already!

2008-03-25 Thread Barry Warsaw
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Mar 25, 2008, at 7:20 AM, Ralf Schmitt wrote: > > > On Tue, Mar 25, 2008 at 12:08 PM, Christian Heimes > <[EMAIL PROTECTED]> wrote: > Neal Norwitz schrieb: > > Two options exist here: http://bugs.python.org/issue2477 > > I have no plans to finish

Re: [Python-3000] [Python-Dev] Python source code on Bazaar vcs

2008-03-25 Thread skip
>> Did I misread the directions or do I really need the --create-prefix >> arg? Barry> You do, the first time you push a user branch because users/skip Barry> doesn't exist yet. It's mentioned in the docs, but it's pretty Barry> easy to overlook ;). Well, I noticed the menti

[Python-3000] Dict literal bytecode

2008-03-25 Thread Alexander Belopolsky
Python 3.0 set and dict literals produce very different bytecode: >>> dis(lambda:{1,2,3}) 1 0 LOAD_CONST 0 (1) 3 LOAD_CONST 1 (2) 6 LOAD_CONST 2 (3) 9 BUILD_SET3 12 RETURN_V

Re: [Python-3000] Dict literal bytecode

2008-03-25 Thread Adam Olsen
On Tue, Mar 25, 2008 at 12:35 PM, Alexander Belopolsky <[EMAIL PROTECTED]> wrote: > Python 3.0 set and dict literals produce very different bytecode: > > >>> dis(lambda:{1,2,3}) > 1 0 LOAD_CONST 0 (1) > 3 LOAD_CONST 1 (2) > 6 LOAD

Re: [Python-3000] Dict literal bytecode

2008-03-25 Thread Alexander Belopolsky
On Tue, Mar 25, 2008 at 3:32 PM, Adam Olsen <[EMAIL PROTECTED]> wrote: .. > I worry that there might be generated code using disgustingly large > literals. I don't see how this would presents a bigger problem to the stack scheme compared to the current insert as you go scheme. Note that for "d

Re: [Python-3000] Dict literal bytecode

2008-03-25 Thread Adam Olsen
On Tue, Mar 25, 2008 at 2:11 PM, Alexander Belopolsky <[EMAIL PROTECTED]> wrote: > On Tue, Mar 25, 2008 at 3:32 PM, Adam Olsen <[EMAIL PROTECTED]> wrote: > .. > > I worry that there might be generated code using disgustingly large > > literals. > > I don't see how this would presents a bigger

[Python-3000] lambda

2008-03-25 Thread Olivier Verdier
If you ask a scientist, even a computer scientist, what "lambda" means he will invariably answer that it is a letter in the Greek alphabet. Only a few people working with lambda calculus will think of "lambda" as being related to a function. Many beginners (included myself) were puzzled by "lambda"

Re: [Python-3000] Dict literal bytecode

2008-03-25 Thread Alexander Belopolsky
On Tue, Mar 25, 2008 at 4:26 PM, Adam Olsen <[EMAIL PROTECTED]> wrote: > I meant that there may be disgustingly > large globals that exceed some maximum size the stack allows. I am to aware of any hard limit on the stack size other than whatever the limit for a contiguous in-memory array may be

Re: [Python-3000] lambda

2008-03-25 Thread Benjamin Peterson
On Tue, Mar 25, 2008 at 3:42 PM, Olivier Verdier <[EMAIL PROTECTED]> wrote: > If you ask a scientist, even a computer scientist, what "lambda" means he > will invariably answer that it is a letter in the Greek alphabet. Only a few > people working with lambda calculus will think of "lambda" as bei

Re: [Python-3000] lambda

2008-03-25 Thread Georg Brandl
Benjamin Peterson schrieb: > Guido once said that he hadn't found a better name. Well, I think > that almost *any* name will do better! ;-) Especially a name that > emphasizes the fact that lambda construction are in fact functions. > This is what Guido repeats over and over again:

Re: [Python-3000] Dict literal bytecode

2008-03-25 Thread Adam Olsen
On Tue, Mar 25, 2008 at 2:43 PM, Alexander Belopolsky <[EMAIL PROTECTED]> wrote: > On Tue, Mar 25, 2008 at 4:26 PM, Adam Olsen <[EMAIL PROTECTED]> wrote: > > It does not even have to be a frozenset. A set works just as well, > > never modified by the produced bytecode. > > With the current im

Re: [Python-3000] lambda

2008-03-25 Thread Oleg Broytmann
On Tue, Mar 25, 2008 at 09:42:25PM +0100, Olivier Verdier wrote: > Many beginners (included myself) were puzzled by "lambda" the > first time they meet it. It doesn't look as clean as the rest of python How many beginners know the meaning of "list comprehension"? "generator"? "tuple"? Oleg. --

Re: [Python-3000] lambda

2008-03-25 Thread Leif Walsh
On Tue, Mar 25, 2008 at 4:42 PM, Olivier Verdier <[EMAIL PROTECTED]> wrote: > If you ask a scientist, even a computer scientist, what "lambda" means he > will invariably answer that it is a letter in the Greek alphabet. Only a few > people working with lambda calculus will think of "lambda" as bein

Re: [Python-3000] lambda

2008-03-25 Thread Talin
Olivier Verdier wrote: > Any thoughts about that? Any ideas of other better names than "lambda"? A while back I created and proposed a patch that would change the syntax of lambda to be more like a generator expression. So instead of writing: lambda x: x * x you would write: (x * x giv

[Python-3000] the release gods are angry at python

2008-03-25 Thread Neal Norwitz
The next releases of 2.6/3.0 are planned for April 2, just over a week from now. There is much work that needs to be done. The buildbots are in a pretty sad state and the gods are seeing too much red. http://www.python.org/dev/buildbot/stable/ http://www.python.org/dev/buildbot/all/ See my

[Python-3000] stable buildbots

2008-03-25 Thread Neal Norwitz
We need to get the tests for Python to be more stable so we can push out solid releases. In order to achieve this result, we need tests that are *100% reliable* and fail _only when there is a problem with Python_. While we aren't nearly as close to that goal as we need to be, we have to work towa