summaryrefslogtreecommitdiffstats
path: root/Doc/c-api
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2014-10-06 14:21:08 (GMT)
committerGeorg Brandl <georg@python.org>2014-10-06 14:21:08 (GMT)
commit8b14dd39cfe0d0220d9505f90c5325bdaf7d2023 (patch)
tree9e4e245573aba9ada82894a1276ed059e20e7584 /Doc/c-api
parentb74cf54a647d8038c7fd40effe6049570a03818b (diff)
downloadcpython-8b14dd39cfe0d0220d9505f90c5325bdaf7d2023.zip
cpython-8b14dd39cfe0d0220d9505f90c5325bdaf7d2023.tar.gz
cpython-8b14dd39cfe0d0220d9505f90c5325bdaf7d2023.tar.bz2
Closes #10031: overhaul the "imports" section of the programming FAQ.
Remove the advice to never use relative imports. Remove the advice to locally import modules in __init__, it is a strange practice. Remove the advice to use "from ... import *" with some modules.
Diffstat (limited to 'Doc/c-api')
-rw-r--r--Doc/c-api/type.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/c-api/type.rst b/Doc/c-api/type.rst
index 957cccf..68bebc8 100644
--- a/Doc/c-api/type.rst
+++ b/Doc/c-api/type.rst
@@ -72,7 +72,7 @@ Type Objects
.. versionadded:: 2.2
This function only checks for actual subtypes, which means that
- :meth:`~type.__subclasscheck__` is not called on *b*. Call
+ :meth:`~class.__subclasscheck__` is not called on *b*. Call
:c:func:`PyObject_IsSubclass` to do the same check that :func:`issubclass`
would do.