| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | [3.12] gh-117860: Add tests for resolving names when import rebind names ↵ | Miss Islington (bot) | 2024-04-30 | 4 | -0/+17 |
| | | | | | | | | | | | (GH-118176) (GH-118432) Add tests for "import", pkgutil.resolve_name() and unittest.mock.path() for cases when "import a.b as x" and "from a import b as x" give different results. (cherry picked from commit c0eaa232f63a62e0e0408911ab5f118dca2af607) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> | ||||
| * | [3.12] gh-108303: Move `double_const` to `test_import` where it belongs ↵ | Miss Islington (bot) | 2023-12-11 | 1 | -0/+30 |
| | | | | | | | | | (GH-112108) (#112976) gh-108303: Move `double_const` to `test_import` where it belongs (GH-112108) (cherry picked from commit 0738b9a338fd27ff2d4456dd9c15801a8858ffd9) Co-authored-by: Nikita Sobolev <mail@sobolevn.me> | ||||
| * | bpo-44717: improve AttributeError on circular imports of submodules (GH-27338) | Filipe Laíns | 2021-07-24 | 3 | -0/+4 |
| | | |||||
| * | Revert "bpo-44717: improve AttributeError on circular imports of submodules ↵ | Pablo Galindo Salgado | 2021-07-24 | 3 | -4/+0 |
| | | | | | | (GH-27299)" (GH-27331) This reverts commit 8072a1181dd64135f700b44372fbf7bf91e68072. | ||||
| * | bpo-44717: improve AttributeError on circular imports of submodules (GH-27299) | Filipe Laíns | 2021-07-24 | 3 | -0/+4 |
| | | | | | | Signed-off-by: Filipe Laíns <lains@riseup.net> Co-authored-by: Łukasz Langa <lukasz@langa.pl> | ||||
| * | bpo-39336: Allow packages to not let their child modules be set on them (#18006) | Dino Viehland | 2020-01-23 | 2 | -0/+12 |
| | | | | | | * bpo-39336: Allow setattr to fail on modules which aren't assignable When attaching a child module to a package if the object in sys.modules raises an AttributeError (e.g. because it is immutable) it causes the whole import to fail. This now allows immutable packages to exist and an ImportWarning is reported and the AttributeError exception is ignored. | ||||
| * | bpo-20490: Improve circular import error message (GH-15308) | Anthony Sottile | 2019-09-09 | 2 | -0/+4 |
| | | |||||
| * | bpo-33237: Improve AttributeError message for partially initialized module. ↵ | Serhiy Storchaka | 2018-10-30 | 2 | -0/+4 |
| | | | | | (GH-6398) | ||||
| * | bpo-30876: Relative import from unloaded package now reimports the package ↵ | Serhiy Storchaka | 2017-07-12 | 2 | -0/+3 |
| | | | | | | | | | | (#2639) instead of failing with SystemError. Relative import from non-package now fails with ImportError rather than SystemError. | ||||
| * | bpo-30814: Fixed a race condition when import a submodule from a package. ↵ | Serhiy Storchaka | 2017-07-06 | 2 | -0/+2 |
| | | | | | (#2580) | ||||
| * | bpo-30024: Circular imports involving absolute imports with binding (#1264) | Serhiy Storchaka | 2017-05-09 | 2 | -0/+2 |
| | | | | a submodule to a name are now supported. | ||||
| * | Whitespace | Antoine Pitrou | 2014-10-13 | 6 | -6/+6 |
| | | |||||
| * | Issue #17636: Circular imports involving relative imports are now supported. | Antoine Pitrou | 2014-10-13 | 9 | -0/+18 |
