You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Apart from the import statement, Python spec additional supports the dynamic importing semantics, which is as the form of function calls. Though the function accepts strings as parameters, which can be runtime generated, some simple circumstances should be analyzed since it is totally feasible.
Example
# foo.pydeffoo():
pass
# bar.pyimportimportlib# The necessary built-in lib importingobj=importlib.import_module('foo') # Function call to specific semanticobj.foo() # Imported object can be accessed as any regular object
Status
Currently, neither ENRE nor Understand supports extraction of this.
Notice
The previous example only demonstrates one case of the function import_module, and still more usages are listed in the official spec. While implementing this, please do perform comprehensive investigations and fulfill all benchmarks.
The text was updated successfully, but these errors were encountered:
Background
Apart from the
import
statement, Python spec additional supports the dynamic importing semantics, which is as the form of function calls. Though the function accepts strings as parameters, which can be runtime generated, some simple circumstances should be analyzed since it is totally feasible.Example
Status
Currently, neither ENRE nor Understand supports extraction of this.
Notice
The previous example only demonstrates one case of the function
import_module
, and still more usages are listed in the official spec. While implementing this, please do perform comprehensive investigations and fulfill all benchmarks.The text was updated successfully, but these errors were encountered: