Bug when using with_statement with exec

2008-07-14 Thread Matimus
I think I'm going to create a new issue in Pythons issue database, but I wanted to run it by the news group first. See if I can get any useful feed back. The following session demonstrates the issue: Python 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bit (Intel)] on win32 Type help,

Re: Bug when using with_statement with exec

2008-07-14 Thread Jerry Hill
On Mon, Jul 14, 2008 at 6:00 PM, Matimus [EMAIL PROTECTED] wrote: If I create a function by using exec on a string and _don't_ end the string with a new-line it will work just fine unless I from __future__ import with_statement. [snip] I searched python's issue database and didn't see anything