[sage-support] Re: Python in sage notebook

2007-12-11 Thread William Stein
On Dec 11, 2007 8:34 PM, Marshall Hampton <[EMAIL PROTECTED]> wrote: > > Hi, > > I've tried to figure this out to further my python education, and > while I am still confused I think I can contribute. I'm really glad you're diving into this... (see below) > > The problem seems to be a purely pyt

[sage-support] Re: Python in sage notebook

2007-12-11 Thread Marshall Hampton
Hi, I've tried to figure this out to further my python education, and while I am still confused I think I can contribute. The problem seems to be a purely python scoping problem; the discussion at: http://groups.google.com/group/comp.lang.python/browse_thread/thread/8800d7af448b6e3a seems relev

[sage-support] Re: Python in sage notebook

2007-12-07 Thread William Stein
On Dec 7, 2007 9:32 AM, pgdoyle <[EMAIL PROTECTED]> wrote: > > Consider this python program: > > > def foo(): > return 'foo' > > print foo() > > def mumble(): > print 'mumble',foo() > > mumble() > > > If put this in a file foo.py and type `python foo.py' it p