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 <[email protected]> wrote:
> 2010/1/16 Shing Hing Man <[email protected]>:
>
> > 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_identifiers()
> ['X', 'Out', 'variables', 'In', 'view_all']
> sage: reset()
> sage: show_identifiers()
> []
> sag
>
> > I would like to reuse a connection using the simple server API. From
> > time to time, I need to clear loaded objects  in the session.
>
> > Thanks in advance for any assistance!
>
> > Shing
>
> > --
> > To post to this group, send email to [email protected]
> > To unsubscribe from this group, send email to 
> > [email protected]
> > For more options, visit this group 
> > athttp://groups.google.com/group/sage-support
> > URL:http://www.sagemath.org
>
> --
> William Stein
> Associate Professor of Mathematics
> University of Washingtonhttp://wstein.org
-- 
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to