]> granicus.if.org Git - python/log
python
17 years agoAdd error-checking to namedtuple's _replace() method.
Raymond Hettinger [Sat, 5 Jan 2008 02:17:24 +0000 (02:17 +0000)]
Add error-checking to namedtuple's _replace() method.

17 years agoImprove namedtuple's _cast() method with a docstring, new name, and error-checking.
Raymond Hettinger [Sat, 5 Jan 2008 01:35:43 +0000 (01:35 +0000)]
Improve namedtuple's _cast() method with a docstring, new name, and error-checking.

17 years agoPatch #1698 by Senthil: allow '@' in username when parsed by urlparse.py.
Guido van Rossum [Sat, 5 Jan 2008 01:21:57 +0000 (01:21 +0000)]
Patch #1698 by Senthil: allow '@' in username when parsed by urlparse.py.

17 years agoPatch #1725 by Mark Dickinson, fixes incorrect conversion of -1e1000
Guido van Rossum [Sat, 5 Jan 2008 00:59:59 +0000 (00:59 +0000)]
Patch #1725 by Mark Dickinson, fixes incorrect conversion of -1e1000
and adds errors for -0x.

17 years agoFix markup
Andrew M. Kuchling [Fri, 4 Jan 2008 18:25:05 +0000 (18:25 +0000)]
Fix markup

17 years agoFix markup
Andrew M. Kuchling [Fri, 4 Jan 2008 18:24:41 +0000 (18:24 +0000)]
Fix markup

17 years agosocket.ioctl is only available on Windows
Christian Heimes [Fri, 4 Jan 2008 15:48:06 +0000 (15:48 +0000)]
socket.ioctl is only available on Windows

17 years agoReverted last transaction. It's the wrong branch.
Christian Heimes [Fri, 4 Jan 2008 15:34:06 +0000 (15:34 +0000)]
Reverted last transaction. It's the wrong branch.

17 years agoAnd here is the rest of Hirokazu Yamamoto's patch for VS6.0 support. Thanks Hiro!
Christian Heimes [Fri, 4 Jan 2008 15:29:00 +0000 (15:29 +0000)]
And here is the rest of Hirokazu Yamamoto's patch for VS6.0 support. Thanks Hiro!

17 years agoAdded interface to Windows' WSAIoctl and a simple example for a network sniffer.
Christian Heimes [Fri, 4 Jan 2008 15:23:30 +0000 (15:23 +0000)]
Added interface to Windows' WSAIoctl and a simple example for a network sniffer.

17 years agoUpdate links to bug/patch tracker
Andrew M. Kuchling [Fri, 4 Jan 2008 14:47:17 +0000 (14:47 +0000)]
Update links to bug/patch tracker

17 years agoIssue #1735: TarFile.extractall() now correctly sets
Lars Gustäbel [Fri, 4 Jan 2008 14:00:33 +0000 (14:00 +0000)]
Issue #1735: TarFile.extractall() now correctly sets
directory permissions and times.

(will backport to 2.5)

17 years agoBug #1713: posixpath.ismount() claims symlink to a mountpoint is a mountpoint.
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.

17 years agoMake math.{floor,ceil}({int,long}) return float again for backwards
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.

17 years agoMinor fix-ups to named tuples:
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.

17 years agoMoved include "Python.h" in front of other imports to silence a warning.
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.

17 years agoAdded _struct._clearcache() for regression tests
Christian Heimes [Fri, 4 Jan 2008 02:54:42 +0000 (02:54 +0000)]
Added _struct._clearcache() for regression tests

17 years agoFixed refleak tests for _struct changes
Christian Heimes [Fri, 4 Jan 2008 02:46:19 +0000 (02:46 +0000)]
Fixed refleak tests for _struct changes

17 years agoAdd math items; other edits
Andrew M. Kuchling [Fri, 4 Jan 2008 02:31:40 +0000 (02:31 +0000)]
Add math items; other edits

17 years agoTypo fix
Andrew M. Kuchling [Fri, 4 Jan 2008 02:26:00 +0000 (02:26 +0000)]
Typo fix

17 years agoPartial port of r59682 from py3k.
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.

17 years agoFilled in some XXX comments
Christian Heimes [Fri, 4 Jan 2008 02:03:25 +0000 (02:03 +0000)]
Filled in some XXX comments

17 years agoFixed math.copysign() on Windows
Christian Heimes [Fri, 4 Jan 2008 01:48:50 +0000 (01:48 +0000)]
Fixed math.copysign() on Windows

17 years agoAdd items
Andrew M. Kuchling [Fri, 4 Jan 2008 01:16:12 +0000 (01:16 +0000)]
Add items

17 years agoMarkup fixes; grammar tweaks
Andrew M. Kuchling [Fri, 4 Jan 2008 01:15:50 +0000 (01:15 +0000)]
Markup fixes; grammar tweaks

17 years agoBug #1481296: Fixed long(float('nan'))!=0L.
Christian Heimes [Fri, 4 Jan 2008 00:37:34 +0000 (00:37 +0000)]
Bug #1481296: Fixed long(float('nan'))!=0L.

17 years agoFixed #1687: plistlib.py restricts <integer> to Python int when writing
Christian Heimes [Fri, 4 Jan 2008 00:04:52 +0000 (00:04 +0000)]
Fixed #1687: plistlib.py restricts <integer> to Python int when writing

17 years agoFinish-up the struct module optimizations started at the Iceland NFS sprint.
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.

17 years agoBug #1301: fixed a bad assert in _tkinter.
Guido van Rossum [Thu, 3 Jan 2008 23:54:04 +0000 (23:54 +0000)]
Bug #1301: fixed a bad assert in _tkinter.

17 years agoAdded copysign(x, y) function to the math module
Christian Heimes [Thu, 3 Jan 2008 22:32:26 +0000 (22:32 +0000)]
Added copysign(x, y) function to the math module

17 years agoModified PyImport_Import and PyImport_ImportModule to always use absolute imports...
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

17 years agoSome build bots don't compile mathmodule. There is an issue with the long definition...
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

17 years agoAdded math.isinf() and math.isnan()
Christian Heimes [Thu, 3 Jan 2008 20:23:15 +0000 (20:23 +0000)]
Added math.isinf() and math.isnan()

17 years agoIssue #1700, reported by Nguyen Quan Son, fix by Fredruk Lundh:
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.)

17 years agoIssue #1726: Remove Python/atof.c from PCBuild/pythoncore.vcproj
Christian Heimes [Thu, 3 Jan 2008 15:41:30 +0000 (15:41 +0000)]
Issue #1726: Remove Python/atof.c from PCBuild/pythoncore.vcproj

17 years agoBackport PEP 3141 from the py3k branch to the trunk. This includes r50877 (just
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.

17 years agoPatch #1696. Don't attempt to close None in dry-run mode.
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.

17 years agoMade vs9to8 Unix compatible
Christian Heimes [Wed, 2 Jan 2008 18:28:32 +0000 (18:28 +0000)]
Made vs9to8 Unix compatible

17 years agoRemoved PCbuild8/ directory and added a new build directory for VS 2005
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.

17 years agoChange docstrings to comments so test output will display normally.
Kurt B. Kaiser [Wed, 2 Jan 2008 05:23:38 +0000 (05:23 +0000)]
Change docstrings to comments so test output will display normally.

17 years agoIssue1177
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.

17 years agoTest in PCbuild directory.
Martin v. Löwis [Tue, 1 Jan 2008 23:36:24 +0000 (23:36 +0000)]
Test in PCbuild directory.

17 years agoUse Visual Studio 2009 on the build slaves.
Martin v. Löwis [Tue, 1 Jan 2008 23:00:48 +0000 (23:00 +0000)]
Use Visual Studio 2009 on the build slaves.

17 years agoDon't link with Tix; Tix is loaded dynamically by Tcl.
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.

17 years agoNews item for r59653.
Martin v. Löwis [Tue, 1 Jan 2008 21:09:07 +0000 (21:09 +0000)]
News item for r59653.

17 years agoAlways convert Text.index result to string.
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.

17 years agoReturn results from Python callbacks to Tcl as Tcl 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

17 years agoAdded support for new Windows build dirs in PC/ to distutils.sysconfig
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

17 years agoThe root of the project is two levels up from PC/VS7.1
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

17 years agoAdded new wininst files to msi.py and adjusted some paths
Christian Heimes [Tue, 1 Jan 2008 13:52:57 +0000 (13:52 +0000)]
Added new wininst files to msi.py and adjusted some paths

17 years agoMSI uses back slashes as path separators
Christian Heimes [Tue, 1 Jan 2008 13:40:26 +0000 (13:40 +0000)]
MSI uses back slashes as path separators

17 years agoFix an odd error which would only occur close to new year's eve, due
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.)

17 years agoFix refleak
Neal Norwitz [Mon, 31 Dec 2007 23:48:47 +0000 (23:48 +0000)]
Fix refleak

17 years agoFixed path to _ssl.c in Windows make file, take three ...
Christian Heimes [Mon, 31 Dec 2007 19:25:22 +0000 (19:25 +0000)]
Fixed path to _ssl.c in Windows make file, take three ...

17 years agoFixed path to _ssl.c in Windows make file, take two
Christian Heimes [Mon, 31 Dec 2007 19:23:22 +0000 (19:23 +0000)]
Fixed path to _ssl.c in Windows make file, take two

17 years agoFixed path to _ssl.c in Windows make file
Christian Heimes [Mon, 31 Dec 2007 19:20:57 +0000 (19:20 +0000)]
Fixed path to _ssl.c in Windows make file

17 years agoFixed path
Christian Heimes [Mon, 31 Dec 2007 19:16:56 +0000 (19:16 +0000)]
Fixed path

17 years agoFixed include paths of PC/VS7.1
Christian Heimes [Mon, 31 Dec 2007 16:17:13 +0000 (16:17 +0000)]
Fixed include paths of PC/VS7.1

17 years agoRenamed PCBuild9 directory to PCBuild
Christian Heimes [Mon, 31 Dec 2007 15:18:55 +0000 (15:18 +0000)]
Renamed PCBuild9 directory to PCBuild

17 years agoFix paths for build bot, part 2
Christian Heimes [Mon, 31 Dec 2007 15:02:41 +0000 (15:02 +0000)]
Fix paths for build bot, part 2

17 years agoFix paths for build bot
Christian Heimes [Mon, 31 Dec 2007 14:59:26 +0000 (14:59 +0000)]
Fix paths for build bot

17 years agoMoved PCbuild directory to PC/VS7.1
Christian Heimes [Mon, 31 Dec 2007 14:51:18 +0000 (14:51 +0000)]
Moved PCbuild directory to PC/VS7.1

17 years agoAdded wininst-9.0.exe executable for VS 2008
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

17 years agoImprove docs for itertools.groupby(). The use of xrange(0) to create a unique object...
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().

17 years agoSimpler documentation for itertools.tee(). Should be backported.
Raymond Hettinger [Sat, 29 Dec 2007 22:09:34 +0000 (22:09 +0000)]
Simpler documentation for itertools.tee().  Should be backported.

17 years agoBug #1699: Define _BSD_SOURCE only on OpenBSD.
Martin v. Löwis [Sat, 29 Dec 2007 18:49:21 +0000 (18:49 +0000)]
Bug #1699: Define _BSD_SOURCE only on OpenBSD.

17 years agoSome cleanup in the docs.
Georg Brandl [Sat, 29 Dec 2007 10:57:00 +0000 (10:57 +0000)]
Some cleanup in the docs.

17 years agoConfigure Dialog: improved layout for keybinding. Patch 1457 Tal Einat.
Kurt B. Kaiser [Fri, 28 Dec 2007 04:18:01 +0000 (04:18 +0000)]
Configure Dialog: improved layout for keybinding.  Patch 1457 Tal Einat.

17 years agoRemove a straggling debugging print line.
Brett Cannon [Tue, 25 Dec 2007 06:44:59 +0000 (06:44 +0000)]
Remove a straggling debugging print line.

17 years agoActually execute the tests for the getter/setter/deleter tests on properties.
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.

17 years agoMake trailing whitespace explicit (including when it is an all-whitespace
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).

17 years agoFix the docstrings of time.localtime() and gmtime() for the tm_mday field.
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.

17 years agoAdd item
Andrew M. Kuchling [Sat, 22 Dec 2007 17:27:02 +0000 (17:27 +0000)]
Add item

17 years agoImprove performance of built-in any()/all() by avoiding PyIter_Next() --
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.

17 years agoFix refleak introduced in r59576.
Georg Brandl [Thu, 20 Dec 2007 21:03:02 +0000 (21:03 +0000)]
Fix refleak introduced in r59576.

17 years agoPatch #1672 by Joseph Armbruster. Use tempdir() to get a temporary directory.
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.

17 years agoAdd tests for the warnings module; specifically formatwarning and showwarning.
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.

17 years agoAdd comments
Raymond Hettinger [Thu, 20 Dec 2007 01:25:05 +0000 (01:25 +0000)]
Add comments

17 years agoPatch #1549 by Thomas Herve.
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.

17 years agoBigger range for non-extended opargs.
Raymond Hettinger [Wed, 19 Dec 2007 22:14:34 +0000 (22:14 +0000)]
Bigger range for non-extended opargs.

17 years agoPatch #1583 by Adam Olsen.
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).

17 years agoFix issue 1661: Flags argument silently ignored in re functions with compiled regexes.
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.

17 years agoSome minor cleanups. Thanks Mark Dickinson.
Facundo Batista [Wed, 19 Dec 2007 12:53:01 +0000 (12:53 +0000)]
Some minor cleanups.  Thanks Mark Dickinson.

17 years ago#1629: Renamed Py_Size, Py_Type and Py_Refcnt to Py_SIZE, Py_TYPE and Py_REFCNT....
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.

17 years agoAdd a bunch of items
Andrew M. Kuchling [Wed, 19 Dec 2007 02:02:04 +0000 (02:02 +0000)]
Add a bunch of items

17 years agoZap a duplicate line
Raymond Hettinger [Wed, 19 Dec 2007 00:27:21 +0000 (00:27 +0000)]
Zap a duplicate line

17 years agoBeef-up tests for dict literals
Raymond Hettinger [Wed, 19 Dec 2007 00:21:06 +0000 (00:21 +0000)]
Beef-up tests for dict literals

17 years agoUsers demand iterable input for named tuples. The author capitulates.
Raymond Hettinger [Tue, 18 Dec 2007 23:51:15 +0000 (23:51 +0000)]
Users demand iterable input for named tuples. The author capitulates.

17 years agoApplied patch #1635: Float patch for inf and nan on Windows (and other platforms).
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.

17 years agoSimplify and speedup _asdict() for named tuples.
Raymond Hettinger [Tue, 18 Dec 2007 22:21:27 +0000 (22:21 +0000)]
Simplify and speedup _asdict() for named tuples.

17 years agoFixed #1649: IDLE error: dictionary changed size during iteration
Christian Heimes [Tue, 18 Dec 2007 21:56:09 +0000 (21:56 +0000)]
Fixed #1649: IDLE error: dictionary changed size during iteration

17 years agoGive meaning to the oparg for BUILD_MAP: estimated size of the dictionary.
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.

17 years agoIssue #1645 by Alberto Bertogli. Fix a comment.
Guido van Rossum [Tue, 18 Dec 2007 20:10:42 +0000 (20:10 +0000)]
Issue #1645 by Alberto Bertogli.  Fix a comment.

17 years agoIssue #1642: Fix segfault in ctypes when trying to delete attributes.
Thomas Heller [Tue, 18 Dec 2007 19:00:34 +0000 (19:00 +0000)]
Issue #1642: Fix segfault in ctypes when trying to delete attributes.

17 years agoSpeed-up dictionary constructor by about 10%.
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

17 years agoRemoved several unused files from the PCbuild9 directory. They are relics from the...
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.

17 years agoMake it a bit easier to test Tcl/Tk and idle from a build dir.
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.

17 years agoFixed for #1601: IDLE not working correctly on Windows (Py30a2/IDLE30a1)
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?

17 years agoAdd more namedtuple() test cases. Neaten the code and comments.
Raymond Hettinger [Tue, 18 Dec 2007 00:13:45 +0000 (00:13 +0000)]
Add more namedtuple() test cases.  Neaten the code and comments.

17 years agoRemoved the private _rounding_decision: it was not needed, and the code
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.