Global variables within classes.

uestc_mahui at 163.com uestc_mahui at 163.com
Sun Nov 11 16:33:38 CET 2007


On 11 10 ,   10 01 , Donn Ingle <donn.in... at gmail.com> wrote:

>
> >     def pop(self):
> >         item = self.list[-1]
> >         del self.list[-1]
> >         return item
>
> Is there some reason you do all that and not a self.list.pop(0)?
>

Hi.
There are no special reasons I do it that way.
Just not familiar with the member function 'pop'.
Thanks for your reminding




More information about the Python-list mailing list