(module, name)
| 53 | |
| 54 | |
| 55 | def get_any_instantiation(module, name): |
| 56 | pattern = re.compile("%s(?:_[^_]+)+" % name) |
| 57 | for full_name in module.__dict__: |
| 58 | if pattern.match(full_name): |
| 59 | return getattr(module, full_name) |
| 60 | |
| 61 | |
| 62 | def get_instantiation_info(module, name, template_keys): |