[IPython-dev] IPython traitlet problem
Sun Apr 21 08:17:20 CDT 2013
On 2013-04-21 16:43, Thomas Kluyver wrote:
> For what it's worth, Python 3 introduces keyword-only arguments, which can be
> required arguments. That's specified as part of the function signature, though;
> I agree that this limitation in traitlets isn't ideal.
It's relatively easily fixed. Just include *args in the __new__() and __init__()
and ignore them.
I don't recall, but this might have been an explicit design choice for traitlets
in order to force the use of keyword arguments exclusively. It is a deviation
from Traits behavior.
"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth."
-- Umberto Eco
More information about the IPython-dev