##// END OF EJS Templates
Add an optional `default` argument to trait metadata get, like the Python dict's .get() default argument...
Add an optional `default` argument to trait metadata get, like the Python dict's .get() default argument After this, trait_metadata('traitname', 'metadata_key', DEFAULT) will return DEFAULT if the metadata key is not set. DEFAULT defaults to None, like the existing behavior and like the python dict .get() behavior.
Jason Grout -
r17673:1f9294c2
Show More
Name Size Modified Last Commit Author
/ IPython / html / static / notebook / js
celltoolbarpresets
cell.js Loading ...
celltoolbar.js Loading ...
codecell.js Loading ...
codemirror-ipython.js Loading ...
codemirror-ipythongfm.js Loading ...
completer.js Loading ...
config.js Loading ...
contexthint.js Loading ...
kernelselector.js Loading ...
keyboardmanager.js Loading ...
layoutmanager.js Loading ...
main.js Loading ...
maintoolbar.js Loading ...
mathjaxutils.js Loading ...
menubar.js Loading ...
notebook.js Loading ...
notificationarea.js Loading ...
notificationwidget.js Loading ...
outputarea.js Loading ...
pager.js Loading ...
quickhelp.js Loading ...
savewidget.js Loading ...
textcell.js Loading ...
toolbar.js Loading ...
tooltip.js Loading ...
tour.js Loading ...