Skip to content

Commit 92380ec

Browse files
committed
Link to Python docs for exact rules on valid identifiers
1 parent fe9378a commit 92380ec

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

source/discussions/distribution-package-vs-import-package.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,10 @@ API, and an ``attr`` import package with an older but supported API.
7676
How do distribution package names and import package names compare?
7777
===================================================================
7878

79-
Import packages should have valid Python identifiers as their name. In
80-
particular, they use underscores ``_`` as word separator and they are
81-
case-sensitive.
79+
Import packages should have valid Python identifiers as their name (the
80+
:ref:`exact rules <python:identifiers>` are found in the Python
81+
documentation). In particular, they use underscores ``_`` as word
82+
separator and they are case-sensitive.
8283

8384
On the other hand, distribution packages can use hyphens ``-`` or
8485
underscores ``_``. They can also contain dots ``.``, which is sometimes

0 commit comments

Comments
 (0)