'reload M' doesn't update 'from M inport *'

Jean-Michel Pichavant jeanmichel at sequans.com
Mon Jul 12 05:42:22 EDT 2010


Aahz wrote:
> In article <mailman.488.1278697107.1673.python-list at python.org>,
> Jean-Michel Pichavant  <jeanmichel at sequans.com> wrote:
>   
>> PS : You're misusing the del statement. It does not remove any object 
>>     
> >from mmory, however, it removes the reference to it, the object is still 
>   
>> in memory. They are very few cases where del is usefull in python, so 
>> try to avoid using it as well.
>>     
>
> The first two sentences are true; the last sentence is completely wrong.
> I've got lots of code using del, and it's a critically useful element of
> dictionary manipulation.
>   
Can you please give a short example ? I'm not challenging though, just 
curious.

JM



More information about the Python-list mailing list