[IPython-dev] IPython traitlet problem
Matthias Vogelgesang
matthias.vogelgesang at gmail.com
Fri Apr 19 10:24:23 EDT 2013
Hi,
I am considering the traitlets module for a project of mine but there
is one big problem: All classes that derive from HasTraits cannot have
parameters in their __init__() method, which makes traitlets pointless
for general purpose classes, e.g.
class Foo(HasTraits):
x = Float()
def __init__(self, bar):
pass
gives me
TypeError: __new__() takes exactly 1 argument (2 given)
Is this behaviour intentional?
Thanks,
Matthias
--
Matthias Vogelgesang
Public-Key: http://tinyurl.com/2qcydl
More information about the IPython-dev
mailing list