Incorrect attribute/method check in aspect module
There is minor mistake in line 48 of apect.py module. Instead of:
# if requested attribute is not a method, simply return it if not callable(method): return method
it should be: # if requested attribute is not a method, simply return it if type(method) not in (types.FunctionType, types.MethodType): return method
Otherwise class attributes are treated as callable types which is mistake (because class itself IS callable type).