]> granicus.if.org Git - python/log
python
12 years agoMerge #14399: corrected news item
R David Murray [Sat, 14 Apr 2012 01:27:19 +0000 (21:27 -0400)]
Merge #14399: corrected news item

12 years ago#14399: corrected news item
R David Murray [Sat, 14 Apr 2012 01:24:27 +0000 (21:24 -0400)]
#14399: corrected news item

12 years agomerge 3.2
Benjamin Peterson [Fri, 13 Apr 2012 22:06:42 +0000 (18:06 -0400)]
merge 3.2

12 years agomove outside WITH_THREAD conditional
Benjamin Peterson [Fri, 13 Apr 2012 22:06:36 +0000 (18:06 -0400)]
move outside WITH_THREAD conditional

12 years agoFix clock_gettime/getres/settime: PyArg_ParseTuple() expects an int
Victor Stinner [Fri, 13 Apr 2012 21:44:05 +0000 (23:44 +0200)]
Fix clock_gettime/getres/settime: PyArg_ParseTuple() expects an int

Only use a single #ifdef for the 3 functions.

12 years agoMinor docstring / docs corrections for unittest.mock
Michael Foord [Fri, 13 Apr 2012 19:51:20 +0000 (20:51 +0100)]
Minor docstring / docs corrections for unittest.mock

12 years agoMake unittest.mock.create_autospec resilient against AttributeError on original object
Michael Foord [Fri, 13 Apr 2012 16:39:16 +0000 (17:39 +0100)]
Make unittest.mock.create_autospec resilient against AttributeError on original object

12 years agomerge 3.2
Benjamin Peterson [Fri, 13 Apr 2012 15:59:52 +0000 (11:59 -0400)]
merge 3.2

12 years agotake linkage def outside of WITH_THREAD conditional (closes #14569)
Benjamin Peterson [Fri, 13 Apr 2012 15:58:27 +0000 (11:58 -0400)]
take linkage def outside of WITH_THREAD conditional (closes #14569)

12 years agounittest.mock.PropertyMock return value and attributes are now standard MagicMocks
Michael Foord [Fri, 13 Apr 2012 15:57:22 +0000 (16:57 +0100)]
unittest.mock.PropertyMock return value and attributes are now standard MagicMocks

12 years agoput PyImportErrorObject with its brothers
Benjamin Peterson [Fri, 13 Apr 2012 01:50:35 +0000 (21:50 -0400)]
put PyImportErrorObject with its brothers

12 years agoMerge
Brett Cannon [Fri, 13 Apr 2012 01:13:08 +0000 (21:13 -0400)]
Merge

12 years agoNEWS entry about importlib and ImportError's new attributes.
Brett Cannon [Fri, 13 Apr 2012 01:12:37 +0000 (21:12 -0400)]
NEWS entry about importlib and ImportError's new attributes.

12 years agoHave importlib take advantage of ImportError's new 'name' and 'path'
Brett Cannon [Fri, 13 Apr 2012 01:09:01 +0000 (21:09 -0400)]
Have importlib take advantage of ImportError's new 'name' and 'path'
attributes.

12 years agomerge heads
Amaury Forgeot d'Arc [Fri, 13 Apr 2012 00:29:54 +0000 (02:29 +0200)]
merge heads

12 years agomerge heads
Amaury Forgeot d'Arc [Fri, 13 Apr 2012 00:27:37 +0000 (02:27 +0200)]
merge heads

12 years agoMerge heads
Amaury Forgeot d'Arc [Fri, 13 Apr 2012 00:24:56 +0000 (02:24 +0200)]
Merge heads

12 years agoIssue #1559549: Add 'name' and 'path' attributes to ImportError.
Brett Cannon [Fri, 13 Apr 2012 00:24:54 +0000 (20:24 -0400)]
Issue #1559549: Add 'name' and 'path' attributes to ImportError.
Currently import does not use these attributes as they are planned
for use by importlib (which will be another commit).

Thanks to Filip Gruszczyński for the initial patch and Brian Curtin
for refining it.

12 years agohg merge 3.2
Amaury Forgeot d'Arc [Fri, 13 Apr 2012 00:23:59 +0000 (02:23 +0200)]
hg merge 3.2

12 years agoIssue14559: Fix build files old Microft compilers.
Amaury Forgeot d'Arc [Fri, 13 Apr 2012 00:14:28 +0000 (02:14 +0200)]
Issue14559: Fix build files old Microft compilers.
With VS8.0 at least Python compiles and works correctly.

12 years agoMerge #14399: zipfile now correctly handles comments added to empty zipfiles.
R David Murray [Thu, 12 Apr 2012 22:44:58 +0000 (18:44 -0400)]
Merge #14399: zipfile now correctly handles comments added to empty zipfiles.

Patch by Serhiy Storchaka.

This also moves the TypeError that results from trying to use a unicode
comment from the 'close' step to the point at which the comment is added to
the zipfile.

12 years ago#14399: zipfile now correctly handles comments added to empty zipfiles.
R David Murray [Thu, 12 Apr 2012 22:44:42 +0000 (18:44 -0400)]
#14399: zipfile now correctly handles comments added to empty zipfiles.

Patch by Serhiy Storchaka.

This also moves the TypeError that results from trying to use a unicode
comment from the 'close' step to the point at which the comment is added to
the zipfile.

12 years agoDoc: sort time.CLOCK_xxx constants
Victor Stinner [Thu, 12 Apr 2012 19:40:14 +0000 (21:40 +0200)]
Doc: sort time.CLOCK_xxx constants

12 years agoNull-merge 3.2 branch.
Georg Brandl [Thu, 12 Apr 2012 17:41:50 +0000 (19:41 +0200)]
Null-merge 3.2 branch.

12 years ago3.2 sidebar: link to 3.3, not 3.1
Georg Brandl [Thu, 12 Apr 2012 17:41:10 +0000 (19:41 +0200)]
3.2 sidebar: link to 3.3, not 3.1

12 years agoIssue #14557: Fix extensions build on HP-UX. Patch by Adi Roiban.
Charles-François Natali [Thu, 12 Apr 2012 17:09:00 +0000 (19:09 +0200)]
Issue #14557: Fix extensions build on HP-UX. Patch by Adi Roiban.

12 years agoIssue #14557: Fix extensions build on HP-UX. Patch by Adi Roiban.
Charles-François Natali [Thu, 12 Apr 2012 17:07:25 +0000 (19:07 +0200)]
Issue #14557: Fix extensions build on HP-UX. Patch by Adi Roiban.

12 years agocode improvement. 'as cm' not required when not used. Review comment by Georg Brandl
Senthil Kumaran [Thu, 12 Apr 2012 11:28:07 +0000 (19:28 +0800)]
code improvement. 'as cm' not required when not used. Review comment by Georg Brandl

12 years agoMerge doc fixes #14553 and #14552.
R David Murray [Thu, 12 Apr 2012 00:15:10 +0000 (20:15 -0400)]
Merge doc fixes #14553 and #14552.

12 years ago#14553: fix word order.
R David Murray [Thu, 12 Apr 2012 00:13:25 +0000 (20:13 -0400)]
#14553: fix word order.

Patch by Tshepang Lekhonkhobe.

12 years ago#14552: remove redundant wording in 'test' docs.
R David Murray [Thu, 12 Apr 2012 00:11:53 +0000 (20:11 -0400)]
#14552: remove redundant wording in 'test' docs.

Original patch by Tshepang Lekhonkhobe.

12 years agomerge 3.2 (null)
Benjamin Peterson [Wed, 11 Apr 2012 20:49:40 +0000 (16:49 -0400)]
merge 3.2 (null)

12 years agomerge 3.1 (null)
Benjamin Peterson [Wed, 11 Apr 2012 20:48:30 +0000 (16:48 -0400)]
merge 3.1 (null)

12 years agoafter 3.1.5
Benjamin Peterson [Wed, 11 Apr 2012 20:46:54 +0000 (16:46 -0400)]
after 3.1.5

12 years ago#14508: make gprof2html script runnable under python3
R David Murray [Wed, 11 Apr 2012 19:17:37 +0000 (15:17 -0400)]
#14508: make gprof2html script runnable under python3

Not that I haven't tested it to make sure it works, just that it
can run against an empty source file.

Initial patch by Popa.Claudiu.

Here we also add a test (which uses mock, which is why I didn't
check it in on 3.2).

12 years ago#14508: make gprof2html script runnable under python3
R David Murray [Wed, 11 Apr 2012 19:16:38 +0000 (15:16 -0400)]
#14508: make gprof2html script runnable under python3

Not that I haven't tested it to make sure it works, just that it
can run against an empty source file.

Initial patch by Popa.Claudiu.

12 years agomerge to default - Issue 10484 - Incorporate improvements to CGI module - Suggested...
Senthil Kumaran [Wed, 11 Apr 2012 18:37:11 +0000 (02:37 +0800)]
merge to default - Issue 10484 - Incorporate improvements to CGI module - Suggested by Glenn Linderman. Refactor code and tests

12 years ago3.2 - Issue 10484 - Incorporate improvements to CGI module - Suggested by Glenn Linde...
Senthil Kumaran [Wed, 11 Apr 2012 18:34:32 +0000 (02:34 +0800)]
3.2 - Issue 10484 - Incorporate improvements to CGI module - Suggested by Glenn Linderman. Refactor code and tests

12 years agoImprove the threading.Condition docs.
Antoine Pitrou [Wed, 11 Apr 2012 17:38:27 +0000 (19:38 +0200)]
Improve the threading.Condition docs.

12 years agoImprove the threading.Condition docs.
Antoine Pitrou [Wed, 11 Apr 2012 17:37:56 +0000 (19:37 +0200)]
Improve the threading.Condition docs.

12 years ago#14545: merge 3.2
Georg Brandl [Wed, 11 Apr 2012 16:36:58 +0000 (18:36 +0200)]
#14545: merge 3.2

12 years agoMerge 3.2
Georg Brandl [Wed, 11 Apr 2012 16:36:46 +0000 (18:36 +0200)]
Merge 3.2

12 years agoCloses #14545: make clearer what was added.
Georg Brandl [Wed, 11 Apr 2012 16:33:17 +0000 (18:33 +0200)]
Closes #14545: make clearer what was added.

12 years agouse assertWarns instead of check_warnings - Issue14341
Senthil Kumaran [Wed, 11 Apr 2012 15:05:49 +0000 (23:05 +0800)]
use assertWarns instead of check_warnings - Issue14341

12 years agoMerge 3.2.3 release clone.
Georg Brandl [Wed, 11 Apr 2012 10:46:24 +0000 (12:46 +0200)]
Merge 3.2.3 release clone.

12 years agoPost-release update.
Georg Brandl [Wed, 11 Apr 2012 10:45:12 +0000 (12:45 +0200)]
Post-release update.

12 years agoMake the trace module ignore modules whose names start with "<" and
Brett Cannon [Wed, 11 Apr 2012 01:05:53 +0000 (21:05 -0400)]
Make the trace module ignore modules whose names start with "<" and
end with ">", i.e. follow convention.

12 years ago1) Remove claim of an input invariant that is only true for static mpd_t.
Stefan Krah [Tue, 10 Apr 2012 21:11:54 +0000 (23:11 +0200)]
1) Remove claim of an input invariant that is only true for static mpd_t.
   Resizing is used _inside_ libmpdec functions, and it is permitted to
   change x->alloc several times while setting x->len at the end of the
   function. Therefore, for dynamic mpd_t x->alloc can _temporarily_ drop
   below x->len. Of course the final result always has x->len <= x->alloc.

   For static mpd_t this cannot happen, since resizing to a smaller
   coefficient is a no-op.

2) Remove micro optimization in mpd_switch_to_dyn(): Previously only the
   valid initialized part of the existing coefficient up to x->len was
   copied to the new dynamic memory area. Now copying does the same as
   realloc() and the entire old memory area is copied.

   The rationale for this change is that it is no longer needed to memorize
   the explanation given in 1).

12 years agoFix stale comment.
Stefan Krah [Tue, 10 Apr 2012 21:08:29 +0000 (23:08 +0200)]
Fix stale comment.

12 years agoMerge
Antoine Pitrou [Tue, 10 Apr 2012 20:51:26 +0000 (22:51 +0200)]
Merge

12 years agoSmall improvements to the threading docs: better publicize support for the with state...
Antoine Pitrou [Tue, 10 Apr 2012 20:47:55 +0000 (22:47 +0200)]
Small improvements to the threading docs: better publicize support for the with statement.

12 years agoFix some markup in the threading docs.
Antoine Pitrou [Tue, 10 Apr 2012 20:35:53 +0000 (22:35 +0200)]
Fix some markup in the threading docs.

12 years agoIssue #8799: Fix and improve the threading.Condition documentation.
Antoine Pitrou [Tue, 10 Apr 2012 20:24:05 +0000 (22:24 +0200)]
Issue #8799: Fix and improve the threading.Condition documentation.

12 years agomerge heads
Senthil Kumaran [Tue, 10 Apr 2012 19:18:25 +0000 (03:18 +0800)]
merge heads

12 years agomerge heads
Senthil Kumaran [Tue, 10 Apr 2012 19:17:44 +0000 (03:17 +0800)]
merge heads

12 years agomerge - fix the incorrect changes made for PATH_INFO value - Issue10484
Senthil Kumaran [Tue, 10 Apr 2012 19:16:16 +0000 (03:16 +0800)]
merge - fix the incorrect changes made for PATH_INFO value - Issue10484

12 years ago3.2- fix the incorrect changes made for PATH_INFO value - Issue10484
Senthil Kumaran [Tue, 10 Apr 2012 19:15:28 +0000 (03:15 +0800)]
3.2- fix the incorrect changes made for PATH_INFO value - Issue10484

12 years agoMerged updates to logging reference and HOWTO from 3.2.
Vinay Sajip [Tue, 10 Apr 2012 19:00:43 +0000 (20:00 +0100)]
Merged updates to logging reference and HOWTO from 3.2.

12 years agoUpdated logging reference and HOWTO.
Vinay Sajip [Tue, 10 Apr 2012 18:59:50 +0000 (19:59 +0100)]
Updated logging reference and HOWTO.

12 years agoIssue #14541: Merged addition of test/sndhdrdata to Makefile.pre.in from 3.2.
Vinay Sajip [Tue, 10 Apr 2012 17:44:41 +0000 (18:44 +0100)]
Issue #14541: Merged addition of test/sndhdrdata to Makefile.pre.in from 3.2.

12 years agoIssue #14541: Added test/sndhdrdata to Makefile.pre.in for installation.
Vinay Sajip [Tue, 10 Apr 2012 17:41:48 +0000 (18:41 +0100)]
Issue #14541: Added test/sndhdrdata to Makefile.pre.in for installation.

12 years agoAdded tag v3.2.3 for changeset 3d0686d90f55
Georg Brandl [Tue, 10 Apr 2012 17:30:26 +0000 (19:30 +0200)]
Added tag v3.2.3 for changeset 3d0686d90f55

12 years agoMerge. v3.2.3
Georg Brandl [Tue, 10 Apr 2012 17:30:22 +0000 (19:30 +0200)]
Merge.

12 years agoBump to 3.2.3 final.
Georg Brandl [Tue, 10 Apr 2012 17:28:09 +0000 (19:28 +0200)]
Bump to 3.2.3 final.

12 years agoNews entry for f91ecbc8bafc.
Georg Brandl [Tue, 10 Apr 2012 17:27:27 +0000 (19:27 +0200)]
News entry for f91ecbc8bafc.

12 years agoIssue #14478: Cache the hash of a Decimal in the C version.
Stefan Krah [Tue, 10 Apr 2012 14:27:58 +0000 (16:27 +0200)]
Issue #14478: Cache the hash of a Decimal in the C version.

12 years agomerge - minor .rst fix
Senthil Kumaran [Tue, 10 Apr 2012 11:51:58 +0000 (19:51 +0800)]
merge - minor .rst fix

12 years agominor .rst fix
Senthil Kumaran [Tue, 10 Apr 2012 11:51:00 +0000 (19:51 +0800)]
minor .rst fix

12 years agoMerge.
Stefan Krah [Mon, 9 Apr 2012 19:31:06 +0000 (21:31 +0200)]
Merge.

12 years agoIssue #14520: Add __sizeof__() method to the Decimal object.
Stefan Krah [Mon, 9 Apr 2012 19:27:20 +0000 (21:27 +0200)]
Issue #14520: Add __sizeof__() method to the Decimal object.

12 years agomerge 3.2
Benjamin Peterson [Mon, 9 Apr 2012 19:05:47 +0000 (15:05 -0400)]
merge 3.2

12 years agomerge heads
Benjamin Peterson [Mon, 9 Apr 2012 19:05:23 +0000 (15:05 -0400)]
merge heads

12 years agomerge heads
Benjamin Peterson [Mon, 9 Apr 2012 19:05:13 +0000 (15:05 -0400)]
merge heads

12 years agomerge 3.2 (#14509)
Benjamin Peterson [Mon, 9 Apr 2012 19:04:39 +0000 (15:04 -0400)]
merge 3.2 (#14509)

12 years agomerge 3.1 (#14509)
Benjamin Peterson [Mon, 9 Apr 2012 19:01:02 +0000 (15:01 -0400)]
merge 3.1 (#14509)

12 years agofix build without Py_DEBUG and DNDEBUG (closes #14509)
Benjamin Peterson [Mon, 9 Apr 2012 18:53:07 +0000 (14:53 -0400)]
fix build without Py_DEBUG and DNDEBUG (closes #14509)

12 years agoResize the coefficient to MPD_MINALLOC also if the requested size is below
Stefan Krah [Mon, 9 Apr 2012 18:47:57 +0000 (20:47 +0200)]
Resize the coefficient to MPD_MINALLOC also if the requested size is below
MPD_MINALLOC. Previously the resize was skipped as a micro optimization.

12 years agoMerged comment correction from 3.2.
Vinay Sajip [Mon, 9 Apr 2012 18:47:16 +0000 (19:47 +0100)]
Merged comment correction from 3.2.

12 years agoCorrected comment in cookbook example script.
Vinay Sajip [Mon, 9 Apr 2012 18:46:24 +0000 (19:46 +0100)]
Corrected comment in cookbook example script.

12 years ago_decimal is now 100x faster than the Python version in the pi benchmark.
Stefan Krah [Mon, 9 Apr 2012 18:31:15 +0000 (20:31 +0200)]
_decimal is now 100x faster than the Python version in the pi benchmark.

12 years agoSpeed up _decimal by 30-40% for numerical workloads by improving the cache
Stefan Krah [Mon, 9 Apr 2012 18:24:57 +0000 (20:24 +0200)]
Speed up _decimal by 30-40% for numerical workloads by improving the cache
locality for regularly sized coefficients.

12 years agoUse the MPD() accessor macro.
Stefan Krah [Mon, 9 Apr 2012 17:20:46 +0000 (19:20 +0200)]
Use the MPD() accessor macro.

12 years agoUpdate description of benchmarks and mention the benchmarks repo
Antoine Pitrou [Mon, 9 Apr 2012 15:06:44 +0000 (17:06 +0200)]
Update description of benchmarks and mention the benchmarks repo

12 years agoFix whitespace
Antoine Pitrou [Mon, 9 Apr 2012 15:04:14 +0000 (17:04 +0200)]
Fix whitespace

12 years agoIssue #13165: stringbench is now available in the Tools/stringbench folder.
Antoine Pitrou [Mon, 9 Apr 2012 15:03:32 +0000 (17:03 +0200)]
Issue #13165: stringbench is now available in the Tools/stringbench folder.
It used to live in its own SVN project.

12 years agoRename test_ file that is really a support file to remove test_ prefix.
R David Murray [Mon, 9 Apr 2012 13:37:52 +0000 (09:37 -0400)]
Rename test_ file that is really a support file to remove test_ prefix.

I thought I had run the full test suite before the last checkin, but
obviously I didn't.  test_multibytecodec_support.py isn't really a test file,
it is a support file that contains a base test class.  Rename it to
multibytecodec_support so that regrtest test discovery doesn't think it is a
test file that should be run.

12 years agoReflow paragraph (not that it helped much).
R David Murray [Mon, 9 Apr 2012 13:12:57 +0000 (09:12 -0400)]
Reflow paragraph (not that it helped much).

12 years ago#14533: if a test has no test_main, use loadTestsFromModule.
R David Murray [Mon, 9 Apr 2012 12:55:42 +0000 (08:55 -0400)]
#14533: if a test has no test_main, use loadTestsFromModule.

This moves us further in the direction of using normal unittest facilities
instead of specialized regrtest ones.  Any test module that can be correctly
run currently using 'python unittest -m test.test_xxx' can now be converted to
use normal unittest test loading by simply deleting its test_main, thus no
longer requiring manual maintenance of the list of tests to run.  (Not all
tests can be converted that easily, since test_main sometimes does some
additional things (such as reap_children or reap_threads).  In those cases the
extra code may be moved to setUpModule/tearDownModule methods, or perhaps the
same ends can be achieved in a different way, such as moving the decorators to
the test classes that need them, etc.)

I don't advocate going through and making this change wholesale, but any time
a list of tests in test_main would otherwise need to be updated, consideration
should instead be given to deleting test_main.

12 years ago#12537: in mailbox avoid depending on knowledge of email package internals
R David Murray [Mon, 9 Apr 2012 02:36:07 +0000 (22:36 -0400)]
#12537: in mailbox avoid depending on knowledge of email package internals

Previously mailbox was copying a list of attributes from one message object to
another in order to "copy the message data".  This means that any time new
attributes were added to email.message.Message, mailbox broke.  Now instead it
copies all attributes from the source object to the target object, skipping
any mailbox-object-specific attributes to produce the same clean initial
state it was previously getting by copying only the "known" attributes.

David Lam assisted in the development of this patch.

12 years agoRemove redundancy in listing of all mailbox classes in test_mailbox.
R David Murray [Mon, 9 Apr 2012 01:00:27 +0000 (21:00 -0400)]
Remove redundancy in listing of all mailbox classes in test_mailbox.

12 years agoNull merge
Antoine Pitrou [Sun, 8 Apr 2012 23:41:00 +0000 (01:41 +0200)]
Null merge

12 years agoFix the patch for issue #7978: select() raises select.error before 3.3, not OSError.
Antoine Pitrou [Sun, 8 Apr 2012 23:37:19 +0000 (01:37 +0200)]
Fix the patch for issue #7978: select() raises select.error before 3.3, not OSError.

12 years agoFix flakiness in test_socketserver
Antoine Pitrou [Sun, 8 Apr 2012 23:18:07 +0000 (01:18 +0200)]
Fix flakiness in test_socketserver

12 years agoFix flakiness in test_socketserver
Antoine Pitrou [Sun, 8 Apr 2012 23:16:47 +0000 (01:16 +0200)]
Fix flakiness in test_socketserver

12 years agoIssue #7978: socketserver now restarts the select() call when EINTR is returned.
Antoine Pitrou [Sun, 8 Apr 2012 22:49:17 +0000 (00:49 +0200)]
Issue #7978: socketserver now restarts the select() call when EINTR is returned.
This avoids crashing the server loop when a signal is received.
Patch by Jerzy Kozera.

12 years agoIssue #7978: socketserver now restarts the select() call when EINTR is returned.
Antoine Pitrou [Sun, 8 Apr 2012 22:47:24 +0000 (00:47 +0200)]
Issue #7978: socketserver now restarts the select() call when EINTR is returned.
This avoids crashing the server loop when a signal is received.
Patch by Jerzy Kozera.

12 years agoMerge: Make test_mailbox runnable via python -m unittest.
R David Murray [Sun, 8 Apr 2012 22:35:35 +0000 (18:35 -0400)]
Merge: Make test_mailbox runnable via python -m unittest.

12 years agoMake test_mailbox runnable via python -m unittest.
R David Murray [Sun, 8 Apr 2012 20:46:18 +0000 (16:46 -0400)]
Make test_mailbox runnable via python -m unittest.

12 years agoRemove unused variable from gcmodule.c. The code no longer tests for the
Kristján Valur Jónsson [Sun, 8 Apr 2012 13:56:25 +0000 (13:56 +0000)]
Remove unused variable from gcmodule.c.  The code no longer tests for the
presence of a __del__ attribute on objects, rather it uses the tp_del slot.

12 years agoMerged logging cookbook update from 3.2.
Vinay Sajip [Sun, 8 Apr 2012 00:51:29 +0000 (01:51 +0100)]
Merged logging cookbook update from 3.2.