[issue16028] break in finally discards exception

2012-09-24 Thread Erik Allik
New submission from Erik Allik: This is either a bug, or a very weird but undocumented feature/caveat. def fn1(): while True: try: raise Exception() finally: pass def fn2(): while True: try: raise Exception() finally

[issue16028] break in finally discards exception

2012-09-24 Thread Erik Allik
Erik Allik added the comment: It looks to me that it was not removed from the doc but explicitly changed to say that 'break' does not cause the exception to be discarded, unless I'm misunderstanding it: 1.20 +:keyword:`finally` clause is executed. If there is a saved exception 1.21

[issue15801] Weird string interpolation behaviour

2012-08-28 Thread Erik Allik
New submission from Erik Allik: class Foo(object): ... pass ... asdads % Foo() 'asdads' Doesn't look like it's supposed to be this way. As per the documentation: If format requires a single argument, values may be a single non-tuple object. [5] Otherwise, values must be a tuple

[issue15801] Weird string interpolation behaviour

2012-08-28 Thread Erik Allik
Erik Allik added the comment: Respectable reaction time. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15801 ___ ___ Python-bugs-list mailing