]> granicus.if.org Git - python/log
python
12 years agoSimplify importib._resolve_name().
Brett Cannon [Fri, 24 Feb 2012 16:20:54 +0000 (11:20 -0500)]
Simplify importib._resolve_name().

12 years agoFix compilation error under Windows (and warnings too).
Antoine Pitrou [Fri, 24 Feb 2012 12:30:46 +0000 (13:30 +0100)]
Fix compilation error under Windows (and warnings too).

12 years ago#13973: move a couple of imports at module level. Patch by Tshepang Lekhonkhobe.
Ezio Melotti [Fri, 24 Feb 2012 10:44:04 +0000 (12:44 +0200)]
#13973: move a couple of imports at module level.  Patch by Tshepang Lekhonkhobe.

12 years agomerge
Brett Cannon [Fri, 24 Feb 2012 01:48:13 +0000 (20:48 -0500)]
merge

12 years agoTurn _return_module() into _handle_fromlist().
Brett Cannon [Fri, 24 Feb 2012 01:47:57 +0000 (20:47 -0500)]
Turn _return_module() into _handle_fromlist().

12 years agoIssue #13706: Fix format(float, "n") for locale with non-ASCII decimal point (e.g...
Victor Stinner [Fri, 24 Feb 2012 00:44:47 +0000 (01:44 +0100)]
Issue #13706: Fix format(float, "n") for locale with non-ASCII decimal point (e.g. ps_aF)

12 years agomerge
Brett Cannon [Fri, 24 Feb 2012 00:34:55 +0000 (19:34 -0500)]
merge

12 years agoMake the benchmark recording more sensible for importlib.test.benchmark.
Brett Cannon [Fri, 24 Feb 2012 00:34:35 +0000 (19:34 -0500)]
Make the benchmark recording more sensible for importlib.test.benchmark.

12 years agoIssue #13706: Fix format(int, "n") for locale with non-ASCII thousands separator
Victor Stinner [Thu, 23 Feb 2012 23:37:51 +0000 (00:37 +0100)]
Issue #13706: Fix format(int, "n") for locale with non-ASCII thousands separator

 * Decode thousands separator and decimal point using PyUnicode_DecodeLocale()
   (from the locale encoding), instead of decoding them implicitly from latin1
 * Remove _PyUnicode_InsertThousandsGroupingLocale(), it was not used
 * Change _PyUnicode_InsertThousandsGrouping() API to return the maximum
   character if unicode is NULL
 * Replace MIN/MAX macros by Py_MIN/Py_MAX
 * stringlib/undef.h undefines STRINGLIB_IS_UNICODE
 * stringlib/localeutil.h only supports Unicode

12 years agomerge
Brett Cannon [Thu, 23 Feb 2012 23:30:04 +0000 (18:30 -0500)]
merge

12 years agoImproper type for __package__ should raise TypeError, not ValueError.
Brett Cannon [Thu, 23 Feb 2012 23:29:12 +0000 (18:29 -0500)]
Improper type for __package__ should raise TypeError, not ValueError.

12 years agoDo a type check instead of an interface check.
Brett Cannon [Thu, 23 Feb 2012 23:18:48 +0000 (18:18 -0500)]
Do a type check instead of an interface check.

12 years agoIssue #13846: Enhance time.monotonic() documentation
Victor Stinner [Thu, 23 Feb 2012 23:10:45 +0000 (00:10 +0100)]
Issue #13846: Enhance time.monotonic() documentation

12 years agoMerged upstream changes.
Vinay Sajip [Thu, 23 Feb 2012 20:55:35 +0000 (20:55 +0000)]
Merged upstream changes.

12 years agoMerged upstream changes.
Vinay Sajip [Thu, 23 Feb 2012 20:53:40 +0000 (20:53 +0000)]
Merged upstream changes.

12 years agoMerged upstream changes.
Vinay Sajip [Thu, 23 Feb 2012 20:51:57 +0000 (20:51 +0000)]
Merged upstream changes.

12 years agoMerged fix added for recent changes in non-threading environments.
Vinay Sajip [Thu, 23 Feb 2012 20:51:18 +0000 (20:51 +0000)]
Merged fix added for recent changes in non-threading environments.

12 years agoFix added for recent changes in non-threading environments.
Vinay Sajip [Thu, 23 Feb 2012 20:49:08 +0000 (20:49 +0000)]
Fix added for recent changes in non-threading environments.

12 years agomerge with 3.2
Georg Brandl [Thu, 23 Feb 2012 20:17:27 +0000 (21:17 +0100)]
merge with 3.2

12 years agomerge heads
Georg Brandl [Thu, 23 Feb 2012 20:16:49 +0000 (21:16 +0100)]
merge heads

12 years agoUpdate pydoc topics.
Georg Brandl [Thu, 23 Feb 2012 20:12:41 +0000 (21:12 +0100)]
Update pydoc topics.

12 years agoFix markup errors.
Georg Brandl [Thu, 23 Feb 2012 20:12:39 +0000 (21:12 +0100)]
Fix markup errors.

12 years agoMerged logging flush/close changes from 3.2.
Vinay Sajip [Thu, 23 Feb 2012 20:03:49 +0000 (20:03 +0000)]
Merged logging flush/close changes from 3.2.

12 years agologging: Added locking in flush() and close() handler methods. Thanks to Fayaz Yusuf...
Vinay Sajip [Thu, 23 Feb 2012 19:45:52 +0000 (19:45 +0000)]
logging: Added locking in flush() and close() handler methods. Thanks to Fayaz Yusuf Khan for the suggestion.

12 years agomerge 3.2
Benjamin Peterson [Thu, 23 Feb 2012 15:54:36 +0000 (10:54 -0500)]
merge 3.2

12 years agomerge 3.1
Benjamin Peterson [Thu, 23 Feb 2012 15:54:28 +0000 (10:54 -0500)]
merge 3.1

12 years agoupdate copyright year
Benjamin Peterson [Thu, 23 Feb 2012 15:53:44 +0000 (10:53 -0500)]
update copyright year

12 years agomerge 3.2
Benjamin Peterson [Thu, 23 Feb 2012 15:48:22 +0000 (10:48 -0500)]
merge 3.2

12 years agomerge 3.1 (with 3.1.5rc1 release tag)
Benjamin Peterson [Thu, 23 Feb 2012 15:48:03 +0000 (10:48 -0500)]
merge 3.1 (with 3.1.5rc1 release tag)

12 years agoAdded tag v3.1.5rc1 for changeset ee26aca3219c
Benjamin Peterson [Thu, 23 Feb 2012 15:46:00 +0000 (10:46 -0500)]
Added tag v3.1.5rc1 for changeset ee26aca3219c

12 years agoversion now 3.1.5rc1 v3.1.5rc1
Benjamin Peterson [Thu, 23 Feb 2012 15:45:48 +0000 (10:45 -0500)]
version now 3.1.5rc1

12 years agoMerge
Brett Cannon [Thu, 23 Feb 2012 15:17:56 +0000 (10:17 -0500)]
Merge

12 years agoSimplify zlib bigmem tests.
Nadeem Vawda [Thu, 23 Feb 2012 12:23:17 +0000 (14:23 +0200)]
Simplify zlib bigmem tests.

12 years agoFix previous fix (for test_zlib) to work on 32-bit systems.
Nadeem Vawda [Thu, 23 Feb 2012 12:16:15 +0000 (14:16 +0200)]
Fix previous fix (for test_zlib) to work on 32-bit systems.

12 years agoIssue #13873: Fix crash in test_zlib on bigmem buildbot.
Nadeem Vawda [Thu, 23 Feb 2012 11:36:25 +0000 (13:36 +0200)]
Issue #13873: Fix crash in test_zlib on bigmem buildbot.

12 years agoRefactor importlib to make it easier to re-implement in C.
Brett Cannon [Wed, 22 Feb 2012 23:33:05 +0000 (18:33 -0500)]
Refactor importlib to make it easier to re-implement in C.

12 years agoFix doc of an internal function: unicode_write_cstr()
Victor Stinner [Wed, 22 Feb 2012 20:22:20 +0000 (21:22 +0100)]
Fix doc of an internal function: unicode_write_cstr()

12 years agoIssue #14077: importlib: Fix regression introduced by de6703671386.
Charles-François Natali [Wed, 22 Feb 2012 20:03:09 +0000 (21:03 +0100)]
Issue #14077: importlib: Fix regression introduced by de6703671386.

12 years agoNull merge
Antoine Pitrou [Wed, 22 Feb 2012 18:23:13 +0000 (19:23 +0100)]
Null merge

12 years agoIssue #14084: Fix a file descriptor leak when importing a module with a bad encoding.
Antoine Pitrou [Wed, 22 Feb 2012 17:08:30 +0000 (18:08 +0100)]
Issue #14084: Fix a file descriptor leak when importing a module with a bad encoding.

12 years agoIssue #14084: Fix a file descriptor leak when importing a module with a bad encoding.
Antoine Pitrou [Wed, 22 Feb 2012 17:05:43 +0000 (18:05 +0100)]
Issue #14084: Fix a file descriptor leak when importing a module with a bad encoding.

12 years agoIn find_module(), do not silence fileno() and dup() errors.
Antoine Pitrou [Wed, 22 Feb 2012 17:03:04 +0000 (18:03 +0100)]
In find_module(), do not silence fileno() and dup() errors.

12 years agoFix compile failure under Windows
Antoine Pitrou [Wed, 22 Feb 2012 15:41:50 +0000 (16:41 +0100)]
Fix compile failure under Windows

12 years agoOptimize str%arg for number formats: %i, %d, %u, %x, %p
Victor Stinner [Wed, 22 Feb 2012 12:55:02 +0000 (13:55 +0100)]
Optimize str%arg for number formats: %i, %d, %u, %x, %p

Write a specialized function to write an ASCII/latin1 C char* string into a
Python Unicode string.

12 years agoMicro-optimize computation of maxchar in PyUnicode_TransformDecimalToASCII()
Victor Stinner [Wed, 22 Feb 2012 12:37:39 +0000 (13:37 +0100)]
Micro-optimize computation of maxchar in PyUnicode_TransformDecimalToASCII()

12 years agoMicro-optimize unicode_expandtabs(): use FILL() macro to write N spaces
Victor Stinner [Wed, 22 Feb 2012 12:37:04 +0000 (13:37 +0100)]
Micro-optimize unicode_expandtabs(): use FILL() macro to write N spaces

12 years agoPyUnicode_New() and unicode_putchar() check for MAX_UNICODE maximum (U+10FFFF)
Victor Stinner [Wed, 22 Feb 2012 12:36:20 +0000 (13:36 +0100)]
PyUnicode_New() and unicode_putchar() check for MAX_UNICODE maximum (U+10FFFF)

12 years agoMerge: #14053: Fix "make patchcheck" to work with MQ.
Nadeem Vawda [Wed, 22 Feb 2012 09:53:09 +0000 (11:53 +0200)]
Merge: #14053: Fix "make patchcheck" to work with MQ.

Patch by Francisco Martín Brugué

12 years agoIssue #14053: Fix "make patchcheck" to work with MQ.
Nadeem Vawda [Wed, 22 Feb 2012 09:46:41 +0000 (11:46 +0200)]
Issue #14053: Fix "make patchcheck" to work with MQ.

Patch by Francisco Martín Brugué

12 years agoFix sporadic test_subprocess regression introduced by 834650d63130.
Ross Lagerwall [Wed, 22 Feb 2012 04:02:07 +0000 (06:02 +0200)]
Fix sporadic test_subprocess regression introduced by 834650d63130.

12 years agoFix (presumably) test_hash under big-endian systems (PPC).
Antoine Pitrou [Wed, 22 Feb 2012 02:33:56 +0000 (03:33 +0100)]
Fix (presumably) test_hash under big-endian systems (PPC).

12 years agoFix (presumably) test_hash under big-endian systems (PPC).
Antoine Pitrou [Wed, 22 Feb 2012 02:33:56 +0000 (03:33 +0100)]
Fix (presumably) test_hash under big-endian systems (PPC).

12 years agoAdditional debug info in case of failure
Antoine Pitrou [Wed, 22 Feb 2012 01:46:58 +0000 (02:46 +0100)]
Additional debug info in case of failure

12 years agounload() should be sufficient
Antoine Pitrou [Wed, 22 Feb 2012 01:30:09 +0000 (02:30 +0100)]
unload() should be sufficient

12 years agoTry to debug sporadic test failures
Antoine Pitrou [Wed, 22 Feb 2012 00:11:31 +0000 (01:11 +0100)]
Try to debug sporadic test failures

12 years agoremove unapplicable statement
Benjamin Peterson [Tue, 21 Feb 2012 23:03:26 +0000 (18:03 -0500)]
remove unapplicable statement

12 years agomerge with 3.2
Georg Brandl [Tue, 21 Feb 2012 21:37:36 +0000 (22:37 +0100)]
merge with 3.2

12 years agomerge with 3.2
Georg Brandl [Tue, 21 Feb 2012 21:36:37 +0000 (22:36 +0100)]
merge with 3.2

12 years agoRemove reST markup from --help output. Also: O(n**2) is dict construction, not singl...
Georg Brandl [Tue, 21 Feb 2012 21:36:27 +0000 (22:36 +0100)]
Remove reST markup from --help output.  Also: O(n**2) is dict construction, not single insertion.

12 years agosite: don't import traceback at startup to speed up Python startup
Victor Stinner [Tue, 21 Feb 2012 21:10:16 +0000 (22:10 +0100)]
site: don't import traceback at startup to speed up Python startup

12 years agoenable hash randomization by default
Benjamin Peterson [Tue, 21 Feb 2012 21:08:05 +0000 (16:08 -0500)]
enable hash randomization by default

12 years agoIssue #12406: Update list of files.
Martin v. Löwis [Tue, 21 Feb 2012 18:54:26 +0000 (19:54 +0100)]
Issue #12406: Update list of files.

12 years agoActually run the new tests.
Antoine Pitrou [Tue, 21 Feb 2012 18:18:10 +0000 (19:18 +0100)]
Actually run the new tests.

12 years agoAdd a test that memoryviews have hash randomization enabled.
Antoine Pitrou [Tue, 21 Feb 2012 18:14:26 +0000 (19:14 +0100)]
Add a test that memoryviews have hash randomization enabled.

12 years agoFix test failure in test_cmd_line by initializing the hash secret at the earliest...
Antoine Pitrou [Tue, 21 Feb 2012 18:08:26 +0000 (19:08 +0100)]
Fix test failure in test_cmd_line by initializing the hash secret at the earliest point.

12 years agoFix test failure in test_cmd_line by initializing the hash secret at the earliest...
Antoine Pitrou [Tue, 21 Feb 2012 18:03:47 +0000 (19:03 +0100)]
Fix test failure in test_cmd_line by initializing the hash secret at the earliest point.

12 years agoIssue #12406: prevent case where shortened name could conflict with short name.
Martin v. Löwis [Tue, 21 Feb 2012 17:49:10 +0000 (18:49 +0100)]
Issue #12406: prevent case where shortened name could conflict with short name.

12 years agomerge 2.6
Martin v. Löwis [Tue, 21 Feb 2012 17:07:58 +0000 (18:07 +0100)]
merge 2.6

12 years agoIssue #6807: Run msisupport.mak earlier.
Martin v. Löwis [Tue, 21 Feb 2012 17:06:22 +0000 (18:06 +0100)]
Issue #6807: Run msisupport.mak earlier.

12 years agomerge 3.2
Martin v. Löwis [Tue, 21 Feb 2012 16:26:10 +0000 (17:26 +0100)]
merge 3.2

12 years agoIssue #10580: Minor grammar change in Windows installer.
Martin v. Löwis [Tue, 21 Feb 2012 16:23:55 +0000 (17:23 +0100)]
Issue #10580: Minor grammar change in Windows installer.

12 years agomerge 3.2
Benjamin Peterson [Tue, 21 Feb 2012 16:12:14 +0000 (11:12 -0500)]
merge 3.2

12 years agomerge 3.2
Benjamin Peterson [Tue, 21 Feb 2012 16:09:13 +0000 (11:09 -0500)]
merge 3.2

12 years agoensure no one tries to hash things before the random seed is found
Benjamin Peterson [Tue, 21 Feb 2012 16:08:50 +0000 (11:08 -0500)]
ensure no one tries to hash things before the random seed is found

12 years agoMerge branch '3.2'
Petri Lehtinen [Tue, 21 Feb 2012 11:59:34 +0000 (13:59 +0200)]
Merge branch '3.2'

Closes #8033.

12 years agosqlite3: Fix 64-bit integer handling in user functions on 32-bit architectures
Petri Lehtinen [Sun, 19 Feb 2012 19:38:00 +0000 (21:38 +0200)]
sqlite3: Fix 64-bit integer handling in user functions on 32-bit architectures

Closes #8033.

12 years agoMerge the HTMLParser fix with 3.2.
Ezio Melotti [Tue, 21 Feb 2012 07:29:10 +0000 (09:29 +0200)]
Merge the HTMLParser fix with 3.2.

12 years agoHTMLParser is now able to handle slashes in the start tag.
Ezio Melotti [Tue, 21 Feb 2012 07:25:00 +0000 (09:25 +0200)]
HTMLParser is now able to handle slashes in the start tag.

12 years agoupdate unicode link
Benjamin Peterson [Tue, 21 Feb 2012 03:35:25 +0000 (22:35 -0500)]
update unicode link

12 years agoadjust docs for unicode 6.1
Benjamin Peterson [Tue, 21 Feb 2012 03:34:50 +0000 (22:34 -0500)]
adjust docs for unicode 6.1

12 years agoupdate to Unicode 6.1
Benjamin Peterson [Tue, 21 Feb 2012 03:24:29 +0000 (22:24 -0500)]
update to Unicode 6.1

12 years agoForgot the "empty string -> hash == 0" special case for strings.
Georg Brandl [Mon, 20 Feb 2012 23:50:13 +0000 (00:50 +0100)]
Forgot the "empty string -> hash == 0" special case for strings.

12 years agoMerge more test vs hashing-order fixes from 3.2.
Georg Brandl [Mon, 20 Feb 2012 23:34:05 +0000 (00:34 +0100)]
Merge more test vs hashing-order fixes from 3.2.

12 years agoMerge 3.2: Issue #13703 plus some related test suite fixes.
Georg Brandl [Mon, 20 Feb 2012 23:33:36 +0000 (00:33 +0100)]
Merge 3.2: Issue #13703 plus some related test suite fixes.

12 years agoDisable an inspect test: it depends on dict ordering which parameter is reported...
Georg Brandl [Mon, 20 Feb 2012 23:32:36 +0000 (00:32 +0100)]
Disable an inspect test: it depends on dict ordering which parameter is reported as duplicate.

12 years agoDelete the iterator, which could accidentally keep a temporary reference to the yield...
Antoine Pitrou [Mon, 20 Feb 2012 23:00:06 +0000 (00:00 +0100)]
Delete the iterator, which could accidentally keep a temporary reference to the yielded element.

12 years agoMerge
Antoine Pitrou [Mon, 20 Feb 2012 22:51:50 +0000 (23:51 +0100)]
Merge

12 years agoDummy-merge with 3.1
Georg Brandl [Mon, 20 Feb 2012 22:52:16 +0000 (23:52 +0100)]
Dummy-merge with 3.1

12 years agoFix typo in conditional.
Georg Brandl [Mon, 20 Feb 2012 22:49:29 +0000 (23:49 +0100)]
Fix typo in conditional.

12 years agoMake "regrtest -j" "-R"-aware
Antoine Pitrou [Mon, 20 Feb 2012 22:49:07 +0000 (23:49 +0100)]
Make "regrtest -j" "-R"-aware

12 years agoFix obscure failures of datetime-related tests due to the datetime tests failing...
Georg Brandl [Mon, 20 Feb 2012 22:37:36 +0000 (23:37 +0100)]
Fix obscure failures of datetime-related tests due to the datetime tests failing to restore the system state completely after testing the pure-Python versions.

12 years agoFix typo.
Georg Brandl [Mon, 20 Feb 2012 22:09:59 +0000 (23:09 +0100)]
Fix typo.

12 years agoFix dbm_gnu test relying on set order.
Georg Brandl [Mon, 20 Feb 2012 21:48:06 +0000 (22:48 +0100)]
Fix dbm_gnu test relying on set order.

12 years agoFix use of deprecated assertRegexpMatches method.
Georg Brandl [Mon, 20 Feb 2012 21:08:27 +0000 (22:08 +0100)]
Fix use of deprecated assertRegexpMatches method.

12 years agoIssue #14063: fix test_importlib failure under OS X case-insensitive filesystems
Antoine Pitrou [Mon, 20 Feb 2012 21:06:59 +0000 (22:06 +0100)]
Issue #14063: fix test_importlib failure under OS X case-insensitive filesystems
(regression)

12 years agoRemove setting hash seed to regrtest's random seed and re-execv()ing: this doesn...
Georg Brandl [Mon, 20 Feb 2012 21:06:02 +0000 (22:06 +0100)]
Remove setting hash seed to regrtest's random seed and re-execv()ing: this doesn't preserve Python flags and fails from a temp directory.

12 years agoFix dbm_gnu test relying on set order.
Georg Brandl [Mon, 20 Feb 2012 21:48:06 +0000 (22:48 +0100)]
Fix dbm_gnu test relying on set order.

12 years agoFix typo.
Georg Brandl [Mon, 20 Feb 2012 22:09:59 +0000 (23:09 +0100)]
Fix typo.

12 years agoFix typo in conditional.
Georg Brandl [Mon, 20 Feb 2012 22:49:29 +0000 (23:49 +0100)]
Fix typo in conditional.

12 years agoRemove setting hash seed to regrtest's random seed and re-execv()ing: this doesn...
Georg Brandl [Mon, 20 Feb 2012 21:06:02 +0000 (22:06 +0100)]
Remove setting hash seed to regrtest's random seed and re-execv()ing: this doesn't preserve Python flags and fails from a temp directory.