]>
granicus.if.org Git - python/log
Benjamin Peterson [Sun, 29 Sep 2013 14:02:28 +0000 (10:02 -0400)]
merge 3.3 (#19122)
Benjamin Peterson [Sun, 29 Sep 2013 14:01:40 +0000 (10:01 -0400)]
remove duplicate test from test_import (closes #19122)
Antoine Pitrou [Sat, 28 Sep 2013 23:49:07 +0000 (01:49 +0200)]
Issue #4366: Fix building extensions on all platforms when --enable-shared is used.
Antoine Pitrou [Sat, 28 Sep 2013 23:48:40 +0000 (01:48 +0200)]
Issue #4366: Fix building extensions on all platforms when --enable-shared is used.
Benjamin Peterson [Sat, 28 Sep 2013 19:13:10 +0000 (15:13 -0400)]
merge 3.3 (#19115)
Benjamin Peterson [Sat, 28 Sep 2013 19:12:37 +0000 (15:12 -0400)]
fix duplicate test names (closes #19115)
Patch by Xavier de Gaye.
Serhiy Storchaka [Sat, 28 Sep 2013 18:24:43 +0000 (21:24 +0300)]
Issue #18950: Fix miscellaneous bugs in the sunau module.
Au_read.readframes() now updates current file position and reads correct
number of frames from multichannel stream. Au_write.writeframesraw() now
correctly updates current file position. Au_read.getnframes() now returns an
integer (as in Python 2). Au_read and Au_write now correctly works with file
object if start file position is not a zero.
Serhiy Storchaka [Sat, 28 Sep 2013 18:21:39 +0000 (21:21 +0300)]
Issue #18950: Fix miscellaneous bugs in the sunau module.
Au_read.readframes() now updates current file position and reads correct
number of frames from multichannel stream. Au_write.writeframesraw() now
correctly updates current file position. Au_read.getnframes() now returns an
integer (as in Python 2). Au_read and Au_write now correctly works with file
object if start file position is not a zero.
Nick Coghlan [Sat, 28 Sep 2013 14:28:55 +0000 (00:28 +1000)]
Close #18596: Support address sanity checking in clang/GCC
This patch appropriately marks known false alarms in the
small object allocator when address sanity checking is
enabled (patch contributed by Dhiru Kholia).
Nick Coghlan [Sat, 28 Sep 2013 13:50:35 +0000 (23:50 +1000)]
Close #18990: remove root attribute from XMLPullParser
- this was an internal implementation detail for iterparse
- this has been changed to use a new private method instead
- XMLPullParser.close docs are now more explicit about not
returning a root element and instead direct users towards
read_events
- also added missing docstrings and clarified some details
related to exactly *when* events are consumed from the
internal queue
(Initial patch by Stefan Behnel)
Ethan Furman [Sat, 28 Sep 2013 06:02:02 +0000 (23:02 -0700)]
Issue19030: fixed comment that was still referring to a changed descriptor.
Ethan Furman [Sat, 28 Sep 2013 05:58:06 +0000 (22:58 -0700)]
Close #19011: Add documentation on some of the non-standard Enum behavior.
Issues such as iterating and containment on Enum classes, why Enum member
instances do not show up on other Enum members, and how __new__ should
be used.
Serhiy Storchaka [Fri, 27 Sep 2013 19:14:31 +0000 (22:14 +0300)]
Issue #19053: ZipExtFile.read1() with non-zero argument no more returns empty
bytes until end of data.
Serhiy Storchaka [Fri, 27 Sep 2013 19:11:57 +0000 (22:11 +0300)]
Issue #19053: ZipExtFile.read1() with non-zero argument no more returns empty
bytes until end of data.
Vinay Sajip [Fri, 27 Sep 2013 18:08:24 +0000 (19:08 +0100)]
Updated test_logging so that errors don't occur in the absence of threading.
Vinay Sajip [Fri, 27 Sep 2013 17:41:12 +0000 (18:41 +0100)]
Streamlined logging tests by moving common code to a helper function.
Vinay Sajip [Fri, 27 Sep 2013 17:18:28 +0000 (18:18 +0100)]
logging: added support for Unix domain sockets to SocketHandler and DatagramHandler.
Eli Bendersky [Fri, 27 Sep 2013 15:48:19 +0000 (08:48 -0700)]
Fix .hgtouch to list the dependencies for auto-generated AST code correctly.
Issue #19016
Benjamin Peterson [Fri, 27 Sep 2013 13:11:31 +0000 (09:11 -0400)]
merge 3.3
Benjamin Peterson [Fri, 27 Sep 2013 13:11:21 +0000 (09:11 -0400)]
let this work with system Python 2.5
Benjamin Peterson [Fri, 27 Sep 2013 03:43:11 +0000 (23:43 -0400)]
merge 3.3
Benjamin Peterson [Fri, 27 Sep 2013 03:42:53 +0000 (23:42 -0400)]
fix my absurd spelling
Benjamin Peterson [Fri, 27 Sep 2013 02:21:41 +0000 (22:21 -0400)]
merge 3.3 (#19098)
Benjamin Peterson [Fri, 27 Sep 2013 02:17:45 +0000 (22:17 -0400)]
don't scale compiler stack frames if the recursion limit is huge (closes #19098)
Eli Bendersky [Thu, 26 Sep 2013 16:35:39 +0000 (09:35 -0700)]
Move open outside try/finally
Eli Bendersky [Thu, 26 Sep 2013 13:41:36 +0000 (06:41 -0700)]
Don't use fancy new Python features like 'with' - some bots don't have them
and can't bootstrap the parser.
Eli Bendersky [Thu, 26 Sep 2013 13:32:22 +0000 (06:32 -0700)]
Normalize whitespace
Eli Bendersky [Thu, 26 Sep 2013 13:31:32 +0000 (06:31 -0700)]
Small fixes in Parser/asdl.py - no change in functionality.
1. Make it work when invoked directly from the command-line. It was failing
due to a couple of stale function/class usages in the __main__ section.
2. Close the parsed file in the parse() function after opening it.
Ethan Furman [Wed, 25 Sep 2013 14:14:41 +0000 (07:14 -0700)]
Close #19030: improvements to inspect and Enum.
inspect.getmembers and inspect.classify_class_attrs now search the metaclass
mro for types.DynamicClassAttributes (what use to be called
enum._RouteClassAttributeToGetattr); in part this means that these two
functions no longer rely solely on dir().
Besides now returning more accurate information, these improvements also
allow a more helpful help() on Enum classes.
Georg Brandl [Wed, 25 Sep 2013 07:04:23 +0000 (09:04 +0200)]
Fix minor typo.
Serhiy Storchaka [Mon, 23 Sep 2013 20:24:38 +0000 (23:24 +0300)]
Null merge (tkinter.Tkapp.merge() was removed in 3.4).
Serhiy Storchaka [Mon, 23 Sep 2013 20:20:07 +0000 (23:20 +0300)]
Issue #19028: Fixed tkinter.Tkapp.merge() for non-string arguments.
Serhiy Storchaka [Mon, 23 Sep 2013 20:07:00 +0000 (23:07 +0300)]
Issue #18996: TestCase.assertEqual() now more cleverly shorten differing
strings in error report.
Serhiy Storchaka [Mon, 23 Sep 2013 19:49:02 +0000 (22:49 +0300)]
Issue #19034: repr() for tkinter.Tcl_Obj now exposes string reperesentation.
Ethan Furman [Sun, 22 Sep 2013 23:18:19 +0000 (16:18 -0700)]
Close #19025: Better error message when trying to delete an Enum member.
Also slight code reorg for PEP 8 guidelines.
Jason R. Coombs [Sun, 22 Sep 2013 13:33:45 +0000 (09:33 -0400)]
Issue #18978: Update docs to reflect explicitly the ability to set the attribute at the class level.
Jason R. Coombs [Sun, 22 Sep 2013 14:06:24 +0000 (10:06 -0400)]
Close #18978: Merge changes.
Jason R. Coombs [Sun, 22 Sep 2013 13:40:06 +0000 (09:40 -0400)]
Update NEWS
Nick Coghlan [Sun, 22 Sep 2013 12:46:49 +0000 (22:46 +1000)]
Close #18626: add a basic CLI for the inspect module
Nick Coghlan [Sun, 22 Sep 2013 11:32:12 +0000 (21:32 +1000)]
Avoid inconsistent use of 'finalizer'
Nick Coghlan [Sun, 22 Sep 2013 11:26:30 +0000 (21:26 +1000)]
Close #19047: weakref doc cleanups
- be clear finalizers survive automatically
- update for PEP 442 __del__ changes
- mention module cleanup changes and weakref.finalize in What's New
Georg Brandl [Sun, 22 Sep 2013 09:46:51 +0000 (11:46 +0200)]
merge with 3.3
Georg Brandl [Sun, 22 Sep 2013 09:45:52 +0000 (11:45 +0200)]
Closes #19043: remove detailed listing of versions from license files
Since all versions since 2.2 are under the same licensing terms,
this saves the release manager from touching the two files for
very new minor release.
Nick Coghlan [Sun, 22 Sep 2013 09:38:44 +0000 (19:38 +1000)]
Merge from 3.3
Nick Coghlan [Sun, 22 Sep 2013 09:38:16 +0000 (19:38 +1000)]
Fix comment in test_gdb
Raymond Hettinger [Sun, 22 Sep 2013 03:17:31 +0000 (20:17 -0700)]
Note that LINEAR_PROBES can be set to zero.
Raymond Hettinger [Sat, 21 Sep 2013 22:39:49 +0000 (15:39 -0700)]
Minor beautification. Put updates and declarations in a more logical order.
Antoine Pitrou [Sat, 21 Sep 2013 22:14:27 +0000 (00:14 +0200)]
test_gdb: skip pretty-printing of sets with gdb < 7.3
(should fix the failures on OpenIndiana)
Antoine Pitrou [Sat, 21 Sep 2013 21:56:17 +0000 (23:56 +0200)]
test_gdb: dump gdb version in verbose mode
Raymond Hettinger [Sat, 21 Sep 2013 21:07:18 +0000 (14:07 -0700)]
When LINEAR_PROBES=0, let the compiler remove the dead code on its own.
Raymond Hettinger [Sat, 21 Sep 2013 21:02:55 +0000 (14:02 -0700)]
Make the linear probe sequence clearer.
Serhiy Storchaka [Fri, 20 Sep 2013 20:28:27 +0000 (23:28 +0300)]
Merge heads
Serhiy Storchaka [Fri, 20 Sep 2013 20:24:20 +0000 (23:24 +0300)]
Issue #3015: Fixed tkinter with wantobject=False. Any Tcl command call
returned empty string.
Serhiy Storchaka [Fri, 20 Sep 2013 20:21:44 +0000 (23:21 +0300)]
Issue #3015: Fixed tkinter with wantobject=False. Any Tcl command call
returned empty string.
Antoine Pitrou [Fri, 20 Sep 2013 20:19:22 +0000 (22:19 +0200)]
Add a comment making it explicit that itertools.tee() is already 64bit-safe (issue #19049)
Serhiy Storchaka [Fri, 20 Sep 2013 18:26:56 +0000 (21:26 +0300)]
Null merge
Serhiy Storchaka [Fri, 20 Sep 2013 18:24:39 +0000 (21:24 +0300)]
Issue #18050: Fixed an incompatibility of the re module with Python 3.3.0
binaries.
Tim Peters [Fri, 20 Sep 2013 02:06:37 +0000 (21:06 -0500)]
Update internal comments to say _something_ about the "API ID".
Best I can tell, the possible values for this aren't documented anywhere.
Senthil Kumaran [Thu, 19 Sep 2013 07:10:17 +0000 (00:10 -0700)]
Correcting the mistake in
678e3c0d2d99
Merge from 3.3
Addresses Issue #18553: isatty is not Unix only.
Senthil Kumaran [Thu, 19 Sep 2013 07:08:56 +0000 (00:08 -0700)]
Correcting the mistake in
14ba90816930
Addresses Issue #18553: isatty is not Unix only.
R David Murray [Wed, 18 Sep 2013 12:59:47 +0000 (08:59 -0400)]
Merge #14984: only import pwd on POSIX.
Since we have fine grained import locks in 3.4, I moved the
import to where it is actually needed.
R David Murray [Wed, 18 Sep 2013 12:54:00 +0000 (08:54 -0400)]
Merge #14984: only import pwd on POSIX.
R David Murray [Wed, 18 Sep 2013 12:53:26 +0000 (08:53 -0400)]
Merge #14984: only import pwd on POSIX.
R David Murray [Wed, 18 Sep 2013 12:52:38 +0000 (08:52 -0400)]
#14984: only import pwd on POSIX.
R David Murray [Wed, 18 Sep 2013 12:36:36 +0000 (08:36 -0400)]
Merge #19037: adjust file times *before* moving maildir files into place.
R David Murray [Wed, 18 Sep 2013 12:34:40 +0000 (08:34 -0400)]
#19037: adjust file times *before* moving maildir files into place.
This avoids race conditions when other programs are monitoring
the maildir directory. Patch by janzert.
R David Murray [Wed, 18 Sep 2013 11:36:12 +0000 (07:36 -0400)]
Merge merge heads.
R David Murray [Wed, 18 Sep 2013 11:35:30 +0000 (07:35 -0400)]
Merge heads.
R David Murray [Wed, 18 Sep 2013 11:34:13 +0000 (07:34 -0400)]
Merge heads.
doko@ubuntu.com [Wed, 18 Sep 2013 10:13:18 +0000 (12:13 +0200)]
- followup for issue #18997, make _clear_joined_ptr static.
doko@ubuntu.com [Wed, 18 Sep 2013 10:12:28 +0000 (12:12 +0200)]
- followup for issue #18997, make _clear_joined_ptr static.
R David Murray [Wed, 18 Sep 2013 01:28:17 +0000 (21:28 -0400)]
Merge #14984: On POSIX, enforce permissions when reading default .netrc.
R David Murray [Wed, 18 Sep 2013 01:04:50 +0000 (21:04 -0400)]
Merge #14984: On POSIX, enforce permissions when reading default .netrc.
R David Murray [Wed, 18 Sep 2013 00:32:54 +0000 (20:32 -0400)]
Merge #14984: On POSIX, enforce permissions when reading default .netrc.
R David Murray [Wed, 18 Sep 2013 00:30:02 +0000 (20:30 -0400)]
#14984: On POSIX, enforce permissions when reading default .netrc.
Initial patch by Bruno Piguet.
This is implemented as if a useful .netrc file could exist without passwords,
which is possible in the general case; but in fact our netrc implementation
does not support it. Fixing that issue will be an enhancement.
Serhiy Storchaka [Mon, 16 Sep 2013 20:57:00 +0000 (23:57 +0300)]
Issue #18873: The tokenize module, IDLE, 2to3, and the findnocoding.py script
now detect Python source code encoding only in comment lines.
Serhiy Storchaka [Mon, 16 Sep 2013 20:51:56 +0000 (23:51 +0300)]
Issue #18873: The tokenize module, IDLE, 2to3, and the findnocoding.py script
now detect Python source code encoding only in comment lines.
Serhiy Storchaka [Mon, 16 Sep 2013 20:18:10 +0000 (23:18 +0300)]
Issue #17003: Unified the size argument names in the io module with common
practice.
Serhiy Storchaka [Mon, 16 Sep 2013 08:03:59 +0000 (11:03 +0300)]
Issue #19029: Change non-existing since 3.0 StringType to str.
Serhiy Storchaka [Mon, 16 Sep 2013 08:01:31 +0000 (11:01 +0300)]
Issue #19029: Change non-existing since 3.0 StringType to str.
Georg Brandl [Mon, 16 Sep 2013 02:03:12 +0000 (04:03 +0200)]
One more markup fix.
Ethan Furman [Sun, 15 Sep 2013 23:59:35 +0000 (16:59 -0700)]
Close #18693: Enum is now more help() friendly.
Andrew Kuchling [Sun, 15 Sep 2013 22:15:56 +0000 (18:15 -0400)]
#
1565525 : Add traceback.clear_frames() helper function to clear locals ref'd by a traceback
Raymond Hettinger [Sun, 15 Sep 2013 21:57:15 +0000 (14:57 -0700)]
Issue 18771: Make it possible to set the number linear probes at compile-time.
Tim Peters [Sun, 15 Sep 2013 20:40:18 +0000 (15:40 -0500)]
Null merge of 3.3 into default.
Tim Peters [Sun, 15 Sep 2013 20:39:06 +0000 (15:39 -0500)]
Null merge of 3.2 into 3.3.
Tim Peters [Sun, 15 Sep 2013 20:37:25 +0000 (15:37 -0500)]
Null merge of 3.1 into 3.2
Changeset
c39f42f46a05 left a dangling head on 3.1.
Ethan Furman [Sun, 15 Sep 2013 19:34:36 +0000 (12:34 -0700)]
Close #18989: enum members will no longer overwrite other attributes, nor be overwritten by them.
Senthil Kumaran [Sun, 15 Sep 2013 16:37:27 +0000 (09:37 -0700)]
Expose --bind argument for http.server, enable http.server to bind to a user
specified network interface.
Patch contributed by Malte Swart. Addresses issue #17764.
HG :Enter commit message. Lines beginning with 'HG:' are removed.
Georg Brandl [Sun, 15 Sep 2013 08:37:57 +0000 (10:37 +0200)]
Fixup reST syntax errors and streamline docs of PEP 446.
Raymond Hettinger [Sun, 15 Sep 2013 03:52:54 +0000 (20:52 -0700)]
merge
Raymond Hettinger [Sun, 15 Sep 2013 03:51:57 +0000 (20:51 -0700)]
Issue #19018: The heapq.merge() function no longer suppresses IndexError
Ethan Furman [Sun, 15 Sep 2013 01:53:26 +0000 (18:53 -0700)]
Close #18929: inspect.classify_class_attrs will now search the metaclasses (last) to find where an attr was defined.
Ethan Furman [Sun, 15 Sep 2013 01:11:24 +0000 (18:11 -0700)]
Add __reversed__ to Enum. Minor code reorg (moved __members__ to be in alpha order).
Ezio Melotti [Sun, 15 Sep 2013 01:05:04 +0000 (04:05 +0300)]
#18856: merge with 3.3.
Antoine Pitrou [Sun, 15 Sep 2013 00:01:39 +0000 (02:01 +0200)]
Address Terry's comments
Ezio Melotti [Sun, 15 Sep 2013 00:00:42 +0000 (03:00 +0300)]
Merge heads.
Antoine Pitrou [Sat, 14 Sep 2013 19:16:39 +0000 (21:16 +0200)]
Avoid test_logging failure when run after test_unittest, by renaming a conflicting logger
Antoine Pitrou [Sat, 14 Sep 2013 17:45:47 +0000 (19:45 +0200)]
Issue #18937: Add an assertLogs() context manager to unittest.TestCase to ensure that a block of code emits a message using the logging module.
R David Murray [Sat, 14 Sep 2013 17:31:44 +0000 (13:31 -0400)]
#18206: Re-fix license URL.