[Python-Dev] GeneratorExit is unintuitive and uneccessary

2006-08-22 Thread Igor Bukanov
Consider the following example: for i in range(3): try: print i break except: print "Unexpected exception!" finally: print "Finally" When executed, it naturally prints 0 Finally since break does not use exceptions to transfer the control and as such can not be stopped us

Re: [Python-Dev] String formatting / unicode 2.5 bug?

2006-08-22 Thread John J Lee
On Mon, 21 Aug 2006, Nick Coghlan wrote: > John J Lee wrote: >>> And once the result has been promoted to unicode, __unicode__ is used >>> directly: >>> >> print repr("%s%s" % (a(), a())) >>> __str__ >>> accessing <__main__.a object at 0x00AF66F0>.__unicode__ >>> __str__ >>> accessing <__mai

Re: [Python-Dev] [Python-checkins] r51458 - peps/trunk/pep-0000.txt peps/trunk/pep-0362.txt

2006-08-22 Thread Brett Cannon
On 8/22/06, Nick Coghlan <[EMAIL PROTECTED]> wrote: brett.cannon wrote:> Added: peps/trunk/pep-0362.txt> +Relation With Other PEPs> +> +> +"Keyword-Only Arguments [#pep-3102]_> + > +> +If keyword-only parameters come into existence, the Pa

Re: [Python-Dev] [Python-checkins] r51458 - peps/trunk/pep-0000.txt peps/trunk/pep-0362.txt

2006-08-22 Thread Brett Cannon
On 8/22/06, Nick Coghlan <[EMAIL PROTECTED]> wrote: brett.cannon wrote:> Added: peps/trunk/pep-0362.txt> +Relation With Other PEPs> +> +> +"Keyword-Only Arguments [#pep-3102]_> + > +> +If keyword-only parameters come into existence, the Pa

Re: [Python-Dev] What should the focus for 2.6 be?

2006-08-22 Thread Barry Warsaw
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Aug 22, 2006, at 11:26 AM, Michael Hudson wrote: > Oh my word, even I had nearly forgotten about that. > > I think the latest version is here: > >http://starship.python.net/crew/mwh/toext/ > > and source is here: > >http://codespeak.net/svn

Re: [Python-Dev] What should the focus for 2.6 be?

2006-08-22 Thread Michael Hudson
"A.M. Kuchling" <[EMAIL PROTECTED]> writes: > On Mon, Aug 21, 2006 at 12:24:54PM -0700, Brett Cannon wrote: >> As for the docs, they just need a thorough updating. > > Michael Hudson was working on a new guide to extending/embedding > Python. Incorporating that should be a goal for 2.6 (the doc

Re: [Python-Dev] What should the focus for 2.6 be?

2006-08-22 Thread A.M. Kuchling
On Mon, Aug 21, 2006 at 12:24:54PM -0700, Brett Cannon wrote: > As for the docs, they just need a thorough updating. Michael Hudson was working on a new guide to extending/embedding Python. Incorporating that should be a goal for 2.6 (the document may still need to be finished -- I'm not sure w

Re: [Python-Dev] [Python-checkins] r51458 - peps/trunk/pep-0000.txt peps/trunk/pep-0362.txt

2006-08-22 Thread Nick Coghlan
brett.cannon wrote: > Added: peps/trunk/pep-0362.txt > +Relation With Other PEPs > + > + > +"Keyword-Only Arguments [#pep-3102]_ > + > + > +If keyword-only parameters come into existence, the Parameter object > +will require modification.