mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
Merge 3.2
This commit is contained in:
commit
92952cc181
4 changed files with 4 additions and 4 deletions
|
@ -279,7 +279,7 @@ For example, if the :file:`setup.py` script is changed like this::
|
||||||
Where the long description is broken, ``check`` will be able to detect it
|
Where the long description is broken, ``check`` will be able to detect it
|
||||||
by using the :mod:`docutils` parser::
|
by using the :mod:`docutils` parser::
|
||||||
|
|
||||||
$ pythontrunk setup.py check --restructuredtext
|
$ python setup.py check --restructuredtext
|
||||||
running check
|
running check
|
||||||
warning: check: Title underline too short. (line 2)
|
warning: check: Title underline too short. (line 2)
|
||||||
warning: check: Could not finish the parsing.
|
warning: check: Could not finish the parsing.
|
||||||
|
|
|
@ -34,7 +34,7 @@ Encoding basic Python object hierarchies::
|
||||||
Compact encoding::
|
Compact encoding::
|
||||||
|
|
||||||
>>> import json
|
>>> import json
|
||||||
>>> json.dumps([1,2,3,{'4': 5, '6': 7}], separators=(',',':'))
|
>>> json.dumps([1,2,3,{'4': 5, '6': 7}], separators=(',', ':'))
|
||||||
'[1,2,3,{"4":5,"6":7}]'
|
'[1,2,3,{"4":5,"6":7}]'
|
||||||
|
|
||||||
Pretty printing::
|
Pretty printing::
|
||||||
|
|
|
@ -49,7 +49,7 @@ The :mod:`runpy` module provides two functions:
|
||||||
loader does not make filename information available, this variable is set
|
loader does not make filename information available, this variable is set
|
||||||
to :const:`None`.
|
to :const:`None`.
|
||||||
|
|
||||||
``__cached__`` will be set to ``None``.
|
``__cached__`` will be set to ``None``.
|
||||||
|
|
||||||
``__loader__`` is set to the :pep:`302` module loader used to retrieve the
|
``__loader__`` is set to the :pep:`302` module loader used to retrieve the
|
||||||
code for the module (This loader may be a wrapper around the standard
|
code for the module (This loader may be a wrapper around the standard
|
||||||
|
|
|
@ -31,7 +31,7 @@ Encoding basic Python object hierarchies::
|
||||||
Compact encoding::
|
Compact encoding::
|
||||||
|
|
||||||
>>> import json
|
>>> import json
|
||||||
>>> json.dumps([1,2,3,{'4': 5, '6': 7}], separators=(',',':'))
|
>>> json.dumps([1,2,3,{'4': 5, '6': 7}], separators=(',', ':'))
|
||||||
'[1,2,3,{"4":5,"6":7}]'
|
'[1,2,3,{"4":5,"6":7}]'
|
||||||
|
|
||||||
Pretty printing::
|
Pretty printing::
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue