Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
f7d08e85
Commit
f7d08e85
authored
May 29, 2011
by
Éric Araujo
Browse files
Options
Browse Files
Download
Plain Diff
Merge 3.2
parents
c7390669
75e86a67
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
11 deletions
+13
-11
Doc/distutils/apiref.rst
Doc/distutils/apiref.rst
+1
-0
Doc/library/pprint.rst
Doc/library/pprint.rst
+3
-3
Misc/NEWS
Misc/NEWS
+9
-8
No files found.
Doc/distutils/apiref.rst
View file @
f7d08e85
...
...
@@ -2006,6 +2006,7 @@ This is described in more detail in :pep:`301`.
.. % todo
:mod:`distutils.command.check` --- Check the meta-data of a package
===================================================================
...
...
Doc/library/pprint.rst
View file @
f7d08e85
...
...
@@ -193,7 +193,7 @@ Example
-------
To demonstrate several uses of the :func:`pprint` function and its parameters,
let's fetch information about a p
ackage
from PyPI::
let's fetch information about a p
roject
from PyPI::
>>> import json
>>> import pprint
...
...
@@ -201,8 +201,8 @@ let's fetch information about a package from PyPI::
>>> with urlopen('http://pypi.python.org/pypi/configparser/json') as url:
... http_info = url.info()
... raw_data = url.read().decode(http_info.get_content_charset())
>>> p
ackage_data
= json.loads(raw_data)
>>> result = {'headers': http_info.items(), 'body': p
ackage_data
}
>>> p
roject_info
= json.loads(raw_data)
>>> result = {'headers': http_info.items(), 'body': p
roject_info
}
In its basic form, :func:`pprint` shows the whole object::
...
...
Misc/NEWS
View file @
f7d08e85
...
...
@@ -439,11 +439,12 @@ Library
-
Issue
#
7311
:
fix
html
.
parser
to
accept
non
-
ASCII
attribute
values
.
-
Issue
#
11605
:
email
.
parser
.
BytesFeedParser
was
incorrectly
converting
multipart
subpararts
with
an
8
bit
CTE
into
unicode
instead
of
preserving
the
bytes
.
-
Issue
#
11605
:
email
.
parser
.
BytesFeedParser
was
incorrectly
converting
multipart
subparts
with
an
8
-
bit
CTE
into
unicode
instead
of
preserving
the
bytes
.
-
Issue
#
1690608
:
email
.
util
.
formataddr
is
now
RFC2047
aware
:
it
now
has
a
charset
parameter
that
defaults
utf
-
8
which
is
used
as
the
charset
for
RFC
-
Issue
#
1690608
:
email
.
util
.
formataddr
is
now
RFC
2047
aware
:
it
now
has
a
charset
parameter
that
defaults
to
utf
-
8
and
is
used
as
the
charset
for
RFC
2047
encoding
when
the
realname
contains
non
-
ASCII
characters
.
-
Issue
#
10963
:
Ensure
that
subprocess
.
communicate
()
never
raises
EPIPE
.
...
...
@@ -597,7 +598,7 @@ Library
the "n" as the flag argument and the file exists. The behavior matches
the documentation and general logic.
- Issue #1162477: Postel Princip
al
adjustment to email date parsing: handle the
- Issue #1162477: Postel Princip
le
adjustment to email date parsing: handle the
fact that some non-compliant MUAs use '
.
' instead of '
:
' in time specs.
- Issue #11131: Fix sign of zero in decimal.Decimal plus and minus
...
...
@@ -824,7 +825,7 @@ Tests
-
New
test_crashers
added
to
exercise
the
scripts
in
the
Lib
/
test
/
crashers
directory
and
confirm
they
fail
as
expected
-
Issue
#
11578
:
added
test
for
the
timeit
module
.
Patch
Michael
Henry
.
-
Issue
#
11578
:
added
test
for
the
timeit
module
.
Patch
by
Michael
Henry
.
-
Issue
#
11503
:
improve
test
coverage
of
posixpath
.
py
.
Patch
by
Evan
Dandrea
.
...
...
@@ -1138,10 +1139,10 @@ Library
comparisons that could lead to infinite recursion.
- Issue #10686: the email package now :rfc:`2047`\ -encodes headers with
non-ASCII bytes (parsed by a Bytes
Parser) when doing conversion to 7bit-clean
non-ASCII bytes (parsed by a BytesParser) when doing conversion to 7bit-clean
presentation, instead of replacing them with ?s.
- email.header.Header was incorrectly encoding folding white
space when
- email.header.Header was incorrectly encoding folding whitespace when
rfc2047-encoding header values with embedded newlines, leaving them without
folding whitespace. It now uses the continuation_ws, as it does for
continuation lines that it creates itself.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment