##// 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 / utils
tests
PyColorize.py Loading ...
__init__.py Loading ...
_process_cli.py Loading ...
_process_common.py Loading ...
_process_posix.py Loading ...
_process_win32.py Loading ...
_process_win32_controller.py Loading ...
_sysinfo.py Loading ...
_tokenize_py2.py Loading ...
_tokenize_py3.py Loading ...
capture.py Loading ...
codeutil.py Loading ...
coloransi.py Loading ...
contexts.py Loading ...
daemonize.py Loading ...
data.py Loading ...
decorators.py Loading ...
dir2.py Loading ...
doctestreload.py Loading ...
encoding.py Loading ...
eventful.py Loading ...
frame.py Loading ...
generics.py Loading ...
importstring.py Loading ...
io.py Loading ...
ipstruct.py Loading ...
jsonutil.py Loading ...
localinterfaces.py Loading ...
log.py Loading ...
module_paths.py Loading ...
openpy.py Loading ...
path.py Loading ...
pickleshare.py Loading ...
pickleutil.py Loading ...
process.py Loading ...
py3compat.py Loading ...
rlineimpl.py Loading ...
signatures.py Loading ...
strdispatch.py Loading ...
submodule.py Loading ...
sysinfo.py Loading ...
syspathcontext.py Loading ...
tempdir.py Loading ...
terminal.py Loading ...
text.py Loading ...
timing.py Loading ...
tokenize2.py Loading ...
tokenutil.py Loading ...
traitlets.py Loading ...
tz.py Loading ...
ulinecache.py Loading ...
version.py Loading ...
warn.py Loading ...
wildcard.py Loading ...
zmqrelated.py Loading ...