mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +00:00
Some cleanup in the docs.
This commit is contained in:
parent
28c7bcf38e
commit
b19be571e0
126 changed files with 804 additions and 1181 deletions
|
|
@ -218,8 +218,6 @@ Some tips for experts:
|
|||
* The module :mod:`compileall` can create :file:`.pyc` files (or :file:`.pyo`
|
||||
files when :option:`-O` is used) for all modules in a directory.
|
||||
|
||||
.. %
|
||||
|
||||
|
||||
.. _tut-standardmodules:
|
||||
|
||||
|
|
@ -238,11 +236,7 @@ depends on the underlying platform For example, the :mod:`winreg` module is only
|
|||
provided on Windows systems. One particular module deserves some attention:
|
||||
:mod:`sys`, which is built into every Python interpreter. The variables
|
||||
``sys.ps1`` and ``sys.ps2`` define the strings used as primary and secondary
|
||||
prompts:
|
||||
|
||||
.. %
|
||||
|
||||
::
|
||||
prompts::
|
||||
|
||||
>>> import sys
|
||||
>>> sys.ps1
|
||||
|
|
@ -451,8 +445,6 @@ filename! On these platforms, there is no guaranteed way to know whether a file
|
|||
file names with a capitalized first letter.) The DOS 8+3 filename restriction
|
||||
adds another interesting problem for long module names.
|
||||
|
||||
.. % The \code{__all__} Attribute
|
||||
|
||||
The only solution is for the package author to provide an explicit index of the
|
||||
package. The import statement uses the following convention: if a package's
|
||||
:file:`__init__.py` code defines a list named ``__all__``, it is taken to be the
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue