(cl)
| 258 | |
| 259 | |
| 260 | def allmethods(cl): |
| 261 | methods = {} |
| 262 | for key, value in inspect.getmembers(cl, inspect.isroutine): |
| 263 | methods[key] = 1 |
| 264 | for base in cl.__bases__: |
| 265 | methods.update(allmethods(base)) # all your base are belong to us |
| 266 | for key in methods.keys(): |
| 267 | methods[key] = getattr(cl, key) |
| 268 | return methods |
| 269 | |
| 270 | def _split_list(s, predicate): |
| 271 | """Split sequence s via predicate, and return pair ([true], [false]). |
nothing calls this directly
no test coverage detected