A quick and dirty replacement for getfullargspec for Python 2.X
| 50 | return cls.__init__ |
| 51 | else: |
| 52 | class getfullargspec(object): |
| 53 | "A quick and dirty replacement for getfullargspec for Python 2.X" |
| 54 | |
| 55 | def __init__(self, f): |
| 56 | self.args, self.varargs, self.varkw, self.defaults = \ |
| 57 | inspect.getargspec(f) |
| 58 | self.kwonlyargs = [] |
| 59 | self.kwonlydefaults = None |
| 60 | |
| 61 | def __iter__(self): |
| 62 | yield self.args |
| 63 | yield self.varargs |
| 64 | yield self.varkw |
| 65 | yield self.defaults |
| 66 | |
| 67 | getargspec = inspect.getargspec |
| 68 | |
| 69 | |
| 70 | def get_init(cls): |
no outgoing calls
no test coverage detected