]>
granicus.if.org Git - python/log
Raymond Hettinger [Sat, 29 Dec 2007 22:16:24 +0000 (22:16 +0000)]
Improve docs for itertools.groupby(). The use of xrange(0) to create a unique object is less obvious than object().
Raymond Hettinger [Sat, 29 Dec 2007 22:09:34 +0000 (22:09 +0000)]
Simpler documentation for itertools.tee(). Should be backported.
Martin v. Löwis [Sat, 29 Dec 2007 18:49:21 +0000 (18:49 +0000)]
Bug #1699: Define _BSD_SOURCE only on OpenBSD.
Georg Brandl [Sat, 29 Dec 2007 10:57:00 +0000 (10:57 +0000)]
Some cleanup in the docs.
Kurt B. Kaiser [Fri, 28 Dec 2007 04:18:01 +0000 (04:18 +0000)]
Configure Dialog: improved layout for keybinding. Patch 1457 Tal Einat.
Brett Cannon [Tue, 25 Dec 2007 06:44:59 +0000 (06:44 +0000)]
Remove a straggling debugging print line.
Brett Cannon [Tue, 25 Dec 2007 00:14:34 +0000 (00:14 +0000)]
Actually execute the tests for the getter/setter/deleter tests on properties.
Also fix the test by having the test classes inherit from object.
Are the getter/setter/deleter attributes supposed to be able to chain? As of
right now they can't as the property tries to call what the property returns,
which is another property when they are chained.
Brett Cannon [Mon, 24 Dec 2007 23:43:30 +0000 (23:43 +0000)]
Make trailing whitespace explicit (including when it is an all-whitespace
line).
Brett Cannon [Mon, 24 Dec 2007 19:58:25 +0000 (19:58 +0000)]
Fix the docstrings of time.localtime() and gmtime() for the tm_mday field.
Will backport.
Andrew M. Kuchling [Sat, 22 Dec 2007 17:27:02 +0000 (17:27 +0000)]
Add item
Guido van Rossum [Thu, 20 Dec 2007 23:48:28 +0000 (23:48 +0000)]
Improve performance of built-in any()/all() by avoiding PyIter_Next() --
using a trick found in ifilter().
Feel free to backport to 2.5.
Georg Brandl [Thu, 20 Dec 2007 21:03:02 +0000 (21:03 +0000)]
Fix refleak introduced in r59576.
Guido van Rossum [Thu, 20 Dec 2007 17:28:10 +0000 (17:28 +0000)]
Patch #1672 by Joseph Armbruster. Use tempdir() to get a temporary directory.
Brett Cannon [Thu, 20 Dec 2007 10:09:52 +0000 (10:09 +0000)]
Add tests for the warnings module; specifically formatwarning and showwarning.
Still need tests for warn_explicit and simplefilter.
Raymond Hettinger [Thu, 20 Dec 2007 01:25:05 +0000 (01:25 +0000)]
Add comments
Guido van Rossum [Wed, 19 Dec 2007 22:51:13 +0000 (22:51 +0000)]
Patch #1549 by Thomas Herve.
This changes the rules for when __hash__ is inherited slightly,
by allowing it to be inherited when one or more of __lt__, __le__,
__gt__, __ge__ are overridden, as long as __eq__ and __ne__ aren't.
Raymond Hettinger [Wed, 19 Dec 2007 22:14:34 +0000 (22:14 +0000)]
Bigger range for non-extended opargs.
Guido van Rossum [Wed, 19 Dec 2007 19:41:06 +0000 (19:41 +0000)]
Patch #1583 by Adam Olsen.
This adds signal.set_wakeup_fd(fd) which sets a file descriptor to
which a zero byte will be written whenever a C exception handler runs.
I added a simple C API as well, PySignal_SetWakeupFd(fd).
Raymond Hettinger [Wed, 19 Dec 2007 18:13:31 +0000 (18:13 +0000)]
Fix issue 1661: Flags argument silently ignored in re functions with compiled regexes.
Facundo Batista [Wed, 19 Dec 2007 12:53:01 +0000 (12:53 +0000)]
Some minor cleanups. Thanks Mark Dickinson.
Christian Heimes [Wed, 19 Dec 2007 02:37:44 +0000 (02:37 +0000)]
#1629: Renamed Py_Size, Py_Type and Py_Refcnt to Py_SIZE, Py_TYPE and Py_REFCNT. Macros for b/w compatibility are available.
Andrew M. Kuchling [Wed, 19 Dec 2007 02:02:04 +0000 (02:02 +0000)]
Add a bunch of items
Raymond Hettinger [Wed, 19 Dec 2007 00:27:21 +0000 (00:27 +0000)]
Zap a duplicate line
Raymond Hettinger [Wed, 19 Dec 2007 00:21:06 +0000 (00:21 +0000)]
Beef-up tests for dict literals
Raymond Hettinger [Tue, 18 Dec 2007 23:51:15 +0000 (23:51 +0000)]
Users demand iterable input for named tuples. The author capitulates.
Christian Heimes [Tue, 18 Dec 2007 23:22:54 +0000 (23:22 +0000)]
Applied patch #1635: Float patch for inf and nan on Windows (and other platforms).
The patch unifies float("inf") and repr(float("inf")) on all platforms.
Raymond Hettinger [Tue, 18 Dec 2007 22:21:27 +0000 (22:21 +0000)]
Simplify and speedup _asdict() for named tuples.
Christian Heimes [Tue, 18 Dec 2007 21:56:09 +0000 (21:56 +0000)]
Fixed #1649: IDLE error: dictionary changed size during iteration
Raymond Hettinger [Tue, 18 Dec 2007 21:24:09 +0000 (21:24 +0000)]
Give meaning to the oparg for BUILD_MAP: estimated size of the dictionary.
Allows dictionaries to be pre-sized (upto 255 elements) saving time lost
to re-sizes with their attendant mallocs and re-insertions.
Has zero effect on small dictionaries (5 elements or fewer), a slight
benefit for dicts upto 22 elements (because they had to resize once
anyway), and more benefit for dicts upto 255 elements (saving multiple
resizes during the build-up and reducing the number of collisions on
the first insertions). Beyond 255 elements, there is no addional benefit.
Guido van Rossum [Tue, 18 Dec 2007 20:10:42 +0000 (20:10 +0000)]
Issue #1645 by Alberto Bertogli. Fix a comment.
Thomas Heller [Tue, 18 Dec 2007 19:00:34 +0000 (19:00 +0000)]
Issue #1642: Fix segfault in ctypes when trying to delete attributes.
Raymond Hettinger [Tue, 18 Dec 2007 18:26:18 +0000 (18:26 +0000)]
Speed-up dictionary constructor by about 10%.
New opcode, STORE_MAP saves the compiler from awkward stack manipulations
and specializes for dicts using PyDict_SetItem instead of PyObject_SetItem.
Old disassembly:
0 BUILD_MAP 0
3 DUP_TOP
4 LOAD_CONST 1 (1)
7 ROT_TWO
8 LOAD_CONST 2 ('x')
11 STORE_SUBSCR
12 DUP_TOP
13 LOAD_CONST 3 (2)
16 ROT_TWO
17 LOAD_CONST 4 ('y')
20 STORE_SUBSCR
New disassembly:
0 BUILD_MAP 0
3 LOAD_CONST 1 (1)
6 LOAD_CONST 2 ('x')
9 STORE_MAP
10 LOAD_CONST 3 (2)
13 LOAD_CONST 4 ('y')
16 STORE_MAP
Christian Heimes [Tue, 18 Dec 2007 09:12:10 +0000 (09:12 +0000)]
Removed several unused files from the PCbuild9 directory. They are relics from the past.
Christian Heimes [Tue, 18 Dec 2007 09:00:13 +0000 (09:00 +0000)]
Make it a bit easier to test Tcl/Tk and idle from a build dir.
Christian Heimes [Tue, 18 Dec 2007 03:38:03 +0000 (03:38 +0000)]
Fixed for #1601: IDLE not working correctly on Windows (Py30a2/IDLE30a1)
Amaury's ideas works great. Should we build the Python core with WINVER=0x0500 and _WIN32_WINNT=0x0500, too?
Raymond Hettinger [Tue, 18 Dec 2007 00:13:45 +0000 (00:13 +0000)]
Add more namedtuple() test cases. Neaten the code and comments.
Facundo Batista [Mon, 17 Dec 2007 14:18:42 +0000 (14:18 +0000)]
Removed the private _rounding_decision: it was not needed, and the code
is now simpler. Thanks Mark Dickinson.
Georg Brandl [Sun, 16 Dec 2007 23:15:07 +0000 (23:15 +0000)]
Don't use quotes for non-string code.
Georg Brandl [Sun, 16 Dec 2007 23:13:29 +0000 (23:13 +0000)]
Use PEP 8.
Georg Brandl [Sun, 16 Dec 2007 23:11:16 +0000 (23:11 +0000)]
Simplify.
Christian Heimes [Sun, 16 Dec 2007 21:39:43 +0000 (21:39 +0000)]
Fixed #1638: %zd configure test fails on Linux
Georg Brandl [Sun, 16 Dec 2007 19:36:51 +0000 (19:36 +0000)]
Adapt conf.py to new option names.
Georg Brandl [Sun, 16 Dec 2007 16:00:36 +0000 (16:00 +0000)]
Remove curious space-like characters.
Georg Brandl [Sun, 16 Dec 2007 15:59:19 +0000 (15:59 +0000)]
Remove another unnecessary Unicode character.
Georg Brandl [Sun, 16 Dec 2007 15:53:49 +0000 (15:53 +0000)]
Remove gratuitous unicode character.
Georg Brandl [Sun, 16 Dec 2007 15:47:46 +0000 (15:47 +0000)]
Remove orphaned footnote reference.
Georg Brandl [Sun, 16 Dec 2007 11:21:48 +0000 (11:21 +0000)]
Revert dummy commit now that the build slave is building.
Georg Brandl [Sun, 16 Dec 2007 11:06:09 +0000 (11:06 +0000)]
Dummy commit to investigate #1617.
Georg Brandl [Sat, 15 Dec 2007 09:36:37 +0000 (09:36 +0000)]
Argh, wrong version.
Georg Brandl [Sat, 15 Dec 2007 09:34:59 +0000 (09:34 +0000)]
Add note about future import needed for with statement.
Christian Heimes [Sat, 15 Dec 2007 05:38:35 +0000 (05:38 +0000)]
Fixed #1624: Remove output comparison for test_pep277
I had to modify Brett's patch slightly.
Raymond Hettinger [Sat, 15 Dec 2007 00:07:25 +0000 (00:07 +0000)]
Optimize PyList_AsTuple(). Improve cache performance by doing the
pointer copy and object increment in one pass. For small lists,
save the overhead of the call to memcpy() -- this comes up in
calls like f(*listcomp).
Christian Heimes [Fri, 14 Dec 2007 23:42:36 +0000 (23:42 +0000)]
Fixed bug #1628
The detection now works on Unix with Makefile, Makefile with VPATH and on Windows.
Andrew M. Kuchling [Fri, 14 Dec 2007 22:52:36 +0000 (22:52 +0000)]
Bump the version number, and make a few small edits
Andrew M. Kuchling [Fri, 14 Dec 2007 22:41:18 +0000 (22:41 +0000)]
Remove warning about URL
Raymond Hettinger [Fri, 14 Dec 2007 21:51:50 +0000 (21:51 +0000)]
Add usage note
Raymond Hettinger [Fri, 14 Dec 2007 19:19:59 +0000 (19:19 +0000)]
Faster and simpler _replace() method
Georg Brandl [Fri, 14 Dec 2007 19:03:36 +0000 (19:03 +0000)]
Add a section about nested listcomps to the tutorial.
Thanks to Ian Bruntlett and Robert Lehmann.
Raymond Hettinger [Fri, 14 Dec 2007 18:12:21 +0000 (18:12 +0000)]
Update method names for named tuples.
Raymond Hettinger [Fri, 14 Dec 2007 18:08:20 +0000 (18:08 +0000)]
Add line spacing for readability
Christian Heimes [Fri, 14 Dec 2007 04:38:13 +0000 (04:38 +0000)]
Fixed warning in ssl module
Christian Heimes [Fri, 14 Dec 2007 03:02:34 +0000 (03:02 +0000)]
Fixed a warning in _codecs_iso2022.c and some non C89 conform // comments.
Raymond Hettinger [Fri, 14 Dec 2007 02:49:47 +0000 (02:49 +0000)]
Cleaner method naming convention
Christian Heimes [Fri, 14 Dec 2007 02:35:23 +0000 (02:35 +0000)]
Fixed bug #1620: New @spam.getter property syntax modifies the property in place.
I added also the feature that a @prop.getter decorator does not overwrite the doc string of the property if it was given as an argument to property().
Christian Heimes [Fri, 14 Dec 2007 02:33:57 +0000 (02:33 +0000)]
Silence a warning about an unsed variable in debug builds
Raymond Hettinger [Thu, 13 Dec 2007 23:52:59 +0000 (23:52 +0000)]
Small speedup
Raymond Hettinger [Thu, 13 Dec 2007 22:55:52 +0000 (22:55 +0000)]
Simplify implementation of __replace__()
Thomas Heller [Thu, 13 Dec 2007 21:20:29 +0000 (21:20 +0000)]
Ran autoconf.
Guido van Rossum [Thu, 13 Dec 2007 20:50:10 +0000 (20:50 +0000)]
Patch #1608. Someone with access to autoconf 2.61 or higher needs to
run it and check in the resulting configure file.
Christian Heimes [Thu, 13 Dec 2007 19:23:16 +0000 (19:23 +0000)]
Fixed bug #1613: Makefile's VPATH feature is broken
Alexandre Vassalotti [Thu, 13 Dec 2007 17:58:23 +0000 (17:58 +0000)]
Fix issue #
1313119 : urlparse "caches" parses regardless of encoding
Raymond Hettinger [Thu, 13 Dec 2007 00:08:37 +0000 (00:08 +0000)]
Fix bug 1604. deque.__init__() did not clear existing contents like list.__init__. Not a backport candidate.
Christian Heimes [Wed, 12 Dec 2007 18:09:06 +0000 (18:09 +0000)]
Fixed a nasty problem in the xxmodule.c
Gerhard Häring [Tue, 11 Dec 2007 21:07:40 +0000 (21:07 +0000)]
Forward-port of commit 59184.
- Backported a workaround for a bug in SQLite 3.2.x/3.3.x versions where a
statement recompilation with no bound parameters lead to a segfault
- Backported a fix necessary because of an SQLite API change in version
3.5.
This prevents segfaults when executing empty queries, like our test suite
does
Kurt B. Kaiser [Tue, 11 Dec 2007 19:35:12 +0000 (19:35 +0000)]
IDLE_tabbedpages.071101.patch Tal Einat
Cosmetic changes, one bug. Remove tabpage.py, replaced by tabbedpages.py
Georg Brandl [Tue, 11 Dec 2007 16:32:49 +0000 (16:32 +0000)]
Add another GHOP contributor.
Christian Heimes [Tue, 11 Dec 2007 00:54:34 +0000 (00:54 +0000)]
The new float repr causes too much trouble and pain. I'm disabling the feature until we have sorted out the issues on all machines. 64bit machines seem to have issues and Guido has reported even worse.
Guido: It's pretty bad actually -- repr(1e5) comes out as '1.0'... Ditto for
repr(1eN) for most N... Both in 2.6 and in 3.0...
Kurt B. Kaiser [Tue, 11 Dec 2007 00:04:57 +0000 (00:04 +0000)]
format_paragraph_event wasn't returning 'break'
Guido van Rossum [Mon, 10 Dec 2007 23:00:12 +0000 (23:00 +0000)]
Patch #
1643738 by Ulisses Furquim -- make the is_tripped variable
in signalmodule.c more robust. Includes Martin von Loewis's suggestion
to set is_tripped after .tripped.
Christian Heimes [Mon, 10 Dec 2007 22:28:56 +0000 (22:28 +0000)]
Backport of r59456:59458 from py3k to trunk
Issue #1580: New free format floating point representation based on "Floating-Point Printer Sample Code", by Robert G. Burger. For example repr(11./5) now returns '2.2' instead of '2.
2000000000000002 '.
Thanks to noam for the patch! I had to modify doubledigits.c slightly to support X64 and IA64 machines on Windows. I also added the new file to the three project files.
Guido van Rossum [Mon, 10 Dec 2007 20:42:53 +0000 (20:42 +0000)]
Remove a 2.2-ism.
Christian Heimes [Mon, 10 Dec 2007 15:39:09 +0000 (15:39 +0000)]
Stupid save all didn't safe it all ...
Christian Heimes [Mon, 10 Dec 2007 15:12:41 +0000 (15:12 +0000)]
Added wide char api variants of getch and putch to msvcrt module. The wide char methods are required to fix #1578 in py3k. I figured out that they might be useful in 2.6, too.
Georg Brandl [Sun, 9 Dec 2007 22:39:12 +0000 (22:39 +0000)]
Add DocXMLRPCServer test from GHOP task #136, written by Jeff Wheeler.
Georg Brandl [Sun, 9 Dec 2007 22:38:26 +0000 (22:38 +0000)]
Add Jeff Wheeler.
Georg Brandl [Sun, 9 Dec 2007 21:15:07 +0000 (21:15 +0000)]
Two fixes in DocXMLRPCServer:
* remove parameter default that didn't make sense
* properly escape values in output
Thanks to Jeff Wheeler from GHOP!
Georg Brandl [Sun, 9 Dec 2007 08:59:45 +0000 (08:59 +0000)]
Remove all tabs in that file.
Georg Brandl [Sun, 9 Dec 2007 08:54:02 +0000 (08:54 +0000)]
#1575: the Mac readme is now one level up.
Brett Cannon [Sun, 9 Dec 2007 05:09:37 +0000 (05:09 +0000)]
Use a versionchanged directive.
Georg Brandl [Sat, 8 Dec 2007 17:56:07 +0000 (17:56 +0000)]
Adapt style.
Skip Montanaro [Sat, 8 Dec 2007 15:33:24 +0000 (15:33 +0000)]
When splitting, avoid making a copy of the string if the split doesn't find
anything (issue 1538).
Skip Montanaro [Sat, 8 Dec 2007 15:26:16 +0000 (15:26 +0000)]
correct email address
Skip Montanaro [Sat, 8 Dec 2007 15:23:31 +0000 (15:23 +0000)]
+ "context manager"
Skip Montanaro [Sat, 8 Dec 2007 14:37:43 +0000 (14:37 +0000)]
Note that open() is the preferred way to open files (issue 1510).
Georg Brandl [Sat, 8 Dec 2007 11:23:13 +0000 (11:23 +0000)]
Add examples to the datetime documentation. Written for GHOP by "h4wk.cz".
Georg Brandl [Sat, 8 Dec 2007 11:05:36 +0000 (11:05 +0000)]
Fix Eren's name.
Georg Brandl [Sat, 8 Dec 2007 11:05:05 +0000 (11:05 +0000)]
Fix markup in whatsnew, use new directive in ACKS.
Georg Brandl [Sat, 8 Dec 2007 10:56:39 +0000 (10:56 +0000)]
Fix tpyo.
Alexandre Vassalotti [Sat, 8 Dec 2007 04:49:22 +0000 (04:49 +0000)]
Fix issue #1530.
Return an error exit status if not all tests passes.
Guido van Rossum [Sat, 8 Dec 2007 04:38:23 +0000 (04:38 +0000)]
Be (just a bit :) more specific about release date.