Kaydet (Commit) dd355000 authored tarafından Trent Nelson's avatar Trent Nelson

Merge heads.

......@@ -184,7 +184,7 @@ square brackets ``'[]'`` to access the keys ::
>>> table = {'Sjoerd': 4127, 'Jack': 4098, 'Dcab': 8637678}
>>> print('Jack: {0[Jack]:d}; Sjoerd: {0[Sjoerd]:d}; '
'Dcab: {0[Dcab]:d}'.format(table))
... 'Dcab: {0[Dcab]:d}'.format(table))
Jack: 4098; Sjoerd: 4127; Dcab: 8637678
This could also be done by passing the table as keyword arguments with the '**'
......
......@@ -380,7 +380,10 @@ Options you shouldn't use
Environment variables
---------------------
These environment variables influence Python's behavior.
These environment variables influence Python's behavior, they are processed
before the command-line switches other than -E. It is customary that
command-line switches override environmental variables where there is a
conflict.
.. envvar:: PYTHONHOME
......@@ -577,4 +580,3 @@ if Python was configured with the ``--with-pydebug`` build option.
If set, Python will print memory allocation statistics every time a new
object arena is created, and on shutdown.
......@@ -997,6 +997,7 @@ Hugo van Rossum
Saskia van Rossum
Donald Wallace Rouse II
Liam Routt
Todd Rovito
Craig Rowland
Clinton Roy
Paul Rubin
......
This diff is collapsed.
......@@ -30,7 +30,7 @@ def compare_codecs(encoding1, encoding2):
mismatch += 1
# Check decoding
for i in range(256):
c = chr(i)
c = bytes([i])
try:
u1 = c.decode(encoding1)
except UnicodeError:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment