[IPython-dev] IPython traitlet problem

Robert Kern robert.kern at gmail.com
Sun Apr 21 09:17:20 EDT 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.

-- 
Robert Kern

"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 mailing list