##// END OF EJS Templates
DOC: Warn the user when they pass `default` to a TraitType....
DOC: Warn the user when they pass `default` to a TraitType. Most TraitType subclasses accept a `default_value` parameter. On more occasions than I care to admit, I've written something like: ``` class Foo(HasTraits): foo_int = Integer(default=5) ``` when what I actually meant was ``` class Foo(HasTraits): foo_int = Integer(default_value=5) ``` I suspect I'm not the only one who's had to track down this same bug multiple times.
Scott Sanderson -
r20649:fbe6a44e
Show More
Name Size Modified Last Commit Author
/ IPython / html / static / widgets / js
init.js Loading ...
manager.js Loading ...
widget.js Loading ...
widget_bool.js Loading ...
widget_box.js Loading ...
widget_button.js Loading ...
widget_float.js Loading ...
widget_image.js Loading ...
widget_int.js Loading ...
widget_link.js Loading ...
widget_output.js Loading ...
widget_selection.js Loading ...
widget_selectioncontainer.js Loading ...
widget_string.js Loading ...