Message412537
Dumping my personal notes here as backup and in case anyone else wants to know how this is going.
1. `__package__`
- [x] Make sure all uses of the attribute fall back on `__spec__` (done way back when)
- [x] Add an `ImportWarning` when the attribute is used but it differs from `__spec__` (3.6)
- [x] Update code to prefer the spec over the attribute, raising `ImportWarning` when having to fall back to the attribute (3.10)
- [ ] Change `ImportWarning` to `DeprecationWarning` when falling back to the attribute
- [ ] Remove code in `importlib` that used the old attribute
2. `__loader__`
- [x] Make sure all Python code uses of the attribute fall back on `__spec__` (3.10)
- [ ] Update C code to fall back to using `__spec__` ([issue](https://bugs.python.org/issue42132))
- [ ] Add an `ImportWarning` when the attribute is used but it differs from `__spec__`
- [ ] Update code to prefer the spec over the attribute, raising `ImportWarning` when having to fall back to the attribute
- [ ] Change `ImportWarning` to `DeprecationWarning` when falling back to the attribute
- [ ] Remove code in `importlib` that used the old attribute
3. `__cached__`
- [ ] Make sure all uses of the attribute fall back on `__spec__`
- [ ] Add an `ImportWarning` when the attribute is used but it differs from `__spec__`
- [ ] Update code to prefer the spec over the attribute, raising `ImportWarning` when having to fall back to the attribute
- [ ] Change `ImportWarning` to `DeprecationWarning` when falling back to the attribute
- [ ] Remove code in `importlib` that used the old attribute |
|
Date |
User |
Action |
Args |
2022-02-04 20:50:24 | brett.cannon | set | recipients:
+ brett.cannon, barry, ncoghlan, eric.snow, nanjekyejoannah |
2022-02-04 20:50:24 | brett.cannon | set | messageid: <1644007824.67.0.670626080625.issue21762@roundup.psfhosted.org> |
2022-02-04 20:50:24 | brett.cannon | link | issue21762 messages |
2022-02-04 20:50:24 | brett.cannon | create | |
|