On Friday 24 June 2005 05:58 am, Steven D'Aprano wrote:
> with colour do begin
> red := 0; blue := 255; green := 0;
> end;
>
> instead of:
>
> colour.red := 0; colour.blue := 255; colour.green := 0;
>
> Okay, so maybe it is more of a feature than a trick, but I miss it and it
> would be nice to have in Python.

class color:        # americanized
  red = 0
  blue = 255
  green = 0

Less typing than pascal. Also avoids those stupid little colons.

-- 
James Stroud
UCLA-DOE Institute for Genomics and Proteomics
Box 951570
Los Angeles, CA 90095

http://www.jamesstroud.com/
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to