Revision 2299
Added by Aaron Marcuse-Kubitza over 12 years ago
lib/util.py | ||
---|---|---|
12 | 12 |
|
13 | 13 |
def type_name(value): return type(value).__name__ |
14 | 14 |
|
15 |
def class_name(value): return value.__class__.__name__ |
|
16 |
|
|
15 | 17 |
def module(value): return type(value).__module__.split('.') |
16 | 18 |
|
17 | 19 |
def root_module(value): return module(value)[0] |
Also available in: Unified diff
util.py: Added class_name()