Re: Global variables from inside render_item

2015-09-02 Thread Mike Bayer
On 9/2/15 3:13 AM, Fayaz Yusuf Khan wrote: Hi, I'm seeing this weird issue where several global variables in env.py are set as null when accessed from render_item. Code: env.py def render_item(type_, obj, autogen_context): print globals() I'm not deeply familiar with the vagaries of

Re: Global variables from inside render_item

2015-09-02 Thread Fayaz Yusuf Khan
Oh, I can reproduce the error without globals too. Here: from sqlalchemy.dialects import mysql def render_item(type_, obj, autogen_context): print "This is a global:", mysql from sqlalchemy.dialects import mysql as mysql2 print "This is not a global:", mysql2 Output: This is a global: