]>
granicus.if.org Git - python/log
Antoine Pitrou [Sat, 23 Jun 2012 22:30:12 +0000 (00:30 +0200)]
Replace assert() with a more informative fatal error.
Antoine Pitrou [Sat, 23 Jun 2012 22:20:26 +0000 (00:20 +0200)]
Merge
Martin v. Löwis [Sat, 23 Jun 2012 22:22:28 +0000 (00:22 +0200)]
Issue #15102: find python.exe in OutDir, not SolutionDir.
Antoine Pitrou [Sat, 23 Jun 2012 22:20:11 +0000 (00:20 +0200)]
Merge
Antoine Pitrou [Sat, 23 Jun 2012 22:18:27 +0000 (00:18 +0200)]
Use struct member (ht_type) instead of casting pointers.
Martin v. Löwis [Sat, 23 Jun 2012 22:00:30 +0000 (00:00 +0200)]
Issue #11626: Add _SizeT functions to stable ABI.
Martin v. Löwis [Sat, 23 Jun 2012 21:21:48 +0000 (23:21 +0200)]
Fix whitespace.
Martin v. Löwis [Sat, 23 Jun 2012 21:20:45 +0000 (23:20 +0200)]
Issue #15146: Add PyType_FromSpecWithBases. Patch by Robin Schreiber.
Antoine Pitrou [Sat, 23 Jun 2012 20:55:58 +0000 (22:55 +0200)]
Lower test-skipping threshold in test_reprlib
Mark Dickinson [Sat, 23 Jun 2012 20:45:14 +0000 (21:45 +0100)]
Issue #14923: Optimize continuation-byte check in UTF-8 decoding. Patch by Serhiy Storchaka.
Stefan Krah [Sat, 23 Jun 2012 20:18:19 +0000 (22:18 +0200)]
Issue #15102: Fix paths in external-amd64.bat.
Antoine Pitrou [Sat, 23 Jun 2012 20:11:58 +0000 (22:11 +0200)]
Add MSVC-related entries to .hgignore
Antoine Pitrou [Sat, 23 Jun 2012 20:05:11 +0000 (22:05 +0200)]
Avoid depending on directory iteration order in test_shutil
Antoine Pitrou [Sat, 23 Jun 2012 19:32:36 +0000 (21:32 +0200)]
Add debug output to test_shutil
Antoine Pitrou [Sat, 23 Jun 2012 19:28:15 +0000 (21:28 +0200)]
Proper cleanup in test_shutil, even in case of error.
Martin v. Löwis [Sat, 23 Jun 2012 19:07:39 +0000 (21:07 +0200)]
Issue #15102: Use HOST_PYTHON only if it is set.
Hynek Schlawack [Sat, 23 Jun 2012 18:28:32 +0000 (20:28 +0200)]
#4489: Fix usage of fd-based functions to new api introduced earlier today
Also add an explicit test for safe implementation usage on supported platforms.
As a side effect, this commit adds a module-level attribute 'rmtree_is_safe'
which offers introspection whether the current rmtree implementation is safe
against symlink attacks.
Martin v. Löwis [Sat, 23 Jun 2012 17:56:19 +0000 (19:56 +0200)]
Issue #15150: regenerate python3stub.def.
Martin v. Löwis [Sat, 23 Jun 2012 17:51:48 +0000 (19:51 +0200)]
Merge with 3.2
Martin v. Löwis [Sat, 23 Jun 2012 17:36:08 +0000 (19:36 +0200)]
The build target of this makefile is python3.dll, not python32.dll.
Stefan Krah [Sat, 23 Jun 2012 16:57:45 +0000 (18:57 +0200)]
Issue #15102: Allow platform-specific settings for the current project
to override environment variables.
Antoine Pitrou [Sat, 23 Jun 2012 12:42:38 +0000 (14:42 +0200)]
Issue #15142: Fix reference leak when deallocating instances of types created using PyType_FromSpec().
Mark Dickinson [Sat, 23 Jun 2012 11:12:52 +0000 (12:12 +0100)]
Issue #12965: More PyLong_As* clarifications. Thanks Stefan Krah.
Mark Dickinson [Sat, 23 Jun 2012 10:14:22 +0000 (11:14 +0100)]
Issue #12965: Clean up C-API docs for PyLong_AsLongLong(AndOverflow); clarify that __int__ will be called for non-PyLongs
Nick Coghlan [Sat, 23 Jun 2012 10:07:39 +0000 (20:07 +1000)]
Properly test the various builtins lookup cases in inspect.getclosurevars
Hynek Schlawack [Sat, 23 Jun 2012 16:21:11 +0000 (18:21 +0200)]
Fix typo in Misc/NEWS
Hynek Schlawack [Sat, 23 Jun 2012 15:58:42 +0000 (17:58 +0200)]
#4489: Add a shutil.rmtree that isn't suspectible to symlink attacks
It is used automatically on platforms supporting the necessary os.openat() and
os.unlinkat() functions. Main code by Martin von Löwis.
Antoine Pitrou [Sat, 23 Jun 2012 16:11:59 +0000 (18:11 +0200)]
Use non-deprecated speling.
Antoine Pitrou [Sat, 23 Jun 2012 16:09:55 +0000 (18:09 +0200)]
Properly cleanup pep3147 modules in test_import
Antoine Pitrou [Sat, 23 Jun 2012 15:27:56 +0000 (17:27 +0200)]
Try to further debug occasional buildbot failure
Antoine Pitrou [Sat, 23 Jun 2012 14:44:48 +0000 (16:44 +0200)]
On behalf of Nadeem Vawda: issue #10376: micro-optimize reading from a Zipfile.
(patch by Serhiy)
Ezio Melotti [Sat, 23 Jun 2012 13:27:51 +0000 (15:27 +0200)]
#15114: the strict mode of HTMLParser and the HTMLParseError exception are deprecated now that the parser is able to parse invalid markup.
Antoine Pitrou [Sat, 23 Jun 2012 12:45:21 +0000 (14:45 +0200)]
Issue #15142: Fix reference leak when deallocating instances of types created using PyType_FromSpec().
Antoine Pitrou [Sat, 23 Jun 2012 12:19:58 +0000 (14:19 +0200)]
Remove outdated statement
Antoine Pitrou [Sat, 23 Jun 2012 12:17:39 +0000 (14:17 +0200)]
Fix test_re failure under Windows.
Antoine Pitrou [Sat, 23 Jun 2012 11:29:19 +0000 (13:29 +0200)]
Issue #3665: \u and \U escapes are now supported in unicode regular expressions.
Patch by Serhiy Storchaka.
Mark Dickinson [Sat, 23 Jun 2012 11:13:15 +0000 (12:13 +0100)]
Issue #12965: Merge from 3.2.
Georg Brandl [Sat, 23 Jun 2012 10:48:40 +0000 (12:48 +0200)]
Try to fix shutil.which() tests on Windows by fixing a typo introduced in
27f9c26fdd8b in posix_access().
Mark Dickinson [Sat, 23 Jun 2012 10:14:55 +0000 (11:14 +0100)]
Issue #12965: Merge from 3.2.
Nick Coghlan [Sat, 23 Jun 2012 09:52:05 +0000 (19:52 +1000)]
Close #15153: Added inspect.getgeneratorlocals to simplify whitebox testing of generator state updates
Mark Dickinson [Sat, 23 Jun 2012 09:49:36 +0000 (10:49 +0100)]
Issue #12965: Merge from 3.2
Mark Dickinson [Sat, 23 Jun 2012 09:49:12 +0000 (10:49 +0100)]
Issue #12965: Clean up C-API docs for PyLong_AsLong(AndOverflow); clarify that __int__ will be called for non-PyLongs
Nick Coghlan [Sat, 23 Jun 2012 09:39:55 +0000 (19:39 +1000)]
Close #13062: Add inspect.getclosurevars to simplify testing stateful closures
Mark Dickinson [Sat, 23 Jun 2012 08:28:08 +0000 (09:28 +0100)]
merge
Mark Dickinson [Sat, 23 Jun 2012 08:27:47 +0000 (09:27 +0100)]
Issue #14742: test_unparse now only checks a limited number of files unless the 'cpu' resource is specified.
Charles-François Natali [Sat, 23 Jun 2012 08:26:54 +0000 (10:26 +0200)]
Remove useless test (flowinfo is unsigned).
Charles-François Natali [Sat, 23 Jun 2012 08:17:05 +0000 (10:17 +0200)]
Remove useless test (flowinfo is unsigned).
Brian Curtin [Sat, 23 Jun 2012 03:49:12 +0000 (22:49 -0500)]
Fix #15148. Capitalize PATH, hopefully leading to less confusion
Brian Curtin [Sat, 23 Jun 2012 03:48:06 +0000 (22:48 -0500)]
Fix #15148. Make the shutil.which docstring more thorough
Larry Hastings [Sat, 23 Jun 2012 02:50:21 +0000 (19:50 -0700)]
Issue #14626: Fix buildbot issue on OpenIndiana 3.x machines. (Hopefully.)
Brian Curtin [Sat, 23 Jun 2012 02:40:52 +0000 (21:40 -0500)]
Revert unintended change in
973b4806f760
Brian Curtin [Sat, 23 Jun 2012 02:14:34 +0000 (21:14 -0500)]
file was the old arg name from an earlier patch. command matches the implementation
Alexander Belopolsky [Sat, 23 Jun 2012 01:56:42 +0000 (21:56 -0400)]
Issue #15148: Fixed typos in shutil.which() docstring
Alexander Belopolsky [Sat, 23 Jun 2012 01:10:50 +0000 (21:10 -0400)]
fixed whitespace
Alexander Belopolsky [Sat, 23 Jun 2012 01:03:39 +0000 (21:03 -0400)]
Issues #11024: Fixes and additional tests for Time2Internaldate.
Jesus Cea [Sat, 23 Jun 2012 00:58:14 +0000 (02:58 +0200)]
Skip the test only if neccesary - Kernel bug in freebsd9 - #10142: Support for SEEK_HOLE/SEEK_DATA
Jesus Cea [Sat, 23 Jun 2012 00:55:36 +0000 (02:55 +0200)]
Kernel bug in freebsd9 - #10142: Support for SEEK_HOLE/SEEK_DATA
Antoine Pitrou [Sat, 23 Jun 2012 00:12:56 +0000 (02:12 +0200)]
A better repr() for FileFinder
Larry Hastings [Sat, 23 Jun 2012 00:06:48 +0000 (17:06 -0700)]
Issue #14626: Fix buildbot issue on x86 Tiger 3.x.
Larry Hastings [Sat, 23 Jun 2012 00:01:41 +0000 (17:01 -0700)]
Issue #14626: Fix buildbot issues on FreeBSD (AMD64). (Fingers crossed.)
Larry Hastings [Fri, 22 Jun 2012 23:30:09 +0000 (16:30 -0700)]
Issue #14626: Large refactoring of functions / parameters in the os module.
Many functions now support "dir_fd" and "follow_symlinks" parameters;
some also support accepting an open file descriptor in place of of a path
string. Added os.support_* collections as LBYL helpers. Removed many
functions only previously seen in 3.3 alpha releases (often starting with
"f" or "l", or ending with "at"). Originally suggested by Serhiy Storchaka;
implemented by Larry Hastings.
Antoine Pitrou [Fri, 22 Jun 2012 22:49:44 +0000 (00:49 +0200)]
Fix silly mistake in debugging code
Stefan Krah [Fri, 22 Jun 2012 22:31:04 +0000 (00:31 +0200)]
Whitespace.
Larry Hastings [Fri, 22 Jun 2012 22:19:35 +0000 (15:19 -0700)]
Issue #15008: Implement PEP 362 "Signature Objects".
Patch by Yury Selivanov.
Guido van Rossum [Fri, 22 Jun 2012 22:18:38 +0000 (15:18 -0700)]
Merge
Guido van Rossum [Fri, 22 Jun 2012 22:16:09 +0000 (15:16 -0700)]
Speed up base64.urlsafe_{en,de}code().
Antoine Pitrou [Fri, 22 Jun 2012 22:07:38 +0000 (00:07 +0200)]
Add debug output for temporary buildbot failures
Antoine Pitrou [Fri, 22 Jun 2012 21:33:05 +0000 (23:33 +0200)]
Issue #444582: shutil.which() respects relative paths.
Brian Curtin [Fri, 22 Jun 2012 21:03:06 +0000 (16:03 -0500)]
whitespace normalize
Brian Curtin [Fri, 22 Jun 2012 21:00:30 +0000 (16:00 -0500)]
Fix #444582. Add shutil.which function for finding programs on the system path.
Martin v. Löwis [Fri, 22 Jun 2012 20:19:51 +0000 (22:19 +0200)]
Merge heads
Martin v. Löwis [Fri, 22 Jun 2012 20:16:42 +0000 (22:16 +0200)]
Issue #15143: Define _DEBUG when compiling resources.
Antoine Pitrou [Fri, 22 Jun 2012 20:07:24 +0000 (22:07 +0200)]
Merge
Alexander Belopolsky [Fri, 22 Jun 2012 20:09:42 +0000 (16:09 -0400)]
merge
Antoine Pitrou [Fri, 22 Jun 2012 20:07:01 +0000 (22:07 +0200)]
Add a docstring at the top of Tools/ssl/make_ssl_data.py
Alexander Belopolsky [Fri, 22 Jun 2012 20:04:19 +0000 (16:04 -0400)]
Issue #9527: tm_gmtoff has 'correct' sign.
Larry Hastings [Fri, 22 Jun 2012 19:58:36 +0000 (12:58 -0700)]
Issue #14769: Incorporated mildly pedantic feedback from python-dev.
Mostly documentation changes; the code changes are clarifications,
not semantic changes.
Antoine Pitrou [Fri, 22 Jun 2012 19:13:34 +0000 (21:13 +0200)]
Merge
Antoine Pitrou [Fri, 22 Jun 2012 19:12:59 +0000 (21:12 +0200)]
Add forgotten files for #14837.
Antoine Pitrou [Fri, 22 Jun 2012 19:11:52 +0000 (21:11 +0200)]
Issue #14837: SSL errors now have `library` and `reason` attributes describing precisely what happened and in which OpenSSL submodule.
The str() of a SSLError is also enhanced accordingly.
NOTE: this commit creates a reference leak. The leak seems tied to the
use of PyType_FromSpec() to create the SSLError type. The leak is on the
type object when it is instantiated:
>>> e = ssl.SSLError()
>>> sys.getrefcount(ssl.SSLError)
35
>>> e = ssl.SSLError()
>>> sys.getrefcount(ssl.SSLError)
36
>>> e = ssl.SSLError()
>>> sys.getrefcount(ssl.SSLError)
37
David Malcolm [Fri, 22 Jun 2012 18:55:41 +0000 (14:55 -0400)]
Issue #14785: Add sys._debugmallocstats() to help debug low-level memory allocation issues
Kristjan Valur Jonsson [Fri, 22 Jun 2012 18:40:02 +0000 (18:40 +0000)]
Issue #15124: Optimize _thread.LockType deletion and acquisition when
not contested, similar to what _thread.RLock already has.
Alexander Belopolsky [Fri, 22 Jun 2012 18:11:58 +0000 (14:11 -0400)]
Fixed compiler warnings in datetime_astimezone()
Alexander Belopolsky [Fri, 22 Jun 2012 17:23:21 +0000 (13:23 -0400)]
Issue #9527: Fixes for platforms without tm_zone
Alexander Belopolsky [Fri, 22 Jun 2012 16:48:08 +0000 (12:48 -0400)]
merge
Alexander Belopolsky [Fri, 22 Jun 2012 16:46:19 +0000 (12:46 -0400)]
Issue #7582: Use ISO timestamp in diff.py
Jesus Cea [Fri, 22 Jun 2012 16:32:07 +0000 (18:32 +0200)]
Closes #10142: Support for SEEK_HOLE/SEEK_DATA
Alexander Belopolsky [Fri, 22 Jun 2012 16:25:57 +0000 (12:25 -0400)]
Issue #9527: datetime.astimezone() method will now supply a class
timezone instance corresponding to the system local timezone when
called with no arguments.
Alexander Belopolsky [Fri, 22 Jun 2012 16:23:23 +0000 (12:23 -0400)]
Issue #9527: datetime.astimezone() method will now supply a class
timezone instance corresponding to the system local timezone when
called with no arguments.
Larry Hastings [Fri, 22 Jun 2012 10:56:29 +0000 (03:56 -0700)]
Issue #14769: test_capi now has SkipitemTest, which cleverly checks
for "parity" between PyArg_ParseTuple() and the Python/getargs.c static
function skipitem() for all possible "format units".
Martin v. Löwis [Fri, 22 Jun 2012 10:49:59 +0000 (12:49 +0200)]
Whitespace normalization
Martin v. Löwis [Fri, 22 Jun 2012 10:49:08 +0000 (12:49 +0200)]
Add Stable ABI documentation.
Martin v. Löwis [Fri, 22 Jun 2012 10:20:55 +0000 (12:20 +0200)]
Issue #15042: Add PyState_AddModule and PyState_RemoveModule.
Add version guard for Py_LIMITED_API additions.
Issue #15081: Document PyState_FindModule.
Patch by Robin Schreiber.
Hynek Schlawack [Fri, 22 Jun 2012 07:32:22 +0000 (09:32 +0200)]
Simplify code in fileio_init
If an identical code line is in both at the end of if and else, it can as well
stand after the block. :) The code is from
464cf523485e , I didn't see it before
checking the commits in the web interface of course.
Alexander Belopolsky [Fri, 22 Jun 2012 00:48:23 +0000 (20:48 -0400)]
Issue #14653: email.utils.mktime_tz() no longer relies on system
mktime() when timezone offest is supplied.
Alexander Belopolsky [Fri, 22 Jun 2012 00:34:09 +0000 (20:34 -0400)]
Issue #14653: email.utils.mktime_tz() no longer relies on system
mktime() when timezone offest is supplied.
Nadeem Vawda [Thu, 21 Jun 2012 23:40:49 +0000 (01:40 +0200)]
Document the rest of zlib.compressobj()'s arguments.
Original patch by Jim Jewett; see issue 14684.
Nadeem Vawda [Thu, 21 Jun 2012 22:35:57 +0000 (00:35 +0200)]
Tidy up comments from
dd4f7d5c51c7 (zlib compression dictionary support).
Nadeem Vawda [Thu, 21 Jun 2012 21:36:48 +0000 (23:36 +0200)]
Make lzma.{encode,decode}_filter_properties private.
These functions were originally added to support LZMA compression in the zipfile
module, and are not of interest for the majority of users.
They can be made public in 3.4 if there is user interest, but in the meanwhile,
I've opted to present a smaller, simpler API for the module's initial release.
Brian Curtin [Thu, 21 Jun 2012 22:11:45 +0000 (17:11 -0500)]
Merge /features/pep397 changes