]> granicus.if.org Git - python/log
python
12 years agoIssue #15334: skip test_dynamic_key when run in non-interactive mode.
Antoine Pitrou [Fri, 13 Jul 2012 19:08:41 +0000 (21:08 +0200)]
Issue #15334: skip test_dynamic_key when run in non-interactive mode.
Patch by Jeremy Kloth.

12 years agoIssue #15338: skip test_UNC_path when the current user doesn't have enough permission...
Antoine Pitrou [Fri, 13 Jul 2012 18:54:42 +0000 (20:54 +0200)]
Issue #15338: skip test_UNC_path when the current user doesn't have enough permissions to access the path.

12 years agoUse _RPCFile.write properly.
Martin v. Löwis [Wed, 11 Jul 2012 07:19:16 +0000 (09:19 +0200)]
Use _RPCFile.write properly.

12 years agoDon't use TextIOBase implementations in _RPCFile.
Martin v. Löwis [Wed, 11 Jul 2012 06:49:58 +0000 (08:49 +0200)]
Don't use TextIOBase implementations in _RPCFile.

12 years agoIssue #15319: Revert wrapping of sys.stdin. Patch by Serhiy Storchaka.
Martin v. Löwis [Wed, 11 Jul 2012 06:32:05 +0000 (08:32 +0200)]
Issue #15319: Revert wrapping of sys.stdin. Patch by Serhiy Storchaka.

12 years agoIssue 13532: Allow bytearrays to be written also.
Terry Jan Reedy [Mon, 9 Jul 2012 21:57:13 +0000 (17:57 -0400)]
Issue 13532: Allow bytearrays to be written also.

12 years agoWiden test to support unicode.
Martin v. Löwis [Mon, 9 Jul 2012 19:07:41 +0000 (21:07 +0200)]
Widen test to support unicode.

12 years ago- Issue #13532: Check that arguments to sys.stdout.write are strings.
Martin v. Löwis [Mon, 9 Jul 2012 19:01:49 +0000 (21:01 +0200)]
- Issue #13532: Check that arguments to sys.stdout.write are strings.

12 years agoIssue #13557: Clarify effect of giving two different namespaces to exec or
Terry Jan Reedy [Sun, 8 Jul 2012 21:35:26 +0000 (17:35 -0400)]
Issue #13557: Clarify effect of giving two different namespaces to exec or
execfile().

12 years agomerge heads.
Senthil Kumaran [Sun, 8 Jul 2012 09:22:44 +0000 (02:22 -0700)]
merge heads.

12 years agorevert the changes done in d931a3b64fd6 - buildbot failure.
Senthil Kumaran [Sun, 8 Jul 2012 09:20:27 +0000 (02:20 -0700)]
revert the changes done in d931a3b64fd6  - buildbot failure.
The fix for issue14826 might need to address toBytes and test_url_encoding in
test_cookielib.py before it is brought back in.

12 years agoFix the buildbot failure - msg164973
Senthil Kumaran [Sun, 8 Jul 2012 08:14:53 +0000 (01:14 -0700)]
Fix the buildbot failure - msg164973

12 years agoFix issue14826 - make urllib.request.Request quoted url consistent with URLOpener...
Senthil Kumaran [Sun, 8 Jul 2012 00:37:53 +0000 (17:37 -0700)]
Fix issue14826 - make urllib.request.Request quoted url consistent with URLOpener open method.
Patch contributed by Stephen Thorne.

12 years agoFix leftover quote.
Georg Brandl [Fri, 6 Jul 2012 19:36:48 +0000 (21:36 +0200)]
Fix leftover quote.

12 years agoIssue #15247: FileIO now raises an error when given a file descriptor pointing to...
Antoine Pitrou [Fri, 6 Jul 2012 16:48:24 +0000 (18:48 +0200)]
Issue #15247: FileIO now raises an error when given a file descriptor pointing to a directory.

12 years agoFix closes issue # 15033 - Return the proper exitcode for failure when modules are...
Senthil Kumaran [Thu, 5 Jul 2012 02:50:29 +0000 (19:50 -0700)]
Fix closes issue # 15033 - Return the proper exitcode for failure when modules are invoked using -m switch. Patch contributed by Jeff Knupp

12 years agoIssue #1677: Unused variable warning in Non-Windows
Jesus Cea [Tue, 3 Jul 2012 11:07:58 +0000 (13:07 +0200)]
Issue #1677: Unused variable warning in Non-Windows

12 years agoBacked out changeset 7ccc2cea6969
Jesus Cea [Tue, 3 Jul 2012 11:06:45 +0000 (13:06 +0200)]
Backed out changeset 7ccc2cea6969

12 years agoIssue #1667: Unused variable warning in Non-Windows
Jesus Cea [Tue, 3 Jul 2012 11:04:55 +0000 (13:04 +0200)]
Issue #1667: Unused variable warning in Non-Windows

12 years agoCreate ~/.pypirc securely (#13512).
Éric Araujo [Tue, 3 Jul 2012 05:23:46 +0000 (01:23 -0400)]
Create ~/.pypirc securely (#13512).

There was a window between the write and the chmod where the user’s
password would be exposed, depending on default permissions.  Philip
Jenvey’s patch fixes it.

12 years agoBranch merge
Éric Araujo [Tue, 3 Jul 2012 05:13:40 +0000 (01:13 -0400)]
Branch merge

12 years agoIgnore .nfs* files in distutils (#7719).
Éric Araujo [Tue, 3 Jul 2012 05:12:42 +0000 (01:12 -0400)]
Ignore .nfs* files in distutils (#7719).

These files are created by some NFS clients a file is edited and removed
concurrently (see added link in doc for more info).  If such a file is
removed between distutils calls listdir and copy, it will get confused.
Other special files are ignored in sdist (namely VCS directories), but
this has to be filtered out earlier.

12 years agoMake it easier to search for the grouper() recipe.
Raymond Hettinger [Tue, 3 Jul 2012 04:08:45 +0000 (21:08 -0700)]
Make it easier to search for the grouper() recipe.

12 years agoUse source role to get links to files
Éric Araujo [Mon, 2 Jul 2012 21:46:56 +0000 (17:46 -0400)]
Use source role to get links to files

12 years agoAdapt mentions of future changes in doc
Éric Araujo [Mon, 2 Jul 2012 21:46:40 +0000 (17:46 -0400)]
Adapt mentions of future changes in doc

12 years agoAvoid SyntaxError in script using print function
Éric Araujo [Mon, 2 Jul 2012 21:45:10 +0000 (17:45 -0400)]
Avoid SyntaxError in script using print function

12 years agoThe StopIteration API applies to both tokenize() and generate_tokens()
Raymond Hettinger [Mon, 2 Jul 2012 03:00:09 +0000 (20:00 -0700)]
The StopIteration API applies to both tokenize() and generate_tokens()

12 years agoIssue #15212: fix typo in compiler module (rename SC_GLOBAL_EXPLICT to SC_GLOBAL_EXPL...
Antoine Pitrou [Sun, 1 Jul 2012 22:01:22 +0000 (00:01 +0200)]
Issue #15212: fix typo in compiler module (rename SC_GLOBAL_EXPLICT to SC_GLOBAL_EXPLICIT).
Patch by Arfrever.

12 years agoMake call of os.getppid() conditional: it is not available on Windows.
Georg Brandl [Sun, 1 Jul 2012 07:47:54 +0000 (09:47 +0200)]
Make call of os.getppid() conditional: it is not available on Windows.

12 years agoRemove an unneeded footnote.
Georg Brandl [Sun, 1 Jul 2012 07:40:16 +0000 (09:40 +0200)]
Remove an unneeded footnote.

12 years agoIssue #15170: Quote the variable that expands to the current directory.
Stefan Krah [Sat, 30 Jun 2012 16:46:02 +0000 (18:46 +0200)]
Issue #15170: Quote the variable that expands to the current directory.

12 years agoCloses #14591: Random.jumpahead could produce an invalid MT state on 64-bit machines.
Mark Dickinson [Sat, 30 Jun 2012 16:19:35 +0000 (17:19 +0100)]
Closes #14591: Random.jumpahead could produce an invalid MT state on 64-bit machines.

12 years agoMerged
Tim Golden [Fri, 29 Jun 2012 21:10:28 +0000 (22:10 +0100)]
Merged

12 years agoBacked out changeset ee51e3aef302 - it broke the test suite
Antoine Pitrou [Fri, 29 Jun 2012 19:53:29 +0000 (21:53 +0200)]
Backed out changeset ee51e3aef302 - it broke the test suite

12 years agourlparse cleanup. rename keywords used as variables
Senthil Kumaran [Fri, 29 Jun 2012 18:07:27 +0000 (11:07 -0700)]
urlparse cleanup. rename keywords used as variables

12 years agoIssue #1677: Handle better a race condition between the interactive interpreter and
Tim Golden [Fri, 29 Jun 2012 17:20:44 +0000 (18:20 +0100)]
Issue #1677: Handle better a race condition between the interactive interpreter and
the Ctrl-C signal handler on Windows

12 years ago#5346: Preserve permissions of mbox, MMDF and Babyl mailbox files on flush()
Petri Lehtinen [Fri, 29 Jun 2012 12:09:12 +0000 (15:09 +0300)]
#5346: Preserve permissions of mbox, MMDF and Babyl mailbox files on flush()

12 years ago#9559: Don't call _pre_mailbox_hook more than once
Petri Lehtinen [Fri, 29 Jun 2012 10:43:37 +0000 (13:43 +0300)]
#9559: Don't call _pre_mailbox_hook more than once

12 years agourlparse docs clean up
Senthil Kumaran [Fri, 29 Jun 2012 04:07:32 +0000 (21:07 -0700)]
urlparse docs clean up

12 years agoIssue #5067: improve some json error messages.
Antoine Pitrou [Thu, 28 Jun 2012 23:58:26 +0000 (01:58 +0200)]
Issue #5067: improve some json error messages.
Patch by Serhiy Storchaka.

12 years agoIssue #15219: Fix a reference leak when hashlib.new() is called with
Amaury Forgeot d'Arc [Thu, 28 Jun 2012 23:42:46 +0000 (01:42 +0200)]
Issue #15219: Fix a reference leak when hashlib.new() is called with
invalid parameters.

12 years ago#9559: Append data to single-file mailbox files if messages are only added
Petri Lehtinen [Thu, 28 Jun 2012 10:48:17 +0000 (13:48 +0300)]
#9559: Append data to single-file mailbox files if messages are only added

If messages were only added, a new file is no longer created and
renamed over the old file when flush() is called on an mbox, MMDF or
Babyl mailbox.

12 years agoRegrtest option "-n" doesn't exist in 2.7.
Antoine Pitrou [Wed, 27 Jun 2012 16:23:40 +0000 (18:23 +0200)]
Regrtest option "-n" doesn't exist in 2.7.

12 years agoFlush stdout and stderr when running tests in parallel
Antoine Pitrou [Wed, 27 Jun 2012 15:41:07 +0000 (17:41 +0200)]
Flush stdout and stderr when running tests in parallel
(helps getting results in real-time when stdio is transmitted over a pipe or socket)

12 years agoAllow passing extra testing options to the buildbot test scripts
Antoine Pitrou [Wed, 27 Jun 2012 15:27:21 +0000 (17:27 +0200)]
Allow passing extra testing options to the buildbot test scripts

12 years agoissue13666 - Fixing datetime documentation example when using tzinfo
Senthil Kumaran [Tue, 26 Jun 2012 12:05:12 +0000 (20:05 +0800)]
issue13666 - Fixing datetime documentation example when using tzinfo

12 years agoFixes issue #12268 for file readline, readlines and read() and readinto methods.
Gregory P. Smith [Tue, 26 Jun 2012 03:57:36 +0000 (20:57 -0700)]
Fixes issue #12268 for file readline, readlines and read() and readinto methods.
They no longer lose data when an underlying read system call is interrupted.
IOError is no longer raised due to a read system call returning EINTR from
within these methods.

12 years agoTry to fix failure of a Windows buildbot to capture name resolution errors.
Antoine Pitrou [Mon, 25 Jun 2012 22:48:59 +0000 (00:48 +0200)]
Try to fix failure of a Windows buildbot to capture name resolution errors.

12 years agoIssue #15179: Closed socket on connection failure. Thanks to Kazutaka Morita for...
Vinay Sajip [Mon, 25 Jun 2012 22:17:07 +0000 (23:17 +0100)]
Issue #15179: Closed socket on connection failure. Thanks to Kazutaka Morita for the patch.

12 years agoIssue #15170: Try the HOST_PYTHON hack for 2.7.
Stefan Krah [Mon, 25 Jun 2012 13:20:51 +0000 (15:20 +0200)]
Issue #15170: Try the HOST_PYTHON hack for 2.7.

12 years agoRemove useless test (flowinfo is unsigned).
Charles-François Natali [Sat, 23 Jun 2012 08:06:56 +0000 (10:06 +0200)]
Remove useless test (flowinfo is unsigned).

12 years agoFixed the name of the 'email.Utils' module in tests.
Alexander Belopolsky [Fri, 22 Jun 2012 14:38:48 +0000 (10:38 -0400)]
Fixed the name of the 'email.Utils' module in tests.

12 years agoIssue #14653: email.utils.mktime_tz() no longer relies on system
Alexander Belopolsky [Fri, 22 Jun 2012 00:57:39 +0000 (20:57 -0400)]
Issue #14653: email.utils.mktime_tz() no longer relies on system
mktime() when timezone offest is supplied.

12 years ago#10053: Don't close FDs when FileIO.__init__ fails
Hynek Schlawack [Thu, 21 Jun 2012 17:45:19 +0000 (19:45 +0200)]
#10053: Don't close FDs when FileIO.__init__ fails

Loosely based on the work by Hirokazu Yamamoto.

12 years agoIssue #15101: Make pool finalizer avoid joining current thread
Richard Oudkerk [Mon, 18 Jun 2012 14:37:31 +0000 (15:37 +0100)]
Issue #15101: Make pool finalizer avoid joining current thread

12 years agoFix NEWS entry for #15036
Petri Lehtinen [Mon, 18 Jun 2012 07:42:05 +0000 (10:42 +0300)]
Fix NEWS entry for #15036

12 years ago#14840: Add a bit on the difference between tuples and lists. Initial patch by Zacha...
Ezio Melotti [Sun, 17 Jun 2012 12:10:59 +0000 (14:10 +0200)]
#14840: Add a bit on the difference between tuples and lists.  Initial patch by Zachary Ware.

12 years agoIssue #15043: skip test_gdb if the custom hooks can't be loaded (backport from 3.x)
Nick Coghlan [Sun, 17 Jun 2012 09:03:39 +0000 (19:03 +1000)]
Issue #15043: skip test_gdb if the custom hooks can't be loaded (backport from 3.x)

12 years agoIssue #15044: Handle Fedora 17's approach to ndbm compatibility (backport from 3.x)
Nick Coghlan [Sun, 17 Jun 2012 08:35:39 +0000 (18:35 +1000)]
Issue #15044: Handle Fedora 17's approach to ndbm compatibility (backport from 3.x)

12 years agoIssue #15054: Fix incorrect tokenization of 'b' and 'br' string literals.
Meador Inge [Sun, 17 Jun 2012 02:05:50 +0000 (21:05 -0500)]
Issue #15054: Fix incorrect tokenization of 'b' and 'br' string literals.

Patch by Serhiy Storchaka.

12 years ago#15036: Make a repeated changes and flushes work with single-file mailboxes
Petri Lehtinen [Fri, 15 Jun 2012 17:50:51 +0000 (20:50 +0300)]
#15036: Make a repeated changes and flushes work with single-file mailboxes

12 years agoIssue #14933: fix misleading doc about weakref support in extension types.
Antoine Pitrou [Fri, 15 Jun 2012 17:11:31 +0000 (19:11 +0200)]
Issue #14933: fix misleading doc about weakref support in extension types.

12 years agoSkip test_bigmem.test_unicode_repr_oflw, since it crashes (issue #14904).
Antoine Pitrou [Fri, 15 Jun 2012 16:33:48 +0000 (18:33 +0200)]
Skip test_bigmem.test_unicode_repr_oflw, since it crashes (issue #14904).

12 years agoIssue #15060: better fix, thanks to review on #python-dev
Sandro Tosi [Wed, 13 Jun 2012 22:36:54 +0000 (00:36 +0200)]
Issue #15060: better fix, thanks to review on #python-dev

12 years agoIssue #15060: fix typo in socket doc; Patch by anatoly techtonik
Sandro Tosi [Wed, 13 Jun 2012 21:58:35 +0000 (23:58 +0200)]
Issue #15060: fix typo in socket doc; Patch by anatoly techtonik

12 years agoIssue #10133: Make multiprocessing deallocate buffer if socket read fails.
Richard Oudkerk [Mon, 11 Jun 2012 14:11:35 +0000 (15:11 +0100)]
Issue #10133: Make multiprocessing deallocate buffer if socket read fails.

Patch by Hallvard B Furuseth.

12 years agoMinor formatting fix=up
Raymond Hettinger [Sun, 10 Jun 2012 00:27:23 +0000 (17:27 -0700)]
Minor formatting fix=up

12 years agoWrap fat lines and improve some variable names.
Raymond Hettinger [Sat, 9 Jun 2012 20:04:29 +0000 (13:04 -0700)]
Wrap fat lines and improve some variable names.

12 years agoCode cleanups
Raymond Hettinger [Fri, 8 Jun 2012 20:24:12 +0000 (13:24 -0700)]
Code cleanups

12 years ago#8652: update errors tutorial.
R David Murray [Fri, 8 Jun 2012 01:46:44 +0000 (21:46 -0400)]
#8652: update errors tutorial.

The tutorial had some outdated examples.  The patch also adds a caution
about the meaning of parens in the except statement.

Patch by Marien Zwart.

12 years agoNEWS fixes
Terry Jan Reedy [Thu, 7 Jun 2012 23:50:30 +0000 (19:50 -0400)]
NEWS fixes

12 years agoIssue #13854: Properly handle non-integer, non-string arg to SystemExit
Richard Oudkerk [Wed, 6 Jun 2012 18:01:14 +0000 (19:01 +0100)]
Issue #13854: Properly handle non-integer, non-string arg to SystemExit

Previously multiprocessing only expected int or str.  It also wrongly
used an exit code of 1 when the argument was a string instead of zero.

12 years agoIssue #12157: pool.map() does not handle empty iterable correctly
Richard Oudkerk [Wed, 6 Jun 2012 16:52:18 +0000 (17:52 +0100)]
Issue #12157: pool.map() does not handle empty iterable correctly

Initial patch by mouad

12 years agoNudge readers towards a more accurate mental model for loop else clauses (Backport...
Nick Coghlan [Thu, 7 Jun 2012 12:57:35 +0000 (22:57 +1000)]
Nudge readers towards a more accurate mental model for loop else clauses (Backport from 3.x)

12 years agoIssue 12510: Expand 2 bare excepts. Improve comments. Change deceptive name
Terry Jan Reedy [Sun, 3 Jun 2012 04:58:36 +0000 (00:58 -0400)]
Issue 12510: Expand 2 bare excepts. Improve comments. Change deceptive name
'name' to 'expression' as the latter is what the string actually represents.
The bug in this issue was only catching NameError and AttributeError when
evaluating an expression that was not necessarily a name.

12 years agoIssue 10365: Add and replace comments; condense defaulted attribute access.
Terry Jan Reedy [Sun, 3 Jun 2012 00:22:35 +0000 (20:22 -0400)]
Issue 10365: Add and replace comments; condense defaulted attribute access.
Code patch by Roger Serwy.

12 years agobackport c4bd68be5fc6 to 2.7
Sandro Tosi [Sat, 2 Jun 2012 21:40:59 +0000 (23:40 +0200)]
backport c4bd68be5fc6 to 2.7

12 years agorefer to time.strftime
Sandro Tosi [Sat, 2 Jun 2012 16:21:06 +0000 (18:21 +0200)]
refer to time.strftime

12 years ago#14957: fix doc typo.
R David Murray [Sat, 2 Jun 2012 15:21:31 +0000 (11:21 -0400)]
#14957: fix doc typo.

12 years agoImprove tooltips for splitlines() by showing that the default for keepends is False.
Raymond Hettinger [Sat, 2 Jun 2012 05:42:58 +0000 (01:42 -0400)]
Improve tooltips for splitlines() by showing that the default for keepends is False.

12 years ago#14957: clarify splitlines docs.
R David Murray [Fri, 1 Jun 2012 20:21:06 +0000 (16:21 -0400)]
#14957: clarify splitlines docs.

Initial patch by Michael Driscoll, I added the example.

12 years agoIssue #14962: Update text coloring in IDLE shell window after changing
Ned Deily [Thu, 31 May 2012 16:17:29 +0000 (09:17 -0700)]
Issue #14962: Update text coloring in IDLE shell window after changing
options.  Patch by Roger Serwy.

12 years agoChanged comment on test skip.
Vinay Sajip [Thu, 31 May 2012 11:35:13 +0000 (12:35 +0100)]
Changed comment on test skip.

12 years agoIssue #10997: Prevent a duplicate entry in IDLE's "Recent Files" menu.
Ned Deily [Tue, 29 May 2012 17:42:34 +0000 (10:42 -0700)]
Issue #10997: Prevent a duplicate entry in IDLE's "Recent Files" menu.

12 years agoIssue #14775: Fix a potential quadratic dict build-up due to the garbage collector...
Antoine Pitrou [Mon, 28 May 2012 20:22:34 +0000 (22:22 +0200)]
Issue #14775: Fix a potential quadratic dict build-up due to the garbage collector repeatedly trying to untrack dicts.
Additional comments by Tim Silk.

12 years agoIssue #9041: raised exception is misleading
Meador Inge [Mon, 28 May 2012 18:52:59 +0000 (13:52 -0500)]
Issue #9041: raised exception is misleading

An issue in ctypes.c_longdouble, ctypes.c_double, and ctypes.c_float that
caused an incorrect exception to be returned in the case of overflow has been
fixed.

12 years agoIssue12510: Attempting to get invalid tooltip no longer closes Idle.
Terry Jan Reedy [Mon, 28 May 2012 01:28:42 +0000 (21:28 -0400)]
Issue12510: Attempting to get invalid tooltip no longer closes Idle.
Original patch by Roger Serwy.

12 years ago#11785: fix the :mod: references in email package submodule titles.
R David Murray [Sun, 27 May 2012 21:13:54 +0000 (17:13 -0400)]
#11785: fix the :mod: references in email package submodule titles.

12 years ago#10365 Trim trailing whitespace
Terry Jan Reedy [Sun, 27 May 2012 00:45:35 +0000 (20:45 -0400)]
#10365 Trim trailing whitespace

12 years agoIssue #10365: File open dialog now works instead of crashing
Terry Jan Reedy [Sun, 27 May 2012 00:33:32 +0000 (20:33 -0400)]
Issue #10365: File open dialog now works instead of crashing
even when parent window is closed. Patch by Roger Serwy.

12 years agoIssue #14876: Use user-selected font for highlight configuration.
Terry Jan Reedy [Sat, 26 May 2012 20:55:43 +0000 (16:55 -0400)]
Issue #14876: Use user-selected font for highlight configuration.
Patch by Roger Serwy.

12 years agoIssue #14881: Allow normal non-main thread to spawn a dummy process
Richard Oudkerk [Fri, 25 May 2012 11:56:33 +0000 (12:56 +0100)]
Issue #14881: Allow normal non-main thread to spawn a dummy process

Fix suggested by Itay Brandes

12 years ago#4841: Fix FileIO constructor to honor closefd when called repeatedly
Hynek Schlawack [Fri, 25 May 2012 07:24:18 +0000 (09:24 +0200)]
#4841: Fix FileIO constructor to honor closefd when called repeatedly

Patch by Victor Stinner.

12 years agoFix other test requirements.
Antoine Pitrou [Thu, 24 May 2012 20:30:19 +0000 (22:30 +0200)]
Fix other test requirements.

12 years agoFix memory constraint for test_decodeascii
Antoine Pitrou [Thu, 24 May 2012 20:08:51 +0000 (22:08 +0200)]
Fix memory constraint for test_decodeascii

12 years agoIssue #14036: return None when port in urlparse cross 65535
Senthil Kumaran [Thu, 24 May 2012 13:54:34 +0000 (21:54 +0800)]
Issue #14036: return None when port in urlparse cross 65535

12 years agoIssue #14888: Fix misbehaviour of the _md5 module when called on data larger than...
Antoine Pitrou [Wed, 23 May 2012 21:16:14 +0000 (23:16 +0200)]
Issue #14888: Fix misbehaviour of the _md5 module when called on data larger than 2**32 bytes.

12 years agoRestore [] where default arguments are not keywords
Hynek Schlawack [Tue, 22 May 2012 13:22:14 +0000 (15:22 +0200)]
Restore [] where default arguments are not keywords

Reverts some changes of a36666c52115.

In the case of os's `mknod(filename[, mode=0600[, device=0]])`, I have nested
the [] as setting mode doesn't require to set device (but setting device
requires to set mode).

12 years ago#14804: Remove [] around optional arguments with default values
Hynek Schlawack [Tue, 22 May 2012 08:27:40 +0000 (10:27 +0200)]
#14804: Remove [] around optional arguments with default values

Mostly just mechanical removal of []. In some rare cases I've pulled the
default value up into the argument list.

12 years ago#14875: Use float('inf') instead of float('1e66666') in the json module.
Ezio Melotti [Mon, 21 May 2012 23:46:55 +0000 (17:46 -0600)]
#14875: Use float('inf') instead of float('1e66666') in the json module.