Re:An analysis of module names inside top PyPI packages
by woodruffw on Wednesday July 10, 2024 @11:21PM
(#40933392)
Imports can be aliased as bindings; they can't be aliased at the import machinery layer, which makes the PIL/pillow distinction necessary. The adjacent subthread has an example of this.
Re:An analysis of module names inside top PyPI packages
by cqqxo4zV46cp on Thursday July 11, 2024 @05:07AM
(#40934828)
Starting any sentence in 2024 with “PyPI should have…” is a pretty ridiculous premise. We learn things over time, and PyPI itself wasn’t exactly operating on a green field.
Re:An analysis of module names inside top PyPI packages
by remram on Thursday July 11, 2024 @11:40AM
(#40937866)
There used to be a PIL, someone made a new compatible distribution. They had to use the same import name to be compatible with existing code, they had to pick another name on PyPI that wasn't taken. It's kind of an extreme case.
Imports can be aliased, so why allow this mismatch at all? PyPI should have enforced that each package contains one top-level module whose name is identical to the name used to install it.