]> granicus.if.org Git - python/log
python
12 years agoUndo a bad mq management thingy.
Brett Cannon [Thu, 9 Feb 2012 00:11:53 +0000 (19:11 -0500)]
Undo a bad mq management thingy.

12 years agoWhitespace normalization.
Brett Cannon [Wed, 8 Feb 2012 23:55:37 +0000 (18:55 -0500)]
Whitespace normalization.

12 years agoClarify a NEWS entry.
Brett Cannon [Wed, 8 Feb 2012 23:53:46 +0000 (18:53 -0500)]
Clarify a NEWS entry.

12 years agoUse the cwd when the empty string is found in sys.path. This leads to
Brett Cannon [Wed, 8 Feb 2012 23:52:56 +0000 (18:52 -0500)]
Use the cwd when the empty string is found in sys.path. This leads to
__file__ being an absolute path when the module is found in the
current directory.

12 years agoMove setup code from importlib.__init__ to
Brett Cannon [Wed, 8 Feb 2012 23:50:22 +0000 (18:50 -0500)]
Move setup code from importlib.__init__ to
importlib._bootstrap._setup().

12 years agoDon't fail in the face of a lacking attribute when wrapping a
Brett Cannon [Wed, 8 Feb 2012 23:44:14 +0000 (18:44 -0500)]
Don't fail in the face of a lacking attribute when wrapping a
function.

12 years agoget_terminal_size() can also fail with ENOTTY if the fd is not connected to a terminal.
Antoine Pitrou [Wed, 8 Feb 2012 23:11:00 +0000 (00:11 +0100)]
get_terminal_size() can also fail with ENOTTY if the fd is not connected to a terminal.

12 years agoRelax tests to fix buildbot failure
Antoine Pitrou [Wed, 8 Feb 2012 22:48:59 +0000 (23:48 +0100)]
Relax tests to fix buildbot failure

12 years agoIssue #13609: Add two functions to query the terminal size:
Antoine Pitrou [Wed, 8 Feb 2012 22:28:36 +0000 (23:28 +0100)]
Issue #13609: Add two functions to query the terminal size:
os.get_terminal_size (low level) and shutil.get_terminal_size (high level).
Patch by Zbigniew Jędrzejewski-Szmek.

12 years agoBackout f8409b3d6449: the PEP 410 is not accepted yet
Victor Stinner [Wed, 8 Feb 2012 22:03:19 +0000 (23:03 +0100)]
Backout f8409b3d6449: the PEP 410 is not accepted yet

12 years agoIssue #13845: Fix NEWS entry, the change is specific to Windows
Victor Stinner [Wed, 8 Feb 2012 21:53:24 +0000 (22:53 +0100)]
Issue #13845: Fix NEWS entry, the change is specific to Windows

12 years agoPEP 410
Victor Stinner [Wed, 8 Feb 2012 13:31:50 +0000 (14:31 +0100)]
PEP 410

12 years agoSkip test_threading.test_reinit_tls_after_fork() on platforms where fork()
Charles-François Natali [Wed, 8 Feb 2012 20:30:02 +0000 (21:30 +0100)]
Skip test_threading.test_reinit_tls_after_fork() on platforms where fork()
can't be called reliably from a worker thread.

12 years agoSkip test_threading.test_reinit_tls_after_fork() on platforms where fork()
Charles-François Natali [Wed, 8 Feb 2012 20:29:11 +0000 (21:29 +0100)]
Skip test_threading.test_reinit_tls_after_fork() on platforms where fork()
can't be called reliably from a worker thread.

12 years agoIssue #8184: multiprocessing: On Windows, don't set SO_REUSEADDR on Connection
Charles-François Natali [Wed, 8 Feb 2012 20:15:58 +0000 (21:15 +0100)]
Issue #8184: multiprocessing: On Windows, don't set SO_REUSEADDR on Connection
sockets, and set FILE_FLAG_FIRST_PIPE_INSTANCE on named pipes, to make sure two
listeners can't bind to the same socket/pipe (or any existing socket/pipe).

12 years agoIssue #13964: Skip os.*utime*() tests if os.stat() doesn't support timestamp
Victor Stinner [Wed, 8 Feb 2012 03:09:37 +0000 (04:09 +0100)]
Issue #13964: Skip os.*utime*() tests if os.stat() doesn't support timestamp
with a subsecond resolution

12 years agoIssue #13964: Split os.*utime*() subsecond tests into multiple tests to help
Victor Stinner [Wed, 8 Feb 2012 02:36:25 +0000 (03:36 +0100)]
Issue #13964: Split os.*utime*() subsecond tests into multiple tests to help
debugging

12 years agoIssue #13964: Test also os.futimesat()
Victor Stinner [Wed, 8 Feb 2012 02:07:25 +0000 (03:07 +0100)]
Issue #13964: Test also os.futimesat()

12 years agoIssue #13964: Write tests for new os.*utime*() functions
Victor Stinner [Wed, 8 Feb 2012 02:01:11 +0000 (03:01 +0100)]
Issue #13964: Write tests for new os.*utime*() functions

12 years agoWhat's New in 3.3: reorder modules
Victor Stinner [Wed, 8 Feb 2012 00:48:34 +0000 (01:48 +0100)]
What's New in 3.3: reorder modules

Remove also duplicate functions in the "os" module section

12 years agoWhat's New in 3.3: Fix time module doc
Victor Stinner [Wed, 8 Feb 2012 00:43:34 +0000 (01:43 +0100)]
What's New in 3.3: Fix time module doc

12 years agoIssue #13845: time.time() now uses GetSystemTimeAsFileTime() instead of ftime()
Victor Stinner [Tue, 7 Feb 2012 22:41:01 +0000 (23:41 +0100)]
Issue #13845: time.time() now uses GetSystemTimeAsFileTime() instead of ftime()
to have a resolution of 100 ns instead of 1 ms (the clock accuracy is between
0.5 ms and 15 ms).

12 years agoIssue #13846: Add time.monotonic(), monotonic clock.
Victor Stinner [Tue, 7 Feb 2012 22:29:46 +0000 (23:29 +0100)]
Issue #13846: Add time.monotonic(), monotonic clock.

12 years agoBackout d2c1521ad0a1: _Py_IDENTIFIER() uses UTF-8 again
Victor Stinner [Tue, 7 Feb 2012 22:05:55 +0000 (23:05 +0100)]
Backout d2c1521ad0a1: _Py_IDENTIFIER() uses UTF-8 again

12 years agoRe-order importlib benchmarks to be consistent. Also print out what implementation...
Brett Cannon [Tue, 7 Feb 2012 14:40:33 +0000 (09:40 -0500)]
Re-order importlib benchmarks to be consistent. Also print out what implementation of __import__ is used.

12 years agoMerge
Brett Cannon [Tue, 7 Feb 2012 14:20:20 +0000 (09:20 -0500)]
Merge

12 years agoHave importlib.test.benchmark test with tabnanny as a medium-sized test.
Brett Cannon [Tue, 7 Feb 2012 14:19:12 +0000 (09:19 -0500)]
Have importlib.test.benchmark test with tabnanny as a medium-sized test.

12 years agoNull merge for reverted fix for #13807.
Vinay Sajip [Mon, 6 Feb 2012 21:25:43 +0000 (21:25 +0000)]
Null merge for reverted fix for #13807.

12 years agoNull merge for reverted fix for #13807.
Vinay Sajip [Mon, 6 Feb 2012 21:24:40 +0000 (21:24 +0000)]
Null merge for reverted fix for #13807.

12 years agoMerge branch '3.2'
Petri Lehtinen [Mon, 6 Feb 2012 20:04:41 +0000 (22:04 +0200)]
Merge branch '3.2'

12 years agoIssue #10811: Fix recursive usage of cursors. Instead of crashing, raise a Programmin...
Petri Lehtinen [Mon, 9 May 2011 10:24:09 +0000 (12:24 +0200)]
Issue #10811: Fix recursive usage of cursors. Instead of crashing, raise a ProgrammingError now.

12 years agoFollowing Nick's suggestion, rename posix.fdlistdir() to posix.flistdir(), to
Charles-François Natali [Mon, 6 Feb 2012 18:54:48 +0000 (19:54 +0100)]
Following Nick's suggestion, rename posix.fdlistdir() to posix.flistdir(), to
be consistent with other functions accepting file descriptors (fdlistdir() was
added in 3.3, so hasn't been released yet).

12 years agomerge 3.2
Benjamin Peterson [Mon, 6 Feb 2012 16:30:05 +0000 (11:30 -0500)]
merge 3.2

12 years agomerge heads
Benjamin Peterson [Mon, 6 Feb 2012 16:29:05 +0000 (11:29 -0500)]
merge heads

12 years agobltinmod is borrowed, so it shouldn't be decrefed
Benjamin Peterson [Mon, 6 Feb 2012 16:28:45 +0000 (11:28 -0500)]
bltinmod is borrowed, so it shouldn't be decrefed

12 years agoFix typos in comments.
Éric Araujo [Mon, 6 Feb 2012 15:12:21 +0000 (16:12 +0100)]
Fix typos in comments.

Reported by David-Sarah Hopwood on the Bitbucket bug tracker of
Tarek’s former verlib/distutils.version project.

12 years agoIssue #10881: merge
Ned Deily [Mon, 6 Feb 2012 00:00:05 +0000 (01:00 +0100)]
Issue #10881: merge

12 years agoIssue #10881: Fix test_site failure with OS X framework builds.
Ned Deily [Sun, 5 Feb 2012 23:58:18 +0000 (00:58 +0100)]
Issue #10881: Fix test_site failure with OS X framework builds.

12 years agoMerge with 3.2 #964437
Terry Jan Reedy [Sun, 5 Feb 2012 20:24:39 +0000 (15:24 -0500)]
Merge with 3.2 #964437

12 years agoIssue 964437 Make IDLE help window non-modal.
Terry Jan Reedy [Sun, 5 Feb 2012 20:14:20 +0000 (15:14 -0500)]
Issue 964437 Make IDLE help window non-modal.
Patch by Guilherme Polo and Roger Serwy.

12 years agoMerge with 3.2
Terry Jan Reedy [Sun, 5 Feb 2012 19:32:37 +0000 (14:32 -0500)]
Merge with 3.2
#13933 refine patch using 'new' builtin

12 years ago#13933 refine patch using 'new' builtin
Terry Jan Reedy [Sun, 5 Feb 2012 19:31:16 +0000 (14:31 -0500)]
#13933 refine patch using 'new' builtin

12 years agoIssue #13734: Add os.fwalk(), a directory walking function yielding file
Charles-François Natali [Sun, 5 Feb 2012 14:15:38 +0000 (15:15 +0100)]
Issue #13734: Add os.fwalk(), a directory walking function yielding file
descriptors.

12 years agoMake lzma docs consistent with other compression modules (cf. changeset 11bd2d32b4e8).
Nadeem Vawda [Sun, 5 Feb 2012 13:07:43 +0000 (15:07 +0200)]
Make lzma docs consistent with other compression modules (cf. changeset 11bd2d32b4e8).

12 years agoMerge edits from 3.2 (#13716, #1040439, #2945, #13770, #6715)
Éric Araujo [Sun, 5 Feb 2012 12:49:59 +0000 (13:49 +0100)]
Merge edits from 3.2 (#13716, #1040439, #2945, #13770, #6715)

12 years agoBranch merge
Éric Araujo [Sun, 5 Feb 2012 12:41:47 +0000 (13:41 +0100)]
Branch merge

12 years agoReally make bztar support in shutil conditional.
Éric Araujo [Sun, 5 Feb 2012 12:40:08 +0000 (13:40 +0100)]
Really make bztar support in shutil conditional.

This dict entry is added a few lines after if the bzip2 module is
available, but removing this line was forgotten.

12 years agoNull merge.
Nadeem Vawda [Sun, 5 Feb 2012 12:30:09 +0000 (14:30 +0200)]
Null merge.

12 years agoClarify note in BZ2File docs about lack of multi-stream support (issue #1625).
Nadeem Vawda [Sun, 5 Feb 2012 12:29:00 +0000 (14:29 +0200)]
Clarify note in BZ2File docs about lack of multi-stream support (issue #1625).

12 years agoBranch merge
Éric Araujo [Sun, 5 Feb 2012 09:48:52 +0000 (10:48 +0100)]
Branch merge

12 years agoStop converting package_data to extra_files in pysetup create (#13712).
Éric Araujo [Sun, 5 Feb 2012 09:26:16 +0000 (10:26 +0100)]
Stop converting package_data to extra_files in pysetup create (#13712).

pysetup create, the setup.cfg creation helper, used to convert
package_data (from an existing setup.py) into extra_files, the
replacement for MANIFEST.in, but these files are only present in sdists,
not installed: they don’t have the same use case at all, so converting
one into the other did not work.

12 years agomerge with 3.2
Georg Brandl [Sun, 5 Feb 2012 08:28:39 +0000 (09:28 +0100)]
merge with 3.2

12 years agoCloses #13944: fix capitalization of class name.
Georg Brandl [Sun, 5 Feb 2012 08:25:22 +0000 (09:25 +0100)]
Closes #13944: fix capitalization of class name.

12 years agoIssue #12142: Fixed reference cycle when importing ctypes
Meador Inge [Sun, 5 Feb 2012 02:38:20 +0000 (20:38 -0600)]
Issue #12142: Fixed reference cycle when importing ctypes

12 years agoIssue #12142: Fixed reference cycle when importing ctypes
Meador Inge [Sun, 5 Feb 2012 02:36:48 +0000 (20:36 -0600)]
Issue #12142: Fixed reference cycle when importing ctypes

12 years ago_Py_Identifier are always ASCII strings
Victor Stinner [Sun, 5 Feb 2012 00:45:45 +0000 (01:45 +0100)]
_Py_Identifier are always ASCII strings

12 years agoNull merge.
Nadeem Vawda [Sat, 4 Feb 2012 21:45:40 +0000 (23:45 +0200)]
Null merge.

12 years agoIssue #1625: Document BZ2File's lack of support for multi-stream inputs.
Nadeem Vawda [Sat, 4 Feb 2012 21:44:49 +0000 (23:44 +0200)]
Issue #1625: Document BZ2File's lack of support for multi-stream inputs.

12 years agoAllow multiple values for package_data in setup.cfg (#11805).
Éric Araujo [Sat, 4 Feb 2012 20:53:07 +0000 (21:53 +0100)]
Allow multiple values for package_data in setup.cfg (#11805).

Even though the resources system obsoletes data_files and package_data
(see bug discussion), package_data still exists to allow compatibility
with distutils and thus an easier transition.  In setup.py, the values
are lists of glob patterns, so the setup.cfg syntax needed a way to
express multiple values too.

Doc for this option will be added later as part of the big packaging doc
patches.  For now, the test serves as example.

Reported by Erik Bray.

12 years agoImprove one packaging test, remove a setuptoolism in another
Éric Araujo [Sat, 4 Feb 2012 20:43:07 +0000 (21:43 +0100)]
Improve one packaging test, remove a setuptoolism in another

12 years agoIssue #13933: merge
Ned Deily [Sat, 4 Feb 2012 17:38:10 +0000 (18:38 +0100)]
Issue #13933: merge

12 years agoIssue #13933: IDLE auto-complete did not work with some imported
Ned Deily [Sat, 4 Feb 2012 17:36:43 +0000 (18:36 +0100)]
Issue #13933: IDLE auto-complete did not work with some imported
module, like hashlib.  (Patch by Roger Serwy)

12 years agoFix failing test on big-endian machines (issue #13806).
Antoine Pitrou [Sat, 4 Feb 2012 15:49:31 +0000 (16:49 +0100)]
Fix failing test on big-endian machines (issue #13806).

12 years agoFix failing test on big-endian machines (issue #13806).
Antoine Pitrou [Sat, 4 Feb 2012 15:44:21 +0000 (16:44 +0100)]
Fix failing test on big-endian machines (issue #13806).

12 years agomerge 3.2
Benjamin Peterson [Sat, 4 Feb 2012 14:56:43 +0000 (09:56 -0500)]
merge 3.2

12 years agothreading primitives now have timeouts
Benjamin Peterson [Sat, 4 Feb 2012 14:55:52 +0000 (09:55 -0500)]
threading primitives now have timeouts

12 years agoIssue #8184: Fix a potential file descriptor leak when a
Charles-François Natali [Sat, 4 Feb 2012 14:12:08 +0000 (15:12 +0100)]
Issue #8184: Fix a potential file descriptor leak when a
multiprocessing.Connection socket can't be bound.

12 years agoIssue #8184: Fix a potential file descriptor leak when a
Charles-François Natali [Sat, 4 Feb 2012 13:55:53 +0000 (14:55 +0100)]
Issue #8184: Fix a potential file descriptor leak when a
multiprocessing.Connection socket can't be bound.

12 years agoDocument that some of LZMAFile.__init__()'s args are keyword-only.
Nadeem Vawda [Sat, 4 Feb 2012 12:06:07 +0000 (14:06 +0200)]
Document that some of LZMAFile.__init__()'s args are keyword-only.

12 years agoMake BZ2File.__init__()'s fileobj argument keyword-only.
Nadeem Vawda [Sat, 4 Feb 2012 11:58:07 +0000 (13:58 +0200)]
Make BZ2File.__init__()'s fileobj argument keyword-only.

12 years agoUpdate docstring for BZ2File.__init__().
Nadeem Vawda [Sat, 4 Feb 2012 11:08:11 +0000 (13:08 +0200)]
Update docstring for BZ2File.__init__().

12 years agoSmall grammar fixes by Mark Summerfield.
Georg Brandl [Sat, 4 Feb 2012 07:55:56 +0000 (08:55 +0100)]
Small grammar fixes by Mark Summerfield.

12 years agomerge 3.2
Benjamin Peterson [Sat, 4 Feb 2012 00:25:01 +0000 (19:25 -0500)]
merge 3.2

12 years agoput returns on their own lines
Benjamin Peterson [Sat, 4 Feb 2012 00:22:31 +0000 (19:22 -0500)]
put returns on their own lines

12 years agomerge 3.2
Benjamin Peterson [Sat, 4 Feb 2012 00:09:38 +0000 (19:09 -0500)]
merge 3.2

12 years agoremove unused import
Benjamin Peterson [Sat, 4 Feb 2012 00:07:30 +0000 (19:07 -0500)]
remove unused import

12 years agoIssue #13861: merge
Ned Deily [Fri, 3 Feb 2012 22:16:11 +0000 (23:16 +0100)]
Issue #13861: merge

12 years agoIssue #13861: Prevent test_apropos* test case failures in test_pydoc.
Ned Deily [Fri, 3 Feb 2012 22:14:37 +0000 (23:14 +0100)]
Issue #13861: Prevent test_apropos* test case failures in test_pydoc.

12 years agoRevert fix for #13807 mistakenly applied in this branch.
Vinay Sajip [Fri, 3 Feb 2012 18:23:05 +0000 (18:23 +0000)]
Revert fix for #13807 mistakenly applied in this branch.

12 years agoMerge
Brett Cannon [Fri, 3 Feb 2012 17:08:32 +0000 (12:08 -0500)]
Merge

12 years agoCheck for errors in creating sub-interpreters when testing the C API.
Brett Cannon [Fri, 3 Feb 2012 17:08:03 +0000 (12:08 -0500)]
Check for errors in creating sub-interpreters when testing the C API.

12 years agoIssue #13777: Add PF_SYSTEM sockets on OS X.
Martin v. Löwis [Fri, 3 Feb 2012 16:44:58 +0000 (17:44 +0100)]
Issue #13777: Add PF_SYSTEM sockets on OS X.
Patch by Michael Goderbauer.

12 years agoIssue #13901: Prevent test_packaging failures on OS X with --enable-shared.
Ned Deily [Fri, 3 Feb 2012 01:46:37 +0000 (02:46 +0100)]
Issue #13901: Prevent test_packaging failures on OS X with --enable-shared.

12 years agomerge
Ned Deily [Fri, 3 Feb 2012 01:45:05 +0000 (02:45 +0100)]
merge

12 years agoIssue #13901: Prevent test_distutils failures on OS X with --enable-shared.
Ned Deily [Fri, 3 Feb 2012 01:42:16 +0000 (02:42 +0100)]
Issue #13901: Prevent test_distutils failures on OS X with --enable-shared.

12 years agoFix small grammatical inconsistency.
Georg Brandl [Thu, 2 Feb 2012 21:22:19 +0000 (22:22 +0100)]
Fix small grammatical inconsistency.

12 years agoNull merge.
Charles-François Natali [Thu, 2 Feb 2012 19:38:46 +0000 (20:38 +0100)]
Null merge.

12 years agoMerge.
Charles-François Natali [Thu, 2 Feb 2012 19:38:10 +0000 (20:38 +0100)]
Merge.

12 years agoMerge.
Charles-François Natali [Thu, 2 Feb 2012 19:37:29 +0000 (20:37 +0100)]
Merge.

12 years agoIssue #13817: After fork(), reinit the ad-hoc TLS implementation earlier to fix
Charles-François Natali [Thu, 2 Feb 2012 19:32:48 +0000 (20:32 +0100)]
Issue #13817: After fork(), reinit the ad-hoc TLS implementation earlier to fix
a random deadlock when fork() is called in a multithreaded process in debug
mode, and make PyOS_AfterFork() more robust.

12 years agoIssue #13817: After fork(), reinit the ad-hoc TLS implementation earlier to fix
Charles-François Natali [Thu, 2 Feb 2012 19:31:42 +0000 (20:31 +0100)]
Issue #13817: After fork(), reinit the ad-hoc TLS implementation earlier to fix
a random deadlock when fork() is called in a multithreaded process in debug
mode, and make PyOS_AfterFork() more robust.

12 years agoMerge branch 3.2
Petri Lehtinen [Thu, 2 Feb 2012 19:23:15 +0000 (21:23 +0200)]
Merge branch 3.2

Closes #13402.

12 years agoDocument absoluteness of sys.executable
Petri Lehtinen [Thu, 2 Feb 2012 18:59:48 +0000 (20:59 +0200)]
Document absoluteness of sys.executable

Closes #13402.

12 years agoMake sqlite3 tests editable with Emacs
Petri Lehtinen [Thu, 2 Feb 2012 15:17:36 +0000 (17:17 +0200)]
Make sqlite3 tests editable with Emacs

Change the coding declaration from ISO-8859-1 to iso-8859-1. Emacs
doesn't understand the former.

12 years agoIssue #1813: merge changeset that reverts a glibc workaround for the
Stefan Krah [Thu, 2 Feb 2012 15:50:10 +0000 (16:50 +0100)]
Issue #1813: merge changeset that reverts a glibc workaround for the
Fedora buildbot.

12 years agoIssue #1813: Revert workaround for a glibc bug on the Fedora buildbot.
Stefan Krah [Thu, 2 Feb 2012 15:40:52 +0000 (16:40 +0100)]
Issue #1813: Revert workaround for a glibc bug on the Fedora buildbot.

12 years agomerge. again.
Brian Curtin [Wed, 1 Feb 2012 21:24:10 +0000 (15:24 -0600)]
merge. again.

12 years agomerge updates
Brian Curtin [Wed, 1 Feb 2012 21:20:03 +0000 (15:20 -0600)]
merge updates

12 years agomerge from 3.2
Brian Curtin [Wed, 1 Feb 2012 21:15:14 +0000 (15:15 -0600)]
merge from 3.2

12 years agoAdd a hint that CSD == Service Pack.
Brian Curtin [Wed, 1 Feb 2012 21:14:00 +0000 (15:14 -0600)]
Add a hint that CSD == Service Pack.

People searcing for the way to get a "service pack" will never find that we
provide it here, and people that find this function won't know what CSD is
until they run the function. On top of this, they won't know what the value
means unless they really have a service pack installed.

CSD, or Customer Service Diagnostics, is apparently no longer used, and was
rarely used term at that. Most references to it online are from
universities making Windows 2000 and XP service packs available to students.