On 05/01/10 02:50, Jean-Michel Pichavant wrote: > Jabapyth wrote: >> At least a few times a day I wish python had the following shortcut >> syntax: <snip> > currentCar = Car() > currentCar = currentCar.nextCar > > The syntax you prose will be applicable on very little assignements (use > case 3). I'm not sure it's worth it.
And for the last use case, isn't iterator better? -- http://mail.python.org/mailman/listinfo/python-list