New submission from Edward Welbourne e...@chaos.org.uk:
http://docs.python.org/library/string.html#formatstrings
field_name::= (identifier | integer) (. attribute_name | [
element_index ])*
element_index ::= integer
Subsequent text indicates __getitem__() is used but does
Edward Welbourne e...@chaos.org.uk added the comment:
The third change removes the early uses of object from:
quote Finally, the closing(object)() function returns object so that it can
be bound to a variable, and calls object.close at the end of the block. /quote
leaving the last use
Edward Welbourne e...@chaos.org.uk added the comment:
Nice :-)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7926
___
___
Python-bugs-list
New submission from Edward Welbourne e...@chaos.org.uk:
http://docs.python.org/whatsnew/2.6.html#writing-context-managers
penultimate item in A high-level explanation: quote
If BLOCK raises an exception, the __exit__(type, value, traceback)() is called
/quote has extra () after the argument