Gabriel Genellina wrote:
> you may consider using a class 
> attribute as  a default value:
> 
> class Coffee:
> 
>     temp = 50

Be careful with that, though -- only use it for immutable
values. Doing that with a mutable object, such as a list,
will get you into trouble, since one object is being
shared between all instances.

--
Greg
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to