Python language problem

ripley ripleyfu at gmail.com
Wed Jun 7 07:18:19 EDT 2006


Boris Borcic wrote:
> ripleyfu at gmail.com wrote:
> >>>> class A:
> > ...   pass
> > ...
> >>>> a = A()
> >>>> b = a
> >>>> del b
> >>>> a
> > <__main__.A instance at 0x00B91BC0>
> > I want to delete 'a' through 'b', why It does't?
> > How can I do that?
>
> del a,b

But 'b' is also deleted, i want use 'b' to delete 'a', 'b' is exists.




More information about the Python-list mailing list