Skip to content

Dynamic imports throws an exception #2

@simplicbe

Description

@simplicbe

Exception message:

Invoke() takes exactly 4 arguments (1 given)

Code for reproducing the error

from importlib import import_module
globals()['defaultdict'] = getattr(import_module('collections'), 'defaultdict')
print defaultdict
# Ausgabe: <type '_collections.defaultdict'>

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions