[issue30161] Using `with` statement causes dict to start papering over attribute errors

2017-04-25 Thread Tim Golden
Tim Golden added the comment: I think you're suppressing sys.stderr after the "with". Try a NameError or anything. Alternatively, try a "with" which isn't using sys.stderr Obviously, the next question is why *that's* happening. -- nosy: +tim.golden

[issue30161] Using `with` statement causes dict to start papering over attribute errors

2017-04-25 Thread Charles Cazabon
Charles Cazabon added the comment: oh ffs ;) -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue30161] Using `with` statement causes dict to start papering over attribute errors

2017-04-25 Thread R. David Murray
R. David Murray added the comment: You've closed stderr. -- nosy: +r.david.murray resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

[issue30161] Using `with` statement causes dict to start papering over attribute errors

2017-04-25 Thread Charles Cazabon
New submission from Charles Cazabon: This is a weird one. I've reproduced it with 3 versions of 2.7, including the latest 2.7.13. I didn't find an open bug about this, but I had difficulty crafting a search string for it, so I may have missed something. Basically, using a `with` statement