Re: [sage-support] Re: How to list (and remove) loaded objects in a sage session

2010-01-17 Thread William Stein
2010/1/17 Felix Lawrence : > On Jan 17, 11:35 am, William Stein wrote: >> 2010/1/16 Shing Hing Man : >> >> > Hi, >> >   In a Sage session (within notebook or command console) ,  how to >> > list all the loaded objects and how to remove them from the session ? >> >> Use show_identifiers and reset:

Re: [sage-support] Re: How to list (and remove) loaded objects in a sage session

2010-01-17 Thread Minh Nguyen
Hi Felix, On Mon, Jan 18, 2010 at 4:16 PM, Felix Lawrence wrote: > Would it be more sensible not to display these omnipresent > identifiers? It's hard to find my own variables in the mess! I can replicate this on Linux (the machine mod.math). With a notebook session of Sage 4.3.1.rc0, issue

[sage-support] Re: How to list (and remove) loaded objects in a sage session

2010-01-17 Thread Felix Lawrence
On Jan 17, 11:35 am, William Stein wrote: > 2010/1/16 Shing Hing Man : > > > Hi, > > In a Sage session (within notebook or command console) , how to > > list all the loaded objects and how to remove them from the session ? > > Use show_identifiers and reset: > > sage: X = 10 > sage: show_identi

[sage-support] Re: How to list (and remove) loaded objects in a sage session

2010-01-17 Thread Shing Hing Man
Thanks for all the reply! show_identifiers() and reset() are what I am looking for. But it is good to learn that Python does garbage collection in a way similar to Java. Shing On Jan 17, 12:35 am, William Stein wrote: > 2010/1/16 Shing Hing Man : > > > Hi, > >   In a Sage session (within noteboo

[sage-support] Re: How to list (and remove) loaded objects in a sage session

2010-01-16 Thread Simon King
PS: On 17 Jan., 01:03, Simon King wrote: > Concerning "remove from the session": See > http://docs.python.org/library/gc.html >... > But that't the job of Python's garbage collector! > In other words, I think there is no need to actively remove anything. That said: The above reference is just m

[sage-support] Re: How to list (and remove) loaded objects in a sage session

2010-01-16 Thread Simon King
Hi Shing! On 16 Jan., 18:18, Shing Hing Man wrote: > Hi, >    In a Sage session (within notebook or command console) ,  how to > list all the loaded objects and how to remove them from the session ? AFAIK, it is the same as in Python, so, if you need references, it would be the Python documenta