]>
granicus.if.org Git - python/log
Christian Heimes [Fri, 4 Jan 2008 13:21:07 +0000 (13:21 +0000)]
Bug #1713: posixpath.ismount() claims symlink to a mountpoint is a mountpoint.
Jeffrey Yasskin [Fri, 4 Jan 2008 08:01:23 +0000 (08:01 +0000)]
Make math.{floor,ceil}({int,long}) return float again for backwards
compatibility after r59671 made them return integral types.
Raymond Hettinger [Fri, 4 Jan 2008 03:22:53 +0000 (03:22 +0000)]
Minor fix-ups to named tuples:
* Make the _replace() method respect subclassing.
* Using property() to make _fields read-only wasn't a good idea.
It caused len(Point._fields) to fail.
* Add note to _cast() about length checking and alternative with the star-operator.
Christian Heimes [Fri, 4 Jan 2008 03:15:05 +0000 (03:15 +0000)]
Moved include "Python.h" in front of other imports to silence a warning.
Christian Heimes [Fri, 4 Jan 2008 02:54:42 +0000 (02:54 +0000)]
Added _struct._clearcache() for regression tests
Christian Heimes [Fri, 4 Jan 2008 02:46:19 +0000 (02:46 +0000)]
Fixed refleak tests for _struct changes
Andrew M. Kuchling [Fri, 4 Jan 2008 02:31:40 +0000 (02:31 +0000)]
Add math items; other edits
Andrew M. Kuchling [Fri, 4 Jan 2008 02:26:00 +0000 (02:26 +0000)]
Typo fix
Amaury Forgeot d'Arc [Fri, 4 Jan 2008 02:04:15 +0000 (02:04 +0000)]
Partial port of r59682 from py3k.
On Windows, when import fails to load a dll module, the message says
"error code 193" instead of a more informative text.
It turns out that FormatMessage needs additional parameters for some error codes.
For example: 193 means "%1 is not a valid Win32 application".
Since it is impossible to know which parameter to pass, we use
FORMAT_MESSAGE_IGNORE_INSERTS to get the raw message, which is still better
than the number.
Christian Heimes [Fri, 4 Jan 2008 02:03:25 +0000 (02:03 +0000)]
Filled in some XXX comments
Christian Heimes [Fri, 4 Jan 2008 01:48:50 +0000 (01:48 +0000)]
Fixed math.copysign() on Windows
Andrew M. Kuchling [Fri, 4 Jan 2008 01:16:12 +0000 (01:16 +0000)]
Add items
Andrew M. Kuchling [Fri, 4 Jan 2008 01:15:50 +0000 (01:15 +0000)]
Markup fixes; grammar tweaks
Christian Heimes [Fri, 4 Jan 2008 00:37:34 +0000 (00:37 +0000)]
Bug #
1481296 : Fixed long(float('nan'))!=0L.
Christian Heimes [Fri, 4 Jan 2008 00:04:52 +0000 (00:04 +0000)]
Fixed #1687: plistlib.py restricts <integer> to Python int when writing
Raymond Hettinger [Fri, 4 Jan 2008 00:01:15 +0000 (00:01 +0000)]
Finish-up the struct module optimizations started at the Iceland NFS sprint.
Guido van Rossum [Thu, 3 Jan 2008 23:54:04 +0000 (23:54 +0000)]
Bug #1301: fixed a bad assert in _tkinter.
Christian Heimes [Thu, 3 Jan 2008 22:32:26 +0000 (22:32 +0000)]
Added copysign(x, y) function to the math module
Christian Heimes [Thu, 3 Jan 2008 22:16:32 +0000 (22:16 +0000)]
Modified PyImport_Import and PyImport_ImportModule to always use absolute imports by calling __import__ with an explicit level of 0
Added a new API function PyImport_ImportModuleNoBlock. It solves the problem with dead locks when mixing threads and imports
Christian Heimes [Thu, 3 Jan 2008 21:14:48 +0000 (21:14 +0000)]
Some build bots don't compile mathmodule. There is an issue with the long definition of pi and euler
Christian Heimes [Thu, 3 Jan 2008 20:23:15 +0000 (20:23 +0000)]
Added math.isinf() and math.isnan()
Guido van Rossum [Thu, 3 Jan 2008 19:12:44 +0000 (19:12 +0000)]
Issue #1700, reported by Nguyen Quan Son, fix by Fredruk Lundh:
Regular Expression inline flags not handled correctly for some unicode
characters. (Forward port from 2.5.2.)
Christian Heimes [Thu, 3 Jan 2008 15:41:30 +0000 (15:41 +0000)]
Issue #1726: Remove Python/atof.c from PCBuild/pythoncore.vcproj
Jeffrey Yasskin [Thu, 3 Jan 2008 02:21:52 +0000 (02:21 +0000)]
Backport PEP 3141 from the py3k branch to the trunk. This includes r50877 (just
the complex_pow part), r56649, r56652, r56715, r57296, r57302, r57359, r57361,
r57372, r57738, r57739, r58017, r58039, r58040, and r59390, and new
documentation. The only significant difference is that round(x) returns a float
to preserve backward-compatibility. See http://bugs.python.org/issue1689.
Guido van Rossum [Wed, 2 Jan 2008 19:00:46 +0000 (19:00 +0000)]
Patch #1696. Don't attempt to close None in dry-run mode.
Christian Heimes [Wed, 2 Jan 2008 18:28:32 +0000 (18:28 +0000)]
Made vs9to8 Unix compatible
Christian Heimes [Wed, 2 Jan 2008 17:43:40 +0000 (17:43 +0000)]
Removed PCbuild8/ directory and added a new build directory for VS 2005
based on the VS 2008 build directory to PC/VS8.0. The script
PCbuild/vs8to9.py was added to sync changes from PCbuild to PC/VS8.0.
Kristjan, the initial creator of the PCbuild8 directory is fine with the replacement. I've moved the new version of the VS 2005 build directory next to the other legacy build directories. The new sync script is based on the work of wreck and syncs changes in the project, property and solution files.
Kurt B. Kaiser [Wed, 2 Jan 2008 05:23:38 +0000 (05:23 +0000)]
Change docstrings to comments so test output will display normally.
Kurt B. Kaiser [Wed, 2 Jan 2008 04:11:28 +0000 (04:11 +0000)]
Issue1177
r58207 and r58247 patch logic is reversed. I noticed this when I
tried to use urllib to retrieve a file which required auth.
Fix that and add a test for 401 error to verify.
Martin v. Löwis [Tue, 1 Jan 2008 23:36:24 +0000 (23:36 +0000)]
Test in PCbuild directory.
Martin v. Löwis [Tue, 1 Jan 2008 23:00:48 +0000 (23:00 +0000)]
Use Visual Studio 2009 on the build slaves.
Martin v. Löwis [Tue, 1 Jan 2008 23:00:00 +0000 (23:00 +0000)]
Don't link with Tix; Tix is loaded dynamically by Tcl.
Martin v. Löwis [Tue, 1 Jan 2008 21:09:07 +0000 (21:09 +0000)]
News item for r59653.
Martin v. Löwis [Tue, 1 Jan 2008 21:08:18 +0000 (21:08 +0000)]
Always convert Text.index result to string.
This improves compatibility with Tcl 8.5, which would
otherwise return textindex objects.
Martin v. Löwis [Tue, 1 Jan 2008 21:05:17 +0000 (21:05 +0000)]
Return results from Python callbacks to Tcl as Tcl objects.
Fixes Tk issue #
1851526
Christian Heimes [Tue, 1 Jan 2008 14:37:32 +0000 (14:37 +0000)]
Added support for new Windows build dirs in PC/ to distutils.sysconfig
Christian Heimes [Tue, 1 Jan 2008 13:58:16 +0000 (13:58 +0000)]
The root of the project is two levels up from PC/VS7.1
Christian Heimes [Tue, 1 Jan 2008 13:52:57 +0000 (13:52 +0000)]
Added new wininst files to msi.py and adjusted some paths
Christian Heimes [Tue, 1 Jan 2008 13:40:26 +0000 (13:40 +0000)]
MSI uses back slashes as path separators
Guido van Rossum [Tue, 1 Jan 2008 04:15:29 +0000 (04:15 +0000)]
Fix an odd error which would only occur close to new year's eve, due
to use of datetime.datetime.now() instead of utcnow() for comparison.
(I think the test can still fail if it's executed pretty much *at*
new year's eve, but that's not worth fixing.)
Neal Norwitz [Mon, 31 Dec 2007 23:48:47 +0000 (23:48 +0000)]
Fix refleak
Christian Heimes [Mon, 31 Dec 2007 19:25:22 +0000 (19:25 +0000)]
Fixed path to _ssl.c in Windows make file, take three ...
Christian Heimes [Mon, 31 Dec 2007 19:23:22 +0000 (19:23 +0000)]
Fixed path to _ssl.c in Windows make file, take two
Christian Heimes [Mon, 31 Dec 2007 19:20:57 +0000 (19:20 +0000)]
Fixed path to _ssl.c in Windows make file
Christian Heimes [Mon, 31 Dec 2007 19:16:56 +0000 (19:16 +0000)]
Fixed path
Christian Heimes [Mon, 31 Dec 2007 16:17:13 +0000 (16:17 +0000)]
Fixed include paths of PC/VS7.1
Christian Heimes [Mon, 31 Dec 2007 15:18:55 +0000 (15:18 +0000)]
Renamed PCBuild9 directory to PCBuild
Christian Heimes [Mon, 31 Dec 2007 15:02:41 +0000 (15:02 +0000)]
Fix paths for build bot, part 2
Christian Heimes [Mon, 31 Dec 2007 14:59:26 +0000 (14:59 +0000)]
Fix paths for build bot
Christian Heimes [Mon, 31 Dec 2007 14:51:18 +0000 (14:51 +0000)]
Moved PCbuild directory to PC/VS7.1
Christian Heimes [Mon, 31 Dec 2007 14:47:07 +0000 (14:47 +0000)]
Added wininst-9.0.exe executable for VS 2008
Integrated bdist_wininst into PCBuild9 directory
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.