How can i remove a scalar

Alex Martelli aleaxit at yahoo.com
Fri Oct 13 12:19:23 EDT 2000


"Oleg Broytmann" <phd at phd.russ.ru> wrote in message
news:mailman.971451152.19906.python-list at python.org...
> On Fri, 13 Oct 2000, joonas wrote:
> > How can i empty a scalar.
> > In perl it would be
> >
> > delete($myscalar);
>
>    Please, stop your perl habits. This is python newsgroup. Before asking
> questions it is *highly* recommended you'd read tutorials, FAQs and other
> documentation.

But anyway,

    del varname

works in Python to remove varname (whether it refers to "a scalar"
or anything else).


Alex






More information about the Python-list mailing list