Project

General

Profile

« Previous | Next » 

Revision 2299

util.py: Added class_name()

View differences:

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