[pyar] duda sobre manera pythonica (lista en clase)

Facundo Batista facundobatista en gmail.com
Lun Jun 2 16:32:37 ART 2014


2014-06-02 16:16 GMT-03:00 Daniel <dmlistapython en gmail.com>:

> De cómo lo debería hacer,
>
> ¿def items(list)?

class Items(list):
  ....


> ¿debo hacer un override del método append?

Sí.

-- 
.    Facundo

Blog: http://www.taniquetil.com.ar/plog/
PyAr: http://www.python.org/ar/
Twitter: @facundobatista


More information about the pyar mailing list