##// 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 / nbconvert / exporters / tests
files
__init__.py Loading ...
base.py Loading ...
cheese.py Loading ...
test_export.py Loading ...
test_exporter.py Loading ...
test_html.py Loading ...
test_latex.py Loading ...
test_markdown.py Loading ...
test_notebook.py Loading ...
test_pdf.py Loading ...
test_python.py Loading ...
test_rst.py Loading ...
test_script.py Loading ...
test_slides.py Loading ...
test_templateexporter.py Loading ...