##// 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.

File last commit:

r13347:54891794
r17673:1f9294c2
Show More
__init__.py
9 lines | 261 B | text/x-python | PythonLexer
Thomas Spura
Unbundle of all external modules....
r3408 try:
from numpy.testing.decorators import *
Paul Ivanov
make know failures report as 'K'...
r3511 from numpy.testing.noseclasses import KnownFailure
Thomas Spura
Unbundle of all external modules....
r3408 except ImportError:
Thomas Kluyver
Use explicit relative imports...
r13347 from ._decorators import *
MinRK
don't unconditionally import nose...
r3692 try:
Thomas Kluyver
Use explicit relative imports...
r13347 from ._numpy_testing_noseclasses import KnownFailure
MinRK
don't unconditionally import nose...
r3692 except ImportError:
pass