- Python Home
- About
- News
- Documentation
- Downloads
- Community
- Foundation
- Developer's Guide
- Issue Tracker
- Issues
- Summaries
- User
- Administration
- Help
➜
This issue tracker has been migrated to GitHub,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
| Author | hanno |
|---|---|
| Recipients | hanno |
| Date | 2018-12-23.12:58:37 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1545569917.75.0.0770528567349.issue35570@roundup.psfhosted.org> |
| In-reply-to |
| Content |
|---|
2to3 (in python 3.6.6) will rewrite the reload function to use the imp module. However according to [1] "Deprecated since version 3.4: The imp package is pending deprecation in favor of importlib." Also running the code with warnings enabled will show a deprecation warning. Example, take this minimal script: #!/usr/bin/python import sys reload(sys) Running to 2to3 ends up with: #!/usr/bin/python import sys import imp imp.reload(sys) $ PYTHONWARNINGS=d python3 foo.py test.py:3: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses import imp [1] https://docs.python.org/3/library/imp.html |
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2018-12-23 12:58:40 | hanno | set | recipients: + hanno |
| 2018-12-23 12:58:37 | hanno | set | messageid: <1545569917.75.0.0770528567349.issue35570@roundup.psfhosted.org> |
| 2018-12-23 12:58:37 | hanno | link | issue35570 messages |
| 2018-12-23 12:58:37 | hanno | create |
Powered by Roundup Copyright © 1990-2022, Python Software Foundation
Legal Statements
