]> granicus.if.org Git - python/log
python
12 years agoMerge
Antoine Pitrou [Fri, 4 May 2012 20:16:09 +0000 (22:16 +0200)]
Merge

12 years agoKill remaining mentions of import_nt.c
Antoine Pitrou [Fri, 4 May 2012 20:15:57 +0000 (22:15 +0200)]
Kill remaining mentions of import_nt.c

12 years agoKill off another entry of import_nt.c
Brett Cannon [Fri, 4 May 2012 20:15:26 +0000 (16:15 -0400)]
Kill off another entry of import_nt.c

12 years agoIssue #13959: Move module type constants to Lib/imp.py.
Brett Cannon [Fri, 4 May 2012 20:13:30 +0000 (16:13 -0400)]
Issue #13959: Move module type constants to Lib/imp.py.

12 years agomerge
Brett Cannon [Fri, 4 May 2012 20:04:59 +0000 (16:04 -0400)]
merge

12 years agoRemove dead Windows code which no longer will compile.
Brett Cannon [Fri, 4 May 2012 20:04:14 +0000 (16:04 -0400)]
Remove dead Windows code which no longer will compile.

12 years agoupdate importlib.h
Brett Cannon [Fri, 4 May 2012 20:03:20 +0000 (16:03 -0400)]
update importlib.h

12 years agoCloses #14093: Added Mercurial version information to Windows builds.
Vinay Sajip [Fri, 4 May 2012 19:51:59 +0000 (20:51 +0100)]
Closes #14093: Added Mercurial version information to Windows builds.

12 years agoJython-friendly tweak.
Brett Cannon [Fri, 4 May 2012 19:46:04 +0000 (15:46 -0400)]
Jython-friendly tweak.

12 years agoIssue #13959: Re-implement imp.get_suffixes() in Lib/imp.py.
Brett Cannon [Fri, 4 May 2012 19:20:40 +0000 (15:20 -0400)]
Issue #13959: Re-implement imp.get_suffixes() in Lib/imp.py.

This introduces a new function, imp.extension_suffixes(), which is
currently undocumented. That is forthcoming once issue #14657 is
resolved and how to expose file suffixes is decided.

12 years agoProperly mark names in importlib._bootstrap as private.
Brett Cannon [Fri, 4 May 2012 17:52:49 +0000 (13:52 -0400)]
Properly mark names in importlib._bootstrap as private.

12 years agoinitialization not needed
Benjamin Peterson [Fri, 4 May 2012 15:06:09 +0000 (11:06 -0400)]
initialization not needed

12 years agoFix test connecting to sha256.tbs-internet.com.
Antoine Pitrou [Fri, 4 May 2012 14:26:56 +0000 (16:26 +0200)]
Fix test connecting to sha256.tbs-internet.com.
The certificate has changed and the test now needs SNI to pass.

12 years agoFix test connecting to sha256.tbs-internet.com.
Antoine Pitrou [Fri, 4 May 2012 14:26:02 +0000 (16:26 +0200)]
Fix test connecting to sha256.tbs-internet.com.
The certificate has changed and the test now needs SNI to pass.

12 years agoFix for fatal errors in os.*utime*()
Richard Oudkerk [Fri, 4 May 2012 11:01:31 +0000 (12:01 +0100)]
Fix for fatal errors in os.*utime*()

The address of an object was being decreffed instead of the object.

12 years agoIssue #14127: Fix two bugs with the Windows implementation.
Larry Hastings [Fri, 4 May 2012 09:31:57 +0000 (02:31 -0700)]
Issue #14127: Fix two bugs with the Windows implementation.

12 years agoGive test_multiprocessing better chance of avoiding timeout failures on Windows
Richard Oudkerk [Fri, 4 May 2012 08:44:39 +0000 (09:44 +0100)]
Give test_multiprocessing better chance of avoiding timeout failures on Windows

12 years agowhat is a invalid tuple?
Benjamin Peterson [Fri, 4 May 2012 05:42:41 +0000 (01:42 -0400)]
what is a invalid tuple?

12 years agoclean up converted path on error
Benjamin Peterson [Fri, 4 May 2012 05:31:13 +0000 (01:31 -0400)]
clean up converted path on error

12 years agoavoid unitialized memory
Benjamin Peterson [Fri, 4 May 2012 05:14:03 +0000 (01:14 -0400)]
avoid unitialized memory

12 years agocheck correct variable for error
Benjamin Peterson [Fri, 4 May 2012 05:10:59 +0000 (01:10 -0400)]
check correct variable for error

12 years agounicode_writer: don't force inline when it is not necessary
Victor Stinner [Thu, 3 May 2012 23:19:15 +0000 (01:19 +0200)]
unicode_writer: don't force inline when it is not necessary

Keep inline for performance critical functions (functions used in loops)

12 years agomerge 3.2 (#14717)
Benjamin Peterson [Thu, 3 May 2012 22:44:33 +0000 (18:44 -0400)]
merge 3.2 (#14717)

12 years agoclose() doesn't take any args (closes #14717)
Benjamin Peterson [Thu, 3 May 2012 22:44:09 +0000 (18:44 -0400)]
close() doesn't take any args (closes #14717)

12 years agoif the kind of the string to count is larger than the string to search, shortcut...
Benjamin Peterson [Thu, 3 May 2012 22:31:07 +0000 (18:31 -0400)]
if the kind of the string to count is larger than the string to search, shortcut to 0

12 years agounicode_writer: add finish() method and assertions to write_str() method
Victor Stinner [Thu, 3 May 2012 21:58:55 +0000 (23:58 +0200)]
unicode_writer: add finish() method and assertions to write_str() method

 * The write_str() method does nothing if the length is zero.
 * Replace "struct unicode_writer_t" with "unicode_writer_t"

12 years agoIssue #14127: Fix no-op stub for platforms that lack some "os" functions.
Larry Hastings [Thu, 3 May 2012 19:56:44 +0000 (12:56 -0700)]
Issue #14127: Fix no-op stub for platforms that lack some "os" functions.

12 years agoFix dangling warning for test_multiprocessing
Richard Oudkerk [Thu, 3 May 2012 17:29:02 +0000 (18:29 +0100)]
Fix dangling warning for test_multiprocessing

12 years agoIssue #14687: Remove redundant length attribute of unicode_write_t
Victor Stinner [Thu, 3 May 2012 17:27:14 +0000 (19:27 +0200)]
Issue #14687: Remove redundant length attribute of unicode_write_t

The length can be read directly from the buffer

12 years agoIssue #14687: Cleanup unicode_writer_prepare()
Victor Stinner [Thu, 3 May 2012 11:43:07 +0000 (13:43 +0200)]
Issue #14687: Cleanup unicode_writer_prepare()

"Inline" PyUnicode_Resize(): call directly resize_compact()

12 years agoIssue #14687: str%tuple now uses an optimistic "unicode writer" instead of an
Victor Stinner [Thu, 3 May 2012 11:10:40 +0000 (13:10 +0200)]
Issue #14687: str%tuple now uses an optimistic "unicode writer" instead of an
accumulator. Directly write characters into the output (don't use a temporary
list): resize and widen the string on demand.

12 years agoMerged hanged order of cleanup operations from 3.2.
Vinay Sajip [Thu, 3 May 2012 11:09:38 +0000 (12:09 +0100)]
Merged hanged order of cleanup operations from 3.2.

12 years agoChanged order of cleanup operations to be more sensible.
Vinay Sajip [Thu, 3 May 2012 11:06:52 +0000 (12:06 +0100)]
Changed order of cleanup operations to be more sensible.

12 years agoIssue #14624, #14687: Optimize unicode_widen()
Victor Stinner [Thu, 3 May 2012 10:29:04 +0000 (12:29 +0200)]
Issue #14624, #14687: Optimize unicode_widen()

Don't convert uninitialized characters. Patch written by Serhiy Storchaka.

12 years agoIssue #14127: Add ns= parameter to utime, futimes, and lutimes.
Larry Hastings [Thu, 3 May 2012 07:30:07 +0000 (00:30 -0700)]
Issue #14127: Add ns= parameter to utime, futimes, and lutimes.
Removed futimens as it is now redundant.
Changed shutil.copystat to use st_atime_ns and st_mtime_ns from os.stat
and ns= parameter to utime--it once again preserves exact metadata on Linux!

12 years agoRemove buggy assertion in PyUnicode_Substring()
Victor Stinner [Thu, 3 May 2012 01:36:40 +0000 (03:36 +0200)]
Remove buggy assertion in PyUnicode_Substring()

Use also directly unicode_empty, instead of PyUnicode_New(0,0).

12 years agoFix PyUnicode_Substring() for start >= length and start > end
Victor Stinner [Thu, 3 May 2012 00:32:34 +0000 (02:32 +0200)]
Fix PyUnicode_Substring() for start >= length and start > end

Remove the fast-path for 1-character string: unicode_fromascii() and
_PyUnicode_FromUCS*() now have their own fast-path for 1-character strings.

12 years agoUnicode: optimize creating of 1-character strings
Victor Stinner [Thu, 3 May 2012 00:17:04 +0000 (02:17 +0200)]
Unicode: optimize creating of 1-character strings

12 years agoIssue #14687: Optimize str%tuple for the "%(name)s" syntax
Victor Stinner [Wed, 2 May 2012 23:44:59 +0000 (01:44 +0200)]
Issue #14687: Optimize str%tuple for the "%(name)s" syntax

Avoid an useless and expensive call to PyUnicode_READ().

12 years agoMerge.
Charles-François Natali [Wed, 2 May 2012 18:51:59 +0000 (20:51 +0200)]
Merge.

12 years agoos.popen().close() returns None on success, not 0...
Charles-François Natali [Wed, 2 May 2012 18:50:13 +0000 (20:50 +0200)]
os.popen().close() returns None on success, not 0...

12 years agoos.popen().close() returns None on success, not 0...
Charles-François Natali [Wed, 2 May 2012 18:49:14 +0000 (20:49 +0200)]
os.popen().close() returns None on success, not 0...

12 years agoMake test_multiprocessing cleanup properly
Richard Oudkerk [Wed, 2 May 2012 18:36:11 +0000 (19:36 +0100)]
Make test_multiprocessing cleanup properly

Previously, when an error was encountered some processes would not be
stopped until atexit callbacks were run.  On Windows that was too late
to prevent a PermissionError when regrtest tried to remove the temp
directory it ran the tests in.

12 years agoIssue #14698: Make test_posix more robust when the current UID doesn't have an
Charles-François Natali [Wed, 2 May 2012 18:04:40 +0000 (20:04 +0200)]
Issue #14698: Make test_posix more robust when the current UID doesn't have an
associated pwd entry.

12 years agoIssue #14698: Make test_posix more robust when the current UID doesn't have an
Charles-François Natali [Wed, 2 May 2012 18:01:38 +0000 (20:01 +0200)]
Issue #14698: Make test_posix more robust when the current UID doesn't have an
associated pwd entry.

12 years agoIssue #13183: Revert 0b53b70a40a0 (reenable test on windows)
Martin v. Löwis [Wed, 2 May 2012 05:41:22 +0000 (07:41 +0200)]
Issue #13183: Revert 0b53b70a40a0 (reenable test on windows)

12 years agofix closes issue13183 - windows test failure
Senthil Kumaran [Wed, 2 May 2012 00:01:02 +0000 (08:01 +0800)]
fix closes issue13183 - windows test failure

12 years agofix windows test failure - issue13183
Senthil Kumaran [Wed, 2 May 2012 00:00:22 +0000 (08:00 +0800)]
fix windows test failure - issue13183

12 years agounicodeobject.c: Add MAX_MAXCHAR() macro to (micro-)optimize the computation
Victor Stinner [Tue, 1 May 2012 23:15:40 +0000 (01:15 +0200)]
unicodeobject.c: Add MAX_MAXCHAR() macro to (micro-)optimize the computation
of the second argument of PyUnicode_New().

 * Create also align_maxchar() function
 * Optimize fix_decimal_and_space_to_ascii(): don't compute the maximum
   character when ch <= 127 (it is ASCII)

12 years agoIssue #14687: Cleanup PyUnicode_Format()
Victor Stinner [Tue, 1 May 2012 22:41:57 +0000 (00:41 +0200)]
Issue #14687: Cleanup PyUnicode_Format()

12 years agoIssue #14687: Optimize str%args
Victor Stinner [Tue, 1 May 2012 22:29:36 +0000 (00:29 +0200)]
Issue #14687: Optimize str%args

 * formatfloat() uses unicode_fromascii() instead of PyUnicode_DecodeASCII()
   to not have to check characters, we know that it is really ASCII
 * Use PyUnicode_FromOrdinal() instead of _PyUnicode_FromUCS4() to format
   a character: if avoids a call to ucs4lib_find_max_char() to compute
   the maximum character (whereas we already know it, it is just the character
   itself)

12 years agoMerge sphinx changes
Martin v. Löwis [Tue, 1 May 2012 16:15:13 +0000 (18:15 +0200)]
Merge sphinx changes

12 years agodon't use assertEqual for test for bool equality
Benjamin Peterson [Tue, 1 May 2012 15:14:32 +0000 (11:14 -0400)]
don't use assertEqual for test for bool equality

12 years agoInclude micro version even if it is 0.
Martin v. Löwis [Tue, 1 May 2012 14:37:44 +0000 (16:37 +0200)]
Include micro version even if it is 0.

12 years agoInclude micro version even if it is 0.
Martin v. Löwis [Tue, 1 May 2012 14:31:18 +0000 (16:31 +0200)]
Include micro version even if it is 0.

12 years agoInclude micro version even if it is 0.
Martin v. Löwis [Tue, 1 May 2012 14:27:55 +0000 (16:27 +0200)]
Include micro version even if it is 0.

12 years agomerge 3.2 (#14699)
Benjamin Peterson [Tue, 1 May 2012 13:51:46 +0000 (09:51 -0400)]
merge 3.2 (#14699)

12 years agofix calling the classmethod descriptor directly (closes #14699)
Benjamin Peterson [Tue, 1 May 2012 13:51:09 +0000 (09:51 -0400)]
fix calling the classmethod descriptor directly (closes #14699)

12 years agostrip is_ prefixes on clock_info fields
Benjamin Peterson [Tue, 1 May 2012 13:38:34 +0000 (09:38 -0400)]
strip is_ prefixes on clock_info fields

12 years agoCheck extract_version when opening a zipfile.
Martin v. Löwis [Tue, 1 May 2012 12:08:22 +0000 (14:08 +0200)]
Check extract_version when opening a zipfile.

12 years agoUpdate timeit documentation w.r.t default timer changes.
Georg Brandl [Tue, 1 May 2012 09:59:36 +0000 (11:59 +0200)]
Update timeit documentation w.r.t default timer changes.

12 years agoAdd an option to timeit to use time.process_time() and mark -t and -c as deprecated.
Georg Brandl [Tue, 1 May 2012 09:56:22 +0000 (11:56 +0200)]
Add an option to timeit to use time.process_time() and mark -t and -c as deprecated.

12 years agoAdded tag v3.3.0a3 for changeset 0b53b70a40a0
Georg Brandl [Tue, 1 May 2012 07:57:42 +0000 (09:57 +0200)]
Added tag v3.3.0a3 for changeset 0b53b70a40a0

12 years agoDisable test_13183 temporarily on Windows for 3.3a3 release. v3.3.0a3
Georg Brandl [Tue, 1 May 2012 07:57:34 +0000 (09:57 +0200)]
Disable test_13183 temporarily on Windows for 3.3a3 release.

12 years agoBump to 3.3.0a3.
Georg Brandl [Tue, 1 May 2012 07:35:18 +0000 (09:35 +0200)]
Bump to 3.3.0a3.

12 years agoSuspicious markup check.
Georg Brandl [Tue, 1 May 2012 07:29:56 +0000 (09:29 +0200)]
Suspicious markup check.

12 years agoRegenerate pydoc topics.
Georg Brandl [Tue, 1 May 2012 07:26:47 +0000 (09:26 +0200)]
Regenerate pydoc topics.

12 years agotest_pdb: fix failure of test_issue13183 in debug mode, and make sure files are clean...
Georg Brandl [Tue, 1 May 2012 07:21:16 +0000 (09:21 +0200)]
test_pdb: fix failure of test_issue13183 in debug mode, and make sure files are cleaned up.

12 years agoAdd missing comma in __all__ list.
Georg Brandl [Tue, 1 May 2012 07:00:59 +0000 (09:00 +0200)]
Add missing comma in __all__ list.

12 years agoRecognize unsupported feature "compressed patch data set" from zip 2.7.
Martin v. Löwis [Tue, 1 May 2012 06:44:08 +0000 (08:44 +0200)]
Recognize unsupported feature "compressed patch data set" from zip 2.7.

12 years agoDetect unsupported compression types.
Martin v. Löwis [Tue, 1 May 2012 06:38:01 +0000 (08:38 +0200)]
Detect unsupported compression types.

12 years agoIssue #14371: Support bzip2 in zipfile module.
Martin v. Löwis [Tue, 1 May 2012 05:58:44 +0000 (07:58 +0200)]
Issue #14371: Support bzip2 in zipfile module.
Patch by Serhiy Storchaka.

12 years agoMove make_key() out of the decorator body. Make keys that only need to be hashed...
Raymond Hettinger [Tue, 1 May 2012 05:32:16 +0000 (22:32 -0700)]
Move make_key() out of the decorator body. Make keys that only need to be hashed once.

12 years agoUse a flag to indicate when the circular queue is fully populated and stable.
Raymond Hettinger [Tue, 1 May 2012 03:48:55 +0000 (20:48 -0700)]
Use a flag to indicate when the circular queue is fully populated and stable.

12 years agoissue13183 - Fix pdb skipping frames after hitting a breakpoint and running step...
Senthil Kumaran [Tue, 1 May 2012 02:37:11 +0000 (10:37 +0800)]
issue13183 - Fix pdb skipping frames after hitting a breakpoint and running step. Patch by Xavier de Gaye

12 years agoissue13183 - Fix pdb skipping frames after hitting a breakpoint and running step...
Senthil Kumaran [Tue, 1 May 2012 02:07:49 +0000 (10:07 +0800)]
issue13183 - Fix pdb skipping frames after hitting a breakpoint and running step. Patch by Xavier de Gaye

12 years agoHandle a possible race condition
Raymond Hettinger [Mon, 30 Apr 2012 21:14:28 +0000 (14:14 -0700)]
Handle a possible race condition

12 years agoIssue #10433: merge
Ned Deily [Mon, 30 Apr 2012 18:15:38 +0000 (11:15 -0700)]
Issue #10433: merge

12 years agoIssue #10433: Document unique behavior of 'os.getgroups' on Mac OS X.
Ned Deily [Mon, 30 Apr 2012 18:14:02 +0000 (11:14 -0700)]
Issue #10433: Document unique behavior of 'os.getgroups' on Mac OS X.

12 years ago#14558: merge with 3.2.
Ezio Melotti [Mon, 30 Apr 2012 16:11:11 +0000 (19:11 +0300)]
#14558: merge with 3.2.

12 years ago#14558: document the module, argv, and testLoader args of unittest.main.
Ezio Melotti [Mon, 30 Apr 2012 16:10:28 +0000 (19:10 +0300)]
#14558: document the module, argv, and testLoader args of unittest.main.

12 years agoIssue11352 - Update cgi module docs
Senthil Kumaran [Mon, 30 Apr 2012 14:43:46 +0000 (22:43 +0800)]
Issue11352 - Update cgi module docs

12 years agoIssue11352 - Update cgi module docs
Senthil Kumaran [Mon, 30 Apr 2012 14:43:13 +0000 (22:43 +0800)]
Issue11352 - Update cgi module docs

12 years agochange insertdict to not steal references (#13903)
Benjamin Peterson [Mon, 30 Apr 2012 14:23:40 +0000 (10:23 -0400)]
change insertdict to not steal references (#13903)

12 years agoIssue #14669: Skip multiprocessing connection pickling test on MacOSX
Richard Oudkerk [Mon, 30 Apr 2012 13:48:51 +0000 (14:48 +0100)]
Issue #14669: Skip multiprocessing connection pickling test on MacOSX

Passing of fds is unreliable on MacOSX, compare issues #6560 and #12958.

12 years agoMinor fix for multiprocessing unit test
Richard Oudkerk [Mon, 30 Apr 2012 13:48:50 +0000 (14:48 +0100)]
Minor fix for multiprocessing unit test

Read from socket might have returned partial message.

12 years agoMark multiprocessing files with "Licensed to PSF under a Contributor Agreement"
Richard Oudkerk [Mon, 30 Apr 2012 11:13:55 +0000 (12:13 +0100)]
Mark multiprocessing files with "Licensed to PSF under a Contributor Agreement"
instead of BSD licence.

12 years agoReview of doc changes re PEP 418.
Georg Brandl [Mon, 30 Apr 2012 10:50:30 +0000 (12:50 +0200)]
Review of doc changes re PEP 418.

12 years agoMerge with 3.2: issue #14433
Martin v. Löwis [Mon, 30 Apr 2012 04:20:37 +0000 (06:20 +0200)]
Merge with 3.2: issue #14433

12 years agoIssue #14433: Prevent msvcrt crash in interactive prompt when stdin is closed.
Martin v. Löwis [Mon, 30 Apr 2012 04:10:41 +0000 (06:10 +0200)]
Issue #14433: Prevent msvcrt crash in interactive prompt when stdin is closed.

12 years agomerge
Victor Stinner [Mon, 30 Apr 2012 03:24:04 +0000 (05:24 +0200)]
merge

12 years agoIssue #14687: Avoid an useless duplicated string in PyUnicode_Format()
Victor Stinner [Mon, 30 Apr 2012 03:21:52 +0000 (05:21 +0200)]
Issue #14687: Avoid an useless duplicated string in PyUnicode_Format()

12 years agoIssue #14687: Cleanup PyUnicode_Format()
Victor Stinner [Mon, 30 Apr 2012 03:19:21 +0000 (05:19 +0200)]
Issue #14687: Cleanup PyUnicode_Format()

12 years agoTrack the cache size directly.
Raymond Hettinger [Mon, 30 Apr 2012 01:09:02 +0000 (18:09 -0700)]
Track the cache size directly.

12 years agoWrite the What's New for the importlib stuff.
Brett Cannon [Mon, 30 Apr 2012 00:59:41 +0000 (20:59 -0400)]
Write the What's New for the importlib stuff.

12 years agoIssue #14428: Remove test_process_time_threads() from test_time
Victor Stinner [Sun, 29 Apr 2012 23:39:57 +0000 (01:39 +0200)]
Issue #14428: Remove test_process_time_threads() from test_time

The test is unstable and it's not really interesting to test exactly how
threads are handled.

12 years agoIssue #14428: Make test_process_time_threads() less strict
Victor Stinner [Sun, 29 Apr 2012 22:51:31 +0000 (00:51 +0200)]
Issue #14428: Make test_process_time_threads() less strict

12 years agomerged
Alexander Belopolsky [Sun, 29 Apr 2012 22:20:05 +0000 (18:20 -0400)]
merged

12 years agofixed test_imaplib failure on Win
Alexander Belopolsky [Sun, 29 Apr 2012 22:16:46 +0000 (18:16 -0400)]
fixed test_imaplib failure on Win

12 years agomerge
Raymond Hettinger [Sun, 29 Apr 2012 21:57:05 +0000 (14:57 -0700)]
merge