Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Add missing colon, avoid referening external module
  • Loading branch information
slateny committed Oct 16, 2022
commit 37dacbe735f6dd6498ab3e782354b7a9e8e7975f
6 changes: 3 additions & 3 deletions Doc/faq/programming.rst
Original file line number Diff line number Diff line change
Expand Up @@ -296,9 +296,9 @@ using multiple imports per line uses less screen space.

It's good practice if you import modules in the following order:

1. standard library modules -- e.g. :mod:`sys`, :mod:`os`, :mod:`argparse`, :mod`re`
1. standard library modules -- e.g. :mod:`sys`, :mod:`os`, :mod:`argparse`, :mod:`re`
2. third-party library modules (anything installed in Python's site-packages
directory) -- e.g. :mod:`!dateutil`, :mod:`requests`, :mod:`PIL.Image`
directory) -- e.g. :mod:`!dateutil`, :mod:`!requests`, :mod:`!PIL.Image`
3. locally developed modules

It is sometimes necessary to move imports to a function or class to avoid
Expand Down Expand Up @@ -1560,7 +1560,7 @@ method too, and it must do so carefully. The basic implementation of
...

Most :meth:`!__setattr__` implementations must modify
:meth`self.__dict__ <object.__dict__>` to store
:meth:`self.__dict__ <object.__dict__>` to store
local state for self without causing an infinite recursion.


Expand Down