]> granicus.if.org Git - python/log
python
12 years agoMerge with 3.2
Ross Lagerwall [Fri, 24 Aug 2012 11:32:14 +0000 (13:32 +0200)]
Merge with 3.2

12 years agoIssue 15777: Fix a refleak in _posixsubprocess.
Ross Lagerwall [Fri, 24 Aug 2012 11:25:59 +0000 (13:25 +0200)]
Issue 15777: Fix a refleak in _posixsubprocess.

It was exposed by 03c98d05b140 and dbbf3ccf72e8.

12 years agoClose #2051: Oops, transposed the digits in the issue number in the previous commit
Nick Coghlan [Fri, 24 Aug 2012 08:36:31 +0000 (18:36 +1000)]
Close #2051: Oops, transposed the digits in the issue number in the previous commit

12 years agoClose #2501: Permission bits are once again correctly copied from the source file...
Nick Coghlan [Fri, 24 Aug 2012 08:32:40 +0000 (18:32 +1000)]
Close #2501: Permission bits are once again correctly copied from the source file to the cached bytecode file. Test by Eric Snow.

12 years agoIssue #15037: Use correct path to system terminfo database.
Ned Deily [Fri, 24 Aug 2012 07:44:01 +0000 (00:44 -0700)]
Issue #15037: Use correct path to system terminfo database.

12 years agoIssue #15770: Check invalid arguments in test function. Patch by Victor Stinner.
Stefan Krah [Thu, 23 Aug 2012 13:53:45 +0000 (15:53 +0200)]
Issue #15770: Check invalid arguments in test function. Patch by Victor Stinner.

12 years agompd_qpowmod(): calculate result with zero-exponent for compatibility with
Stefan Krah [Thu, 23 Aug 2012 13:05:29 +0000 (15:05 +0200)]
mpd_qpowmod(): calculate result with zero-exponent for compatibility with
decimal.py. The hack to remove the ideal exponent is no longer required.

12 years agoIssue #14292: Ensure that the OS X installer build configures the CXX
Ned Deily [Thu, 23 Aug 2012 06:34:50 +0000 (23:34 -0700)]
Issue #14292: Ensure that the OS X installer build configures the CXX
environment variable to a value comparable to what it sets for CC for
the benefit of C++ extension modules.
(Patch by Ronald Oussoren)

12 years agoIssue #15645: Ensure 2to3 grammar pickles are properly installed.
Ned Deily [Thu, 23 Aug 2012 06:34:13 +0000 (23:34 -0700)]
Issue #15645: Ensure 2to3 grammar pickles are properly installed.
(Patch by Ronald Oussoren)

12 years agoissue #15645: null merge
Ned Deily [Thu, 23 Aug 2012 06:32:29 +0000 (23:32 -0700)]
issue #15645: null merge

12 years agoIssue #15645: Ensure 2to3 grammar pickles are properly installed.
Ned Deily [Thu, 23 Aug 2012 06:27:26 +0000 (23:27 -0700)]
Issue #15645: Ensure 2to3 grammar pickles are properly installed.
(Patch by Ronald Oussoren)

12 years agoSuggested a whatsnew item
Alexander Belopolsky [Thu, 23 Aug 2012 03:14:29 +0000 (23:14 -0400)]
Suggested a whatsnew item

12 years agoIssue #665194: Added a small optimization
Alexander Belopolsky [Thu, 23 Aug 2012 03:02:36 +0000 (23:02 -0400)]
Issue #665194: Added a small optimization

12 years agoAdded test for a bug fixed in issue #665194.
Alexander Belopolsky [Thu, 23 Aug 2012 02:06:37 +0000 (22:06 -0400)]
Added test for a bug fixed in issue #665194.

12 years ago#665194: fix variable name in exception code path.
R David Murray [Thu, 23 Aug 2012 01:52:31 +0000 (21:52 -0400)]
#665194: fix variable name in exception code path.

It was correct in the original patch and I foobared it
when I restructured part of the code.

12 years ago#665194: Update email.utils.localtime to use astimezone, and fix bug.
R David Murray [Thu, 23 Aug 2012 01:34:00 +0000 (21:34 -0400)]
#665194: Update email.utils.localtime to use astimezone, and fix bug.

The new code correctly handles historic changes in UTC offsets.
A test for this should follow.

Original patch by Alexander Belopolsky.

12 years agoUse zero bottom margin.
Stefan Krah [Wed, 22 Aug 2012 17:28:12 +0000 (19:28 +0200)]
Use zero bottom margin.

12 years agoIn the 32-bit build, dec_hash() raised InvalidOperation if the operand
Stefan Krah [Wed, 22 Aug 2012 17:11:50 +0000 (19:11 +0200)]
In the 32-bit build, dec_hash() raised InvalidOperation if the operand
had a coefficient with MAX_PREC=425000000 digits and a negative exponent.
Increasing the context limits above the official values fixes the issue
and is safe (in this case!).

12 years ago1) Use _mpd_basedivmod() regardless of the length of the dividend. This is
Stefan Krah [Wed, 22 Aug 2012 16:54:37 +0000 (18:54 +0200)]
1) Use _mpd_basedivmod() regardless of the length of the dividend. This is
   required for a corner case in dec_hash() in the following commit and also
   usually faster. dec_hash() needs some extra precision above MPD_MAX_PREC,
   and _mpd_base_ndivmod() is not audited for that.

2) Use _mpd_basemul() if the length of the smaller operand is less than
   or equal to 256. While this is technically an optimization, it is
   required for *testing* corner cases in dec_hash() in reasonable time.

12 years agoIssue #15766: Fix a crash in imp.load_dynamic() on PyUnicode_FromString() failure
Victor Stinner [Wed, 22 Aug 2012 15:45:52 +0000 (17:45 +0200)]
Issue #15766: Fix a crash in imp.load_dynamic() on PyUnicode_FromString() failure

12 years agoFix for issue 15716: interpreter could crash when PYTHONEXECUTABLE was set on Mac...
Ronald Oussoren [Wed, 22 Aug 2012 12:40:35 +0000 (14:40 +0200)]
Fix for issue 15716: interpreter could crash when PYTHONEXECUTABLE was set on Mac OS X.

This is due to an off-by-one error: the allocated buffer didn't have room for a NUL
character at the end of the mbstowcs result.

(merge with 3.2)

12 years agoFix for issue 15716: interpreter could crash when PYTHONEXECUTABLE was set on Mac...
Ronald Oussoren [Wed, 22 Aug 2012 12:24:14 +0000 (14:24 +0200)]
Fix for issue 15716: interpreter could crash when PYTHONEXECUTABLE was set on Mac OS X.

This is due to an off-by-one error: the allocated buffer didn't have room for a NUL
character at the end of the mbstowcs result.

12 years agoUpdate suspicious ignore file.
Ezio Melotti [Wed, 22 Aug 2012 05:38:04 +0000 (08:38 +0300)]
Update suspicious ignore file.

12 years agoIssue #15747: skip chflags UF_IMMUTABLE tests if EOPNOTSUPP is raised.
Trent Nelson [Tue, 21 Aug 2012 23:59:31 +0000 (23:59 +0000)]
Issue #15747: skip chflags UF_IMMUTABLE tests if EOPNOTSUPP is raised.

This is necessary for ZFS systems, which don't support UF_IMMUTABLE.

(Note: this commit is a manual merge of 78699:019a2390b014 as both
_test_chflags_regular_file and test_lchflags_symlink differ between
3.2 and default.)

12 years agoBlock 78699:019a2390b014, this needs to be manually merged.
Trent Nelson [Tue, 21 Aug 2012 23:48:55 +0000 (23:48 +0000)]
Block 78699:019a2390b014, this needs to be manually merged.

12 years agoIssue #15747: skip chflags UF_IMMUTABLE tests if EOPNOTSUPP is raised.
Trent Nelson [Tue, 21 Aug 2012 23:41:43 +0000 (23:41 +0000)]
Issue #15747: skip chflags UF_IMMUTABLE tests if EOPNOTSUPP is raised.

This is necessary for ZFS systems, which don't support UF_IMMUTABLE.

12 years agoFix typo in error handling for WaitForMultipleObjects()
Richard Oudkerk [Tue, 21 Aug 2012 13:54:22 +0000 (14:54 +0100)]
Fix typo in error handling for WaitForMultipleObjects()

12 years ago#15752: merge with 3.2.
Ezio Melotti [Tue, 21 Aug 2012 08:39:47 +0000 (11:39 +0300)]
#15752: merge with 3.2.

12 years ago#15752: s/assertRaisesRegexp/assertRaisesRegex/g
Ezio Melotti [Tue, 21 Aug 2012 08:38:41 +0000 (11:38 +0300)]
#15752: s/assertRaisesRegexp/assertRaisesRegex/g

12 years agoAddress most of Ezio's comments. str/bytes/bytearray docs still need consolidation
Nick Coghlan [Tue, 21 Aug 2012 07:42:52 +0000 (17:42 +1000)]
Address most of Ezio's comments. str/bytes/bytearray docs still need consolidation

12 years agoMerge 3.2.
Stefan Krah [Tue, 21 Aug 2012 06:25:41 +0000 (08:25 +0200)]
Merge 3.2.

12 years agoIssue #15736: Fix overflow in _PySequence_BytesToCharpArray().
Stefan Krah [Tue, 21 Aug 2012 06:16:09 +0000 (08:16 +0200)]
Issue #15736: Fix overflow in _PySequence_BytesToCharpArray().

12 years agoIssue #15285: Refactor connect timeout test in test_timeout.
Trent Nelson [Tue, 21 Aug 2012 01:40:21 +0000 (21:40 -0400)]
Issue #15285: Refactor connect timeout test in test_timeout.

12 years agoIssue #15285: Refactor connect timeout test in test_timeout.
Trent Nelson [Tue, 21 Aug 2012 01:22:59 +0000 (21:22 -0400)]
Issue #15285: Refactor connect timeout test in test_timeout.

12 years agoImprove the pyvenv entry
Antoine Pitrou [Mon, 20 Aug 2012 23:08:17 +0000 (01:08 +0200)]
Improve the pyvenv entry

12 years agoImproved summary section in whatsnew
Antoine Pitrou [Mon, 20 Aug 2012 22:53:06 +0000 (00:53 +0200)]
Improved summary section in whatsnew

12 years agoIssue #14954: Clarify the interaction of weak references and garbage collection.
Antoine Pitrou [Mon, 20 Aug 2012 22:07:35 +0000 (00:07 +0200)]
Issue #14954: Clarify the interaction of weak references and garbage collection.
Patch by Ethan Furman.

12 years agoIssue #14954: Clarify the interaction of weak references and garbage collection.
Antoine Pitrou [Mon, 20 Aug 2012 22:07:07 +0000 (00:07 +0200)]
Issue #14954: Clarify the interaction of weak references and garbage collection.
Patch by Ethan Furman.

12 years agoFix Issue 15743 - improve urllib tests by removing deprecated method usages. Patch...
Senthil Kumaran [Mon, 20 Aug 2012 20:43:59 +0000 (13:43 -0700)]
Fix Issue 15743 - improve urllib tests by removing deprecated method usages. Patch by Jeff Knupp.

12 years ago#15199: Fix JavaScript's default MIME type to application/javascript
Petri Lehtinen [Mon, 20 Aug 2012 18:30:03 +0000 (21:30 +0300)]
#15199: Fix JavaScript's default MIME type to application/javascript

12 years ago#15199: Fix JavaScript's default MIME type to application/javascript
Petri Lehtinen [Mon, 20 Aug 2012 18:05:56 +0000 (21:05 +0300)]
#15199: Fix JavaScript's default MIME type to application/javascript

12 years agoMerge #15742: clarify sqlite parameter substitution example.
R David Murray [Mon, 20 Aug 2012 18:14:46 +0000 (14:14 -0400)]
Merge #15742: clarify sqlite parameter substitution example.

Suggestion and patch by Mike Hoy.

12 years ago#15742: clarify sqlite parameter substitution example.
R David Murray [Mon, 20 Aug 2012 18:14:18 +0000 (14:14 -0400)]
#15742: clarify sqlite parameter substitution example.

Suggestion and patch by Mike Hoy.

12 years agoIssue #15726: Fix incorrect bounds checking in PyState_FindModule.
Antoine Pitrou [Mon, 20 Aug 2012 17:31:52 +0000 (19:31 +0200)]
Issue #15726: Fix incorrect bounds checking in PyState_FindModule.
Patch by Robin Schreiber.

12 years agoIssue #15726: Fix incorrect bounds checking in PyState_FindModule.
Antoine Pitrou [Mon, 20 Aug 2012 17:30:46 +0000 (19:30 +0200)]
Issue #15726: Fix incorrect bounds checking in PyState_FindModule.
Patch by Robin Schreiber.

12 years agoMerge 3.2.
Stefan Krah [Mon, 20 Aug 2012 15:20:46 +0000 (17:20 +0200)]
Merge 3.2.

12 years agoIssue #15741: Fix potential NULL dereference. Found by Coverity.
Stefan Krah [Mon, 20 Aug 2012 15:19:50 +0000 (17:19 +0200)]
Issue #15741: Fix potential NULL dereference. Found by Coverity.

12 years agoCheck return value of asdl_seq_new(). Found by Coverity.
Stefan Krah [Mon, 20 Aug 2012 14:07:38 +0000 (16:07 +0200)]
Check return value of asdl_seq_new(). Found by Coverity.

12 years agoIssue #12643: Respect sys.excepthook in code.InteractiveConsole
Nick Coghlan [Mon, 20 Aug 2012 13:02:28 +0000 (23:02 +1000)]
Issue #12643: Respect sys.excepthook in code.InteractiveConsole

12 years agoMerge 3.2.
Stefan Krah [Mon, 20 Aug 2012 12:42:59 +0000 (14:42 +0200)]
Merge 3.2.

12 years agoIssue #15738: Fix a missing NULL check in subprocess_fork_exec().
Stefan Krah [Mon, 20 Aug 2012 12:36:47 +0000 (14:36 +0200)]
Issue #15738: Fix a missing NULL check in subprocess_fork_exec().

12 years agoCloses #15737: Fix potential NULL dereference in zipimport.c.
Stefan Krah [Mon, 20 Aug 2012 12:14:49 +0000 (14:14 +0200)]
Closes #15737: Fix potential NULL dereference in zipimport.c.

12 years agoMerge 3.2.
Stefan Krah [Mon, 20 Aug 2012 09:13:58 +0000 (11:13 +0200)]
Merge 3.2.

12 years agoIssue #15732: Fix (constructed) crash in _PySequence_BytesToCharpArray().
Stefan Krah [Mon, 20 Aug 2012 09:04:24 +0000 (11:04 +0200)]
Issue #15732: Fix (constructed) crash in _PySequence_BytesToCharpArray().
Found by Coverity.

12 years agoBreak up the 'someos' docs classification based on a more user-focused scheme, includ...
Nick Coghlan [Mon, 20 Aug 2012 08:05:46 +0000 (18:05 +1000)]
Break up the 'someos' docs classification based on a more user-focused scheme, including creation of a separate 'Concurrent Execution' section

12 years agoClose #4966: revamp the sequence docs in order to better explain the state of modern...
Nick Coghlan [Mon, 20 Aug 2012 07:14:07 +0000 (17:14 +1000)]
Close #4966: revamp the sequence docs in order to better explain the state of modern Python

12 years agos/path importer/path based finder/ (because the path based finder is not an importer...
Nick Coghlan [Mon, 20 Aug 2012 03:49:08 +0000 (13:49 +1000)]
s/path importer/path based finder/ (because the path based finder is not an importer and the simpler 'path finder' is too ambiguous)

12 years agoClose #14846: Handle a sys.path entry going away
Nick Coghlan [Mon, 20 Aug 2012 03:18:15 +0000 (13:18 +1000)]
Close #14846: Handle a sys.path entry going away

12 years agoClose #14814: Avoid depending on struct by using newer features. Also use enumerate...
Nick Coghlan [Mon, 20 Aug 2012 00:19:12 +0000 (10:19 +1000)]
Close #14814: Avoid depending on struct by using newer features. Also use enumerate where appropriate (patch by Serhiy Storchaka). Declaring PEP 3144 final at this point - any further changes to code or docs can go in new issues.

12 years agoIssue #14814: document the Interface APIs and fix various problems with the string...
Nick Coghlan [Mon, 20 Aug 2012 00:04:26 +0000 (10:04 +1000)]
Issue #14814: document the Interface APIs and fix various problems with the string representations (initial patch by Eli Bendersky).

12 years agoMerge #13579: teach string.Formatter about 'a'.
R David Murray [Sun, 19 Aug 2012 21:45:40 +0000 (17:45 -0400)]
Merge #13579: teach string.Formatter about 'a'.

Patch by Francisco Martín Brugué.

12 years ago#13579: teach string.Formatter about 'a'.
R David Murray [Sun, 19 Aug 2012 21:26:34 +0000 (17:26 -0400)]
#13579: teach string.Formatter about 'a'.

Patch by Francisco Martín Brugué.

12 years agoIssue #15728: Fix leak in PyUnicode_AsWideCharString(). Found by Coverity.
Stefan Krah [Sun, 19 Aug 2012 19:52:43 +0000 (21:52 +0200)]
Issue #15728: Fix leak in PyUnicode_AsWideCharString(). Found by Coverity.

12 years agoIssue #15595: Fix subprocess.Popen(universal_newlines=True)
Andrew Svetlov [Sun, 19 Aug 2012 19:20:03 +0000 (22:20 +0300)]
Issue #15595: Fix subprocess.Popen(universal_newlines=True)
for certain locales (utf-16 and utf-32 family).

Patch by Chris Jerdonek.

12 years agoIssue #15595: Fix subprocess.Popen(universal_newlines=True)
Andrew Svetlov [Sun, 19 Aug 2012 19:13:41 +0000 (22:13 +0300)]
Issue #15595: Fix subprocess.Popen(universal_newlines=True)
for certain locales (utf-16 and utf-32 family).

Patch by Chris Jerdonek.

12 years agoUse Thread.is_alive() instead of old-style Thread.isAlive() in subprocess.
Andrew Svetlov [Sun, 19 Aug 2012 17:49:39 +0000 (20:49 +0300)]
Use Thread.is_alive() instead of old-style Thread.isAlive() in subprocess.

12 years agoFixes #14668. Mention Windows Path manipulation option in the installer.
Brian Curtin [Sun, 19 Aug 2012 16:22:20 +0000 (11:22 -0500)]
Fixes #14668. Mention Windows Path manipulation option in the installer.

12 years agoBrush subprocess tests a bit.
Andrew Svetlov [Sun, 19 Aug 2012 13:25:37 +0000 (16:25 +0300)]
Brush subprocess tests a bit.

12 years agoThe latest NumPy revision no longer segfaults here.
Stefan Krah [Sun, 19 Aug 2012 10:54:50 +0000 (12:54 +0200)]
The latest NumPy revision no longer segfaults here.

12 years agoFix out-of-date comment in test_memoryview.
Stefan Krah [Sun, 19 Aug 2012 10:50:24 +0000 (12:50 +0200)]
Fix out-of-date comment in test_memoryview.

12 years agoMereg 3.2.
Stefan Krah [Sun, 19 Aug 2012 09:22:28 +0000 (11:22 +0200)]
Mereg 3.2.

12 years agoCheck for NULL return value in PyStructSequence_NewType(). Found by Coverity.
Stefan Krah [Sun, 19 Aug 2012 09:20:41 +0000 (11:20 +0200)]
Check for NULL return value in PyStructSequence_NewType(). Found by Coverity.

12 years agoAllow redemo.py to be used from the command line like other demos.
Ned Deily [Sat, 18 Aug 2012 19:24:56 +0000 (12:24 -0700)]
Allow redemo.py to be used from the command line like other demos.

12 years agoAllow redemo.py to be used from the command line like other demos.
Ned Deily [Sat, 18 Aug 2012 19:21:17 +0000 (12:21 -0700)]
Allow redemo.py to be used from the command line like other demos.

12 years agoIssue #15615: Add some tests for the json module's handling of invalid input data.
Antoine Pitrou [Sat, 18 Aug 2012 18:48:17 +0000 (20:48 +0200)]
Issue #15615: Add some tests for the json module's handling of invalid input data.
Patch by Kushal Das.

12 years agoIssue #15615: Add some tests for the json module's handling of invalid input data.
Antoine Pitrou [Sat, 18 Aug 2012 18:46:23 +0000 (20:46 +0200)]
Issue #15615: Add some tests for the json module's handling of invalid input data.
Patch by Kushal Das.

12 years agoIssue #15477: Merge fix from 3.2
Mark Dickinson [Sat, 18 Aug 2012 11:26:15 +0000 (12:26 +0100)]
Issue #15477: Merge fix from 3.2

12 years agoIssue #15477: Add workaround for log1p(-0.0) on platforms where it's broken.
Mark Dickinson [Sat, 18 Aug 2012 11:24:30 +0000 (12:24 +0100)]
Issue #15477: Add workaround for log1p(-0.0) on platforms where it's broken.

12 years agoMerge 3.2: tutorial typo fix
Eli Bendersky [Sat, 18 Aug 2012 06:50:32 +0000 (09:50 +0300)]
Merge 3.2: tutorial typo fix

12 years agotutorial typo fix
Eli Bendersky [Sat, 18 Aug 2012 06:50:09 +0000 (09:50 +0300)]
tutorial typo fix

12 years agoIssue #15586: fix prompts in some documentation examples
Eli Bendersky [Sat, 18 Aug 2012 02:42:22 +0000 (05:42 +0300)]
Issue #15586: fix prompts in some documentation examples

12 years agoMerge #15636: add versionadded for decodebytes
R David Murray [Sat, 18 Aug 2012 00:55:54 +0000 (20:55 -0400)]
Merge #15636: add versionadded for decodebytes

12 years ago#15636: add versionadded for decodebytes
R David Murray [Sat, 18 Aug 2012 00:55:21 +0000 (20:55 -0400)]
#15636: add versionadded for decodebytes

12 years agoMerge #15355: Mention already-executing Exception in generator docs.
R David Murray [Sat, 18 Aug 2012 00:49:24 +0000 (20:49 -0400)]
Merge #15355: Mention already-executing Exception in generator docs.

Patch by Chris Jerdonek.

12 years ago#15355: Mention already-executing Exception in generator docs.
R David Murray [Sat, 18 Aug 2012 00:48:59 +0000 (20:48 -0400)]
#15355: Mention already-executing Exception in generator docs.

Patch by Chris Jerdonek.

12 years agoMerge #15694: reflow paragraph.
R David Murray [Sat, 18 Aug 2012 00:40:03 +0000 (20:40 -0400)]
Merge #15694: reflow paragraph.

12 years ago#15694: reflow paragraph.
R David Murray [Sat, 18 Aug 2012 00:39:21 +0000 (20:39 -0400)]
#15694: reflow paragraph.

12 years agoMerge #15694: Link discussion of file objects to glossary entry.
R David Murray [Sat, 18 Aug 2012 00:38:19 +0000 (20:38 -0400)]
Merge #15694: Link discussion of file objects to glossary entry.

This is analogous to the link for `flie objects` in the description of
'open' that exists in the 2.7 docs, and adds a similar link to the
io docs.

Patch by Chris Jerdonek.

12 years ago#15694: Link discussion of file objects to glossary entry.
R David Murray [Sat, 18 Aug 2012 00:33:54 +0000 (20:33 -0400)]
#15694: Link discussion of file objects to glossary entry.

This is analogous to the link for `flie objects` in the description of
'open' that exists in the 2.7 docs, and adds a similar link to the
io docs.

Patch by Chris Jerdonek.

12 years agoCloses #15632: regrtest.py: fix spurious refleaks due to various caches
Stefan Krah [Fri, 17 Aug 2012 21:09:48 +0000 (23:09 +0200)]
Closes #15632: regrtest.py: fix spurious refleaks due to various caches
filling up with random data.

12 years agoIssue #15678: Fix menu customization for IDLE started from OS X
Ned Deily [Fri, 17 Aug 2012 20:22:30 +0000 (13:22 -0700)]
Issue #15678: Fix menu customization for IDLE started from OS X
command lines.  It was broken as a side effect of the changes to
pythonw.c in b79d276041a8 for #15307.  Since sys.executable no
longer includes 'Python.app' in the path name, test for a
framework build instead.  This should give the previous behavior
in nearly all cases.  Whether the previous behavior is sensible
is left as an issue for later releases.  IDLE.app behavior was
not affected as it does its own manipulation of sys.executable.

12 years agoMerge with 3.2 #15660
Terry Jan Reedy [Fri, 17 Aug 2012 19:42:12 +0000 (15:42 -0400)]
Merge with 3.2 #15660

12 years agoIssue 15660: Clarify 0 prefix for width field in str.format doc.
Terry Jan Reedy [Fri, 17 Aug 2012 19:40:46 +0000 (15:40 -0400)]
Issue 15660: Clarify 0 prefix for width field in str.format doc.

12 years agoIssue #15640: Document importlib.abc.Finder as deprecated.
Brett Cannon [Fri, 17 Aug 2012 18:08:24 +0000 (14:08 -0400)]
Issue #15640: Document importlib.abc.Finder as deprecated.

The code for the class itself isn't deprecated for
backwards-compatibility reasons, but the class shouldn't be directly
inherited by anyone anymore as the API is no longer as widely valid as
it used to be.

12 years agoIssue #15715: Ignore failed imports triggered by the use of fromlist.
Brett Cannon [Fri, 17 Aug 2012 17:21:16 +0000 (13:21 -0400)]
Issue #15715: Ignore failed imports triggered by the use of fromlist.

When the fromlist argument is specified for __import__() and the
attribute doesn't already exist, an import is attempted. If that fails
(e.g. module doesn't exist), the ImportError will now be silenced (for
backwards-compatibility). This *does not* affect
``from ... import ...`` statements.

Thanks to Eric Snow for the patch and Simon Feltman for reporting the
regression.

12 years agoMerge
Richard Oudkerk [Fri, 17 Aug 2012 14:05:09 +0000 (15:05 +0100)]
Merge

12 years agoIssue #15412: Remove erroneous note about weakrefs
Richard Oudkerk [Fri, 17 Aug 2012 14:02:47 +0000 (15:02 +0100)]
Issue #15412: Remove erroneous note about weakrefs

12 years agoMerge
Richard Oudkerk [Fri, 17 Aug 2012 13:42:43 +0000 (14:42 +0100)]
Merge

12 years agoIssue #14501: Clarify that authentication keys are byte strings
Richard Oudkerk [Fri, 17 Aug 2012 13:39:18 +0000 (14:39 +0100)]
Issue #14501: Clarify that authentication keys are byte strings

12 years agoUpdate the getpeercert() example with a real-world cert showing non-trivial issuer...
Antoine Pitrou [Thu, 16 Aug 2012 20:18:37 +0000 (22:18 +0200)]
Update the getpeercert() example with a real-world cert showing non-trivial issuer, subject and subjectAltName.