You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
381 B

import sys
import inspect
from itertools import zip_longest
text_type = str
string_type = str
def with_str_method(cls):
# In python3, we don't need to do anything, we return a str type.
return cls
def with_repr_method(cls):
return cls
def get_methods(cls):
for name, method in inspect.getmembers(cls, predicate=inspect.isfunction):
yield name, method

Powered by BW's shoe-string budget.