Favorite non-python language trick?

utabintarbo at gmail.com utabintarbo at gmail.com
Fri Jun 24 09:13:00 EDT 2005


>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

...




More information about the Python-list mailing list