Author matrixise
Recipients matrixise
Date 2018-11-30.08:30:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1543566651.92.0.788709270274.issue35358@psf.upfronthosting.co.za>
In-reply-to
Content
maybe related to this issue: https://bugs.python.org/issue18831

we can't import a module where the name contains '-', for example

from my-module import my_function

but with importlib.import_module

we can import this module.

import_module does not respect the python syntax for the name of the module, we should avoid that.

1. Add a DeprecationWarning for 3.8+
2. in 3.10, remove this DeprecationWarning and remove the support of the '-' in importlib.import_module
History
Date User Action Args
2018-11-30 08:30:52matrixisesetrecipients: + matrixise
2018-11-30 08:30:51matrixisesetmessageid: <1543566651.92.0.788709270274.issue35358@psf.upfronthosting.co.za>
2018-11-30 08:30:51matrixiselinkissue35358 messages
2018-11-30 08:30:51matrixisecreate