This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class AllStaticMethods(type): | |
""" | |
""" | |
def __new__(cls, name, bases, dct, finished=True): | |
""" | |
NOTE: the 'finished' flag is used for chaining.. | |
make sure you know what you're doing if you use it. | |
""" | |
is_nonprivate_function = lambda name,obj: (not name.startswith('_')) and is_function(obj) | |
for x in dct: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" schizoid methods for python | |
""" | |
import inspect, new, sys | |
# master registry for methodnames, decorators, and proxy scope dummy object | |
registry = {} | |
class proxy(object): pass | |
def personalityDependant(func): |
NewerOlder