Discussion:
Bug#945823: python-policy: please document what to do with corner-case module names
Add Reply
Simon McVittie
2019-11-29 09:40:01 UTC
Reply
Permalink
Source: python3-defaults
Version: 3.7.5-3
Severity: wishlist

As discussed in the thread starting at
<https://lists.debian.org/debian-python/2019/11/msg00125.html>,
it is not always clear to developers what should be done in cases
where the module name is not obvious:

- if the name contains underscores or capital letters
- if the name in the PKG-INFO is not the same as the name you import

I believe the recommended answers are:

- replace underscores with hyphen/minus
- replace capital letters with lower case
- use the name you import in preference to the name from the PKG-INFO

I'll send a patch and a merge request when I get a bug number for this.

smcv
Simon McVittie
2019-12-02 10:00:02 UTC
Reply
Permalink
Control: forwarded -1 https://salsa.debian.org/cpython-team/python3-defaults/merge_requests/2
Control: tags -1 + patch
Post by Simon McVittie
I'll send a patch and a merge request when I get a bug number for this.
Please see
https://salsa.debian.org/cpython-team/python3-defaults/merge_requests/2
or the attached.

smcv

Loading...