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

Merge heads.

...@@ -184,7 +184,7 @@ square brackets ``'[]'`` to access the keys :: ...@@ -184,7 +184,7 @@ square brackets ``'[]'`` to access the keys ::
>>> table = {'Sjoerd': 4127, 'Jack': 4098, 'Dcab': 8637678} >>> table = {'Sjoerd': 4127, 'Jack': 4098, 'Dcab': 8637678}
>>> print('Jack: {0[Jack]:d}; Sjoerd: {0[Sjoerd]:d}; ' >>> 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 Jack: 4098; Sjoerd: 4127; Dcab: 8637678
This could also be done by passing the table as keyword arguments with the '**' This could also be done by passing the table as keyword arguments with the '**'
......
...@@ -380,7 +380,10 @@ Options you shouldn't use ...@@ -380,7 +380,10 @@ Options you shouldn't use
Environment variables 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 .. envvar:: PYTHONHOME
...@@ -577,4 +580,3 @@ if Python was configured with the ``--with-pydebug`` build option. ...@@ -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 If set, Python will print memory allocation statistics every time a new
object arena is created, and on shutdown. object arena is created, and on shutdown.
...@@ -997,6 +997,7 @@ Hugo van Rossum ...@@ -997,6 +997,7 @@ Hugo van Rossum
Saskia van Rossum Saskia van Rossum
Donald Wallace Rouse II Donald Wallace Rouse II
Liam Routt Liam Routt
Todd Rovito
Craig Rowland Craig Rowland
Clinton Roy Clinton Roy
Paul Rubin Paul Rubin
......
This diff is collapsed.
...@@ -30,7 +30,7 @@ def compare_codecs(encoding1, encoding2): ...@@ -30,7 +30,7 @@ def compare_codecs(encoding1, encoding2):
mismatch += 1 mismatch += 1
# Check decoding # Check decoding
for i in range(256): for i in range(256):
c = chr(i) c = bytes([i])
try: try:
u1 = c.decode(encoding1) u1 = c.decode(encoding1)
except UnicodeError: 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