Python dot-equals (syntax proposal)

Lie Ryan lie.1296 at gmail.com
Fri Apr 30 13:24:33 EDT 2010


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?



More information about the Python-list mailing list