Mutability problem when subclassing tuple

Aahz aahz at pythoncraft.com
Wed Feb 18 23:05:04 EST 2004


In article <40342544$0$3105$61fed72c at news.rcn.com>,
Edward C. Jones <edcjones at erols.com> wrote:
>
># What restrictions are there when subclassing "tuple" or other
># types that create immutable objets?

You need to set the values with __new__().
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

"Argue for your limitations, and sure enough they're yours."  --Richard Bach



More information about the Python-list mailing list