]> granicus.if.org Git - python/log
python
12 years agoMerge.
Stefan Krah [Sat, 7 Apr 2012 14:10:04 +0000 (16:10 +0200)]
Merge.

12 years ago1) Fix comment.
Stefan Krah [Sat, 7 Apr 2012 13:57:59 +0000 (15:57 +0200)]
1) Fix comment.

2) Assert that the source operand is not special. Prevent resulting assert
   failure (harmless) by initializing flags before calling mpd_qshiftr_inplace.

3) Save a couple of instructions (mpd_zerocoeff already sets digits and len).
   Reorder initialization to match the order in the mpd_t struct.

12 years agoIssue #14310: inter-process socket duplication for windows
Kristján Valur Jónsson [Sat, 7 Apr 2012 11:23:31 +0000 (11:23 +0000)]
Issue #14310: inter-process socket duplication for windows

12 years agoDon't Py_DECREF NULL variable in io.IncrementalNewlineDecoder.
Ross Lagerwall [Sat, 7 Apr 2012 05:09:57 +0000 (07:09 +0200)]
Don't Py_DECREF NULL variable in io.IncrementalNewlineDecoder.

Found with Clang's Static Analyzer.

12 years agomerge 3.2
Benjamin Peterson [Fri, 6 Apr 2012 17:20:49 +0000 (13:20 -0400)]
merge 3.2

12 years agomerge heads
Benjamin Peterson [Fri, 6 Apr 2012 17:20:39 +0000 (13:20 -0400)]
merge heads

12 years agomerge heads
Benjamin Peterson [Fri, 6 Apr 2012 17:20:25 +0000 (13:20 -0400)]
merge heads

12 years agomerge 3.2
Benjamin Peterson [Fri, 6 Apr 2012 17:20:16 +0000 (13:20 -0400)]
merge 3.2

12 years agoport 3.1.5rc2 tag
Benjamin Peterson [Fri, 6 Apr 2012 17:20:01 +0000 (13:20 -0400)]
port 3.1.5rc2 tag

12 years agomerge 3.1
Benjamin Peterson [Fri, 6 Apr 2012 17:19:52 +0000 (13:19 -0400)]
merge 3.1

12 years agoAdded tag v3.1.5 for changeset 7395330e495e
Benjamin Peterson [Fri, 6 Apr 2012 17:17:30 +0000 (13:17 -0400)]
Added tag v3.1.5 for changeset 7395330e495e

12 years agobump to 3.1.5 final v3.1.5
Benjamin Peterson [Fri, 6 Apr 2012 17:17:25 +0000 (13:17 -0400)]
bump to 3.1.5 final

12 years agoIssue #14500: Fix importlib.test.import_.test_packages to clean up
Brett Cannon [Fri, 6 Apr 2012 17:13:08 +0000 (13:13 -0400)]
Issue #14500: Fix importlib.test.import_.test_packages to clean up
after itself properly.

12 years agomerge
Brett Cannon [Fri, 6 Apr 2012 16:54:57 +0000 (12:54 -0400)]
merge

12 years agoSet a time threshold in test_asyncore.capture_server so that tests don't
Kristján Valur Jónsson [Fri, 6 Apr 2012 14:37:45 +0000 (14:37 +0000)]
Set a time threshold in test_asyncore.capture_server so that tests don't
deadlock if the main thread fails before sending all the data.

12 years agoIssue #14502: it's RuntimeError on 3.3
Sandro Tosi [Fri, 6 Apr 2012 09:15:06 +0000 (11:15 +0200)]
Issue #14502: it's RuntimeError on 3.3

12 years agoMerge #14492: fix some bugs in Tools/scripts/pdeps.py.
R David Murray [Fri, 6 Apr 2012 03:01:13 +0000 (23:01 -0400)]
Merge #14492: fix some bugs in Tools/scripts/pdeps.py.

Initial patch by Popa Claudiu.

12 years ago#14492: fix some bugs in Tools/scripts/pdeps.py.
R David Murray [Fri, 6 Apr 2012 02:59:13 +0000 (22:59 -0400)]
#14492: fix some bugs in Tools/scripts/pdeps.py.

Initial patch by Popa Claudiu.

12 years agomerge 3.2
Benjamin Peterson [Fri, 6 Apr 2012 02:57:10 +0000 (22:57 -0400)]
merge 3.2

12 years agomerge heads
Sandro Tosi [Thu, 5 Apr 2012 20:59:41 +0000 (22:59 +0200)]
merge heads

12 years agoClose #14249: Use bit shifts instead of an union, it's more efficient.
Victor Stinner [Thu, 5 Apr 2012 20:54:49 +0000 (22:54 +0200)]
Close #14249: Use bit shifts instead of an union, it's more efficient.
Patch written by Serhiy Storchaka

12 years agoIssue #14502: merge with 3.2
Sandro Tosi [Thu, 5 Apr 2012 20:53:21 +0000 (22:53 +0200)]
Issue #14502: merge with 3.2

12 years agoIssue #14502: release() and unlocked lock generates a ThreadError
Sandro Tosi [Thu, 5 Apr 2012 20:51:54 +0000 (22:51 +0200)]
Issue #14502: release() and unlocked lock generates a ThreadError

12 years agoClarify that the purpose of computing all the miscellaneous collection types is to...
Raymond Hettinger [Thu, 5 Apr 2012 20:31:12 +0000 (13:31 -0700)]
Clarify that the purpose of computing all the miscellaneous collection types is to register them with the appropriate ABCs.

12 years agoIssue #8515: Set __file__ when run file in IDLE.
Andrew Svetlov [Thu, 5 Apr 2012 18:54:39 +0000 (21:54 +0300)]
Issue #8515: Set __file__ when run file in IDLE.

12 years agoMerge.
Stefan Krah [Thu, 5 Apr 2012 14:25:21 +0000 (16:25 +0200)]
Merge.

12 years agoWhitespace.
Stefan Krah [Thu, 5 Apr 2012 14:15:25 +0000 (16:15 +0200)]
Whitespace.

12 years agoReduce array size.
Stefan Krah [Thu, 5 Apr 2012 14:07:22 +0000 (16:07 +0200)]
Reduce array size.

12 years agoMerge from 3.2
Andrew Svetlov [Thu, 5 Apr 2012 14:04:28 +0000 (17:04 +0300)]
Merge from 3.2

12 years agoIssue #14496: Fix wrong name in idlelib/tabbedpages.py.
Andrew Svetlov [Thu, 5 Apr 2012 13:58:05 +0000 (16:58 +0300)]
Issue #14496: Fix wrong name in idlelib/tabbedpages.py.
  Patch by Popa Claudiu.

12 years agoFormatting.
Stefan Krah [Thu, 5 Apr 2012 13:48:59 +0000 (15:48 +0200)]
Formatting.

12 years agoAllow printing a leading '-' and the maximum number of exponent digits
Stefan Krah [Thu, 5 Apr 2012 13:46:19 +0000 (15:46 +0200)]
Allow printing a leading '-' and the maximum number of exponent digits
rather than raising RuntimeError (allocated space is sufficient for the
additional character).

12 years agoRaise InvalidOperation if exponents of zeros are clamped during exact
Stefan Krah [Thu, 5 Apr 2012 13:21:58 +0000 (15:21 +0200)]
Raise InvalidOperation if exponents of zeros are clamped during exact
conversion in the Decimal constructor. Exact here refers to the
representation and not to the value (clamping does not change the value).

12 years agoClose #14249: Use an union instead of a long to short pointer to avoid aliasing
Victor Stinner [Thu, 5 Apr 2012 11:44:34 +0000 (13:44 +0200)]
Close #14249: Use an union instead of a long to short pointer to avoid aliasing
issue. Speed up UTF-16 by 20%.

12 years agoIssue #3033: Add displayof parameter to tkinter font.
Andrew Svetlov [Thu, 5 Apr 2012 09:41:20 +0000 (12:41 +0300)]
Issue #3033: Add displayof parameter to tkinter font.
Patch by Guilherme Polo.

12 years agoReplace ThreadError by RuntimeError: the former is now an obsolete alias of the latter.
Georg Brandl [Thu, 5 Apr 2012 07:53:04 +0000 (09:53 +0200)]
Replace ThreadError by RuntimeError: the former is now an obsolete alias of the latter.

12 years agoReformat by replacing tabs with 4-spaces. Makes the code more PEP-7 compliant
Eli Bendersky [Thu, 5 Apr 2012 03:42:48 +0000 (06:42 +0300)]
Reformat by replacing tabs with 4-spaces. Makes the code more PEP-7 compliant
and gets rid of some gross formatting on tab=4-space-configured editors.

12 years agoA few tweaks to whatsnew/3.3 (fixes #14362)
Éric Araujo [Thu, 5 Apr 2012 03:01:01 +0000 (23:01 -0400)]
A few tweaks to whatsnew/3.3 (fixes #14362)

12 years agoReplace bootstrap imports with real C API calls.
Eli Bendersky [Thu, 5 Apr 2012 02:40:58 +0000 (05:40 +0300)]
Replace bootstrap imports with real C API calls.

12 years agoMerge: test_tools fix: don't import analyze_dxp if no _thread module
R David Murray [Thu, 5 Apr 2012 02:38:26 +0000 (22:38 -0400)]
Merge: test_tools fix: don't import analyze_dxp if no _thread module

12 years agotest_tools fix: don't import analyze_dxp if no _thread module
R David Murray [Thu, 5 Apr 2012 02:37:50 +0000 (22:37 -0400)]
test_tools fix: don't import analyze_dxp if no _thread module

12 years agoMerge #14490, #14491: add 'sundry'-style import tests for Tools/scripts.
R David Murray [Thu, 5 Apr 2012 01:29:03 +0000 (21:29 -0400)]
Merge #14490, #14491: add 'sundry'-style import tests for Tools/scripts.

This patch changes a few of the scripts to have __name__=='__main__'
clauses so that they are importable without running.  Also fixes the
syntax errors revealed by the tests.

12 years ago#14490, #14491: add 'sundry'-style import tests for Tools/scripts.
R David Murray [Thu, 5 Apr 2012 01:28:14 +0000 (21:28 -0400)]
#14490, #14491: add 'sundry'-style import tests for Tools/scripts.

This patch changes a few of the scripts to have __name__=='__main__'
clauses so that they are importable without running.  Also fixes the
syntax errors revealed by the tests.

12 years agoRename _PyIter_GetBuiltin to _PyObject_GetBuiltin, and do not include it in the stabl...
Antoine Pitrou [Wed, 4 Apr 2012 22:04:20 +0000 (00:04 +0200)]
Rename _PyIter_GetBuiltin to _PyObject_GetBuiltin, and do not include it in the stable ABI.

12 years agoFix test_site from modifying sysconfig._CONFIG_VARS.
Brett Cannon [Wed, 4 Apr 2012 21:31:16 +0000 (17:31 -0400)]
Fix test_site from modifying sysconfig._CONFIG_VARS.

12 years agomerge with 3.2
Georg Brandl [Wed, 4 Apr 2012 18:17:27 +0000 (20:17 +0200)]
merge with 3.2

12 years agoCloses #14495: fix typo.
Georg Brandl [Wed, 4 Apr 2012 18:17:06 +0000 (20:17 +0200)]
Closes #14495: fix typo.

12 years agoFix Windows compilation errors
Eli Bendersky [Wed, 4 Apr 2012 12:55:07 +0000 (15:55 +0300)]
Fix Windows compilation errors

12 years ago- Issue #14493: Use gvfs-open/xdg-open in Lib/webbrowser.py.
Matthias Klose [Wed, 4 Apr 2012 12:19:04 +0000 (14:19 +0200)]
- Issue #14493: Use gvfs-open/xdg-open in Lib/webbrowser.py.

12 years agoFollowup for issue #14321, remove references to Parser/pgen.stamp
Matthias Klose [Wed, 4 Apr 2012 11:20:55 +0000 (13:20 +0200)]
Followup for issue #14321, remove references to Parser/pgen.stamp

12 years agoFixes and enhancements to _elementtree:
Eli Bendersky [Tue, 3 Apr 2012 19:02:37 +0000 (22:02 +0300)]
Fixes and enhancements to _elementtree:

* Fixed refleak problems when GC collection is run (see messages in
  issue #14065)
* Added weakref support to Element objects

12 years agoIssue #14482: Raise a ValueError, not a NameError, when trying to create
Antoine Pitrou [Tue, 3 Apr 2012 18:13:45 +0000 (20:13 +0200)]
Issue #14482: Raise a ValueError, not a NameError, when trying to create
a multiprocessing Client or Listener with an AF_UNIX type address under
Windows.  Patch by Popa Claudiu.

12 years agoIssue #14482: Raise a ValueError, not a NameError, when trying to create
Antoine Pitrou [Tue, 3 Apr 2012 18:12:23 +0000 (20:12 +0200)]
Issue #14482: Raise a ValueError, not a NameError, when trying to create
a multiprocessing Client or Listener with an AF_UNIX type address under
Windows.  Patch by Popa Claudiu.

12 years agoMerge #14481: fix formatting of example in subprocess docs.
R David Murray [Tue, 3 Apr 2012 12:47:14 +0000 (08:47 -0400)]
Merge #14481: fix formatting of example in subprocess docs.

12 years ago#14481: fix formatting of example in subprocess docs.
R David Murray [Tue, 3 Apr 2012 12:46:48 +0000 (08:46 -0400)]
#14481: fix formatting of example in subprocess docs.

12 years agoIssue #14288: Modify Misc/NEWS
Kristján Valur Jónsson [Tue, 3 Apr 2012 10:59:26 +0000 (10:59 +0000)]
Issue #14288: Modify Misc/NEWS

12 years agoIssue #14288: Serialization support for builtin iterators.
Kristján Valur Jónsson [Tue, 3 Apr 2012 10:49:41 +0000 (10:49 +0000)]
Issue #14288: Serialization support for builtin iterators.

12 years agoMove ChainMap versionadded to be less ambiguous.
Georg Brandl [Tue, 3 Apr 2012 07:16:46 +0000 (09:16 +0200)]
Move ChainMap versionadded to be less ambiguous.

12 years agoIssue #802310: Generate always unique tkinter font names if not directly passed
Andrew Svetlov [Tue, 3 Apr 2012 06:48:07 +0000 (09:48 +0300)]
Issue #802310: Generate always unique tkinter font names if not directly passed

12 years agoreformat code to follow PEP8
Andrew Svetlov [Tue, 3 Apr 2012 06:39:47 +0000 (09:39 +0300)]
reformat code to follow PEP8

12 years agoadd XXX
Benjamin Peterson [Tue, 3 Apr 2012 04:52:18 +0000 (00:52 -0400)]
add XXX

12 years agomerge heads
Benjamin Peterson [Tue, 3 Apr 2012 04:35:44 +0000 (00:35 -0400)]
merge heads

12 years agomerge 3.2
Benjamin Peterson [Tue, 3 Apr 2012 04:35:36 +0000 (00:35 -0400)]
merge 3.2

12 years agofix parse_syntax_error to clean up its resources
Benjamin Peterson [Tue, 3 Apr 2012 04:30:38 +0000 (00:30 -0400)]
fix parse_syntax_error to clean up its resources

12 years agomerge
Brett Cannon [Tue, 3 Apr 2012 00:34:20 +0000 (20:34 -0400)]
merge

12 years agoIf a module injects something into sys.modules as a side-effect of
Brett Cannon [Tue, 3 Apr 2012 00:33:56 +0000 (20:33 -0400)]
If a module injects something into sys.modules as a side-effect of
importation, then respect that injection.

Discovered thanks to Lib/xml/parsers/expat.py injecting
xml.parsers.expat.errors and etree now importing that directly as a
module.

12 years agoExpose clock_settime() as time.clock_settime()
Victor Stinner [Mon, 2 Apr 2012 22:45:07 +0000 (00:45 +0200)]
Expose clock_settime() as time.clock_settime()

12 years agoAdd time.CLOCK_HIGHRES constant, needed on Solaris
Victor Stinner [Mon, 2 Apr 2012 22:31:17 +0000 (00:31 +0200)]
Add time.CLOCK_HIGHRES constant, needed on Solaris

12 years agoMerge.
Stefan Krah [Mon, 2 Apr 2012 18:59:15 +0000 (20:59 +0200)]
Merge.

12 years agoImprove comments.
Stefan Krah [Mon, 2 Apr 2012 18:51:08 +0000 (20:51 +0200)]
Improve comments.

12 years agomerge 3.2
Benjamin Peterson [Mon, 2 Apr 2012 18:25:55 +0000 (14:25 -0400)]
merge 3.2

12 years agoremove uneeded line
Benjamin Peterson [Mon, 2 Apr 2012 18:22:50 +0000 (14:22 -0400)]
remove uneeded line

12 years agoTesting the implicit initialization of the thread local context on first
Stefan Krah [Mon, 2 Apr 2012 17:10:20 +0000 (19:10 +0200)]
Testing the implicit initialization of the thread local context on first
access fails (expectedly) if other modules have already used decimal. The
only option is to remove the test.

12 years agoGuard an LLTRACE variable to silence an unused variable warning.
Brett Cannon [Mon, 2 Apr 2012 16:17:59 +0000 (12:17 -0400)]
Guard an LLTRACE variable to silence an unused variable warning.

12 years agoMerge with 3.2 (Issue #14471)
Kristján Valur Jónsson [Mon, 2 Apr 2012 15:41:06 +0000 (15:41 +0000)]
Merge with 3.2 (Issue #14471)

12 years agomerge 3.2
Benjamin Peterson [Mon, 2 Apr 2012 15:28:49 +0000 (11:28 -0400)]
merge 3.2

12 years agoIssue #14471: Fix a possible buffer overrun in the winreg module.
Kristján Valur Jónsson [Mon, 2 Apr 2012 15:23:29 +0000 (15:23 +0000)]
Issue #14471: Fix a possible buffer overrun in the winreg module.

12 years agoprevent writing to stderr from messing up the exception state (closes #14474)
Benjamin Peterson [Mon, 2 Apr 2012 15:15:17 +0000 (11:15 -0400)]
prevent writing to stderr from messing up the exception state (closes #14474)

12 years agoWhitespace.
Stefan Krah [Mon, 2 Apr 2012 13:10:36 +0000 (15:10 +0200)]
Whitespace.

12 years agoMerge.
Stefan Krah [Mon, 2 Apr 2012 13:04:14 +0000 (15:04 +0200)]
Merge.

12 years agoClear the context flags if a context is initialized from the DefaultContext.
Stefan Krah [Mon, 2 Apr 2012 13:02:21 +0000 (15:02 +0200)]
Clear the context flags if a context is initialized from the DefaultContext.

12 years agoMerge.
Georg Brandl [Mon, 2 Apr 2012 05:52:29 +0000 (07:52 +0200)]
Merge.

12 years agoPost-release update.
Georg Brandl [Mon, 2 Apr 2012 05:51:45 +0000 (07:51 +0200)]
Post-release update.

12 years agomerge 3.2
Benjamin Peterson [Sun, 1 Apr 2012 22:51:37 +0000 (18:51 -0400)]
merge 3.2

12 years agoadjust formatting
Benjamin Peterson [Sun, 1 Apr 2012 22:49:54 +0000 (18:49 -0400)]
adjust formatting

12 years agoremove extraneous condition
Benjamin Peterson [Sun, 1 Apr 2012 22:48:40 +0000 (18:48 -0400)]
remove extraneous condition

12 years agomerge heads
Benjamin Peterson [Sun, 1 Apr 2012 22:48:11 +0000 (18:48 -0400)]
merge heads

12 years agobe consistent with rest of function
Benjamin Peterson [Sun, 1 Apr 2012 22:48:02 +0000 (18:48 -0400)]
be consistent with rest of function

12 years agoFix Overflow exception in the bignum factorial benchmark that is due to
Stefan Krah [Sun, 1 Apr 2012 21:25:34 +0000 (23:25 +0200)]
Fix Overflow exception in the bignum factorial benchmark that is due to
the recent change of the default value for context.Emax.

12 years agoAdd _decimal and _testbuffer modules.
Martin v. Löwis [Sun, 1 Apr 2012 17:55:48 +0000 (19:55 +0200)]
Add _decimal and _testbuffer modules.

12 years agoAdd MASM define to PGI and PGO builds
Martin v. Löwis [Sun, 1 Apr 2012 17:54:33 +0000 (19:54 +0200)]
Add MASM define to PGI and PGO builds

12 years agoIssue #14151: Raise a ValueError, not a NameError, when trying to create
Antoine Pitrou [Sun, 1 Apr 2012 15:25:49 +0000 (17:25 +0200)]
Issue #14151: Raise a ValueError, not a NameError, when trying to create
a multiprocessing Client or Listener with an AF_PIPE type address under
non-Windows platforms.  Patch by Popa Claudiu.

12 years agoIssue #14151: Raise a ValueError, not a NameError, when trying to create
Antoine Pitrou [Sun, 1 Apr 2012 15:19:09 +0000 (17:19 +0200)]
Issue #14151: Raise a ValueError, not a NameError, when trying to create
a multiprocessing Client or Listener with an AF_PIPE type address under
non-Windows platforms.  Patch by Popa Claudiu.

12 years agoRemoving the test of Element that causes ref-leak in GC (issue #14464).
Eli Bendersky [Sun, 1 Apr 2012 14:40:17 +0000 (17:40 +0300)]
Removing the test of Element that causes ref-leak in GC (issue #14464).

I will now continue investigating the cause of the ref-leak, but I wanted
to remove the test so that the refcount test in the buildbots could be clean.
The whole change (adding GC to Element) is not reverted because it improved
the situation (GC works for immediate cycles) and didn't cause regressions
(the test is new and was added together with the fix).

12 years agoIssue #13019: Fix potential reference leaks in bytearray.extend().
Antoine Pitrou [Sun, 1 Apr 2012 14:08:11 +0000 (16:08 +0200)]
Issue #13019: Fix potential reference leaks in bytearray.extend().
Patch by Suman Saha.

12 years agoIssue #13019: Fix potential reference leaks in bytearray.extend().
Antoine Pitrou [Sun, 1 Apr 2012 14:05:46 +0000 (16:05 +0200)]
Issue #13019: Fix potential reference leaks in bytearray.extend().
Patch by Suman Saha.

12 years agoAdded tag v3.3.0a2 for changeset 2f69db52d6de
Georg Brandl [Sun, 1 Apr 2012 11:49:38 +0000 (13:49 +0200)]
Added tag v3.3.0a2 for changeset 2f69db52d6de

12 years agoBump to 3.3.0a2. v3.3.0a2
Georg Brandl [Sun, 1 Apr 2012 11:49:21 +0000 (13:49 +0200)]
Bump to 3.3.0a2.

12 years agoFix markup errors found by "make suspicious".
Georg Brandl [Sun, 1 Apr 2012 11:48:26 +0000 (13:48 +0200)]
Fix markup errors found by "make suspicious".

12 years agoUpdate pydoc topics.
Georg Brandl [Sun, 1 Apr 2012 11:46:44 +0000 (13:46 +0200)]
Update pydoc topics.