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
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
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
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
-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
"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
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
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.