[IPython-dev] IPython traitlet problem

Matthias Vogelgesang matthias.vogelgesang at gmail.com
Sun Apr 21 06:24:35 EDT 2013


Hi Robert,

On Sat, Apr 20, 2013 at 6:46 PM, Robert McGibbon <rmcgibbo at gmail.com> wrote:
>
> You just need to call the constructor with a keyword argument.

This works very well, thanks. However, this behaviour kind of violates
what I expect from a Python function: On the one hand, the argument is
required (as expected with a positional argument) but on the other
hand I have to use it like a keyword argument. This leaves a bitter
taste to me, as I will always have to document this behaviour.

Regards,
Matthias

--
Matthias Vogelgesang
Public-Key: http://tinyurl.com/2qcydl



More information about the IPython-dev mailing list