[issue7928] String formatting: grammar wrongly limits [index] to integer

2010-02-14 Thread Edward Welbourne
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

[issue7926] Stray parentheses() in context manager what's new doc

2010-02-14 Thread Edward Welbourne
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

[issue7926] Stray parentheses() in context manager what's new doc

2010-02-14 Thread Edward Welbourne
Edward Welbourne e...@chaos.org.uk added the comment: Nice :-) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7926 ___ ___ Python-bugs-list

[issue7926] Stray parentheses() in context manager what's new doc

2010-02-13 Thread Edward Welbourne
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