##// 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 / tests / widgets
widget.js Loading ...
widget_bool.js Loading ...
widget_button.js Loading ...
widget_container.js Loading ...
widget_float.js Loading ...
widget_image.js Loading ...
widget_int.js Loading ...
widget_selection.js Loading ...
widget_selectioncontainer.js Loading ...
widget_string.js Loading ...