Favorite non-python language trick?

Peter Hansen peter at engcorp.com
Fri Jun 24 16:20:14 CEST 2005


utabintarbo at gmail.com wrote:
>>with colour do begin
>>red := 0; blue := 255; green := 0;
>>end;
>>
>>instead of:
>>
>>colour.red := 0; colour.blue := 255; colour.green := 0;
> 
> Why not:
> from color import *
> 
> red := 0
> blue := 255
> green := 0

What do you think this actually does?

It doesn't do anything remotely resembling either of the things quoted 
above.  In fact, the "from color import *" line is pretty much useless here.

-Peter



More information about the Python-list mailing list