Python from Wise Guy's Viewpoint

Marshall Spight mspight at dnai.com
Tue Oct 21 22:25:32 EDT 2003


"Jarek Zgoda" <jzgoda at gazeta.usun.pl> wrote in message news:bmu1bj$l82$1 at nemesis.news.tpi.pl...
> mike420 at ziplip.com <mike420 at ziplip.com> pisze:
>
> > 8. Can you undefine a function, value, class or unimport a module?
> >    (If the answer is no to any of these questions, Python is simply
> >     not interactive enough)
>
> Yes. By deleting a name from namespace. You better read some tutorial,
> this will save you some time.

Forgive my ignorance, but why would one want to
delete a function name? What does it buy you?
I can see a use for interactive redefinition of a function
name, but deleting?


Marshall






More information about the Python-list mailing list