]> granicus.if.org Git - python/log
python
17 years agoMerged revisions 59565-59594 via svnmerge from
Christian Heimes [Mon, 24 Dec 2007 08:52:31 +0000 (08:52 +0000)]
Merged revisions 59565-59594 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r59568 | facundo.batista | 2007-12-19 13:53:01 +0100 (Wed, 19 Dec 2007) | 3 lines

  Some minor cleanups.  Thanks Mark Dickinson.
........
  r59573 | raymond.hettinger | 2007-12-19 19:13:31 +0100 (Wed, 19 Dec 2007) | 1 line

  Fix issue 1661: Flags argument silently ignored in re functions with compiled regexes.
........
  r59574 | guido.van.rossum | 2007-12-19 20:41:06 +0100 (Wed, 19 Dec 2007) | 7 lines

  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).
........
  r59575 | raymond.hettinger | 2007-12-19 23:14:34 +0100 (Wed, 19 Dec 2007) | 1 line

  Bigger range for non-extended opargs.
........
  r59576 | guido.van.rossum | 2007-12-19 23:51:13 +0100 (Wed, 19 Dec 2007) | 5 lines

  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.
........
  r59577 | raymond.hettinger | 2007-12-20 02:25:05 +0100 (Thu, 20 Dec 2007) | 1 line

  Add comments
........
  r59578 | brett.cannon | 2007-12-20 11:09:52 +0100 (Thu, 20 Dec 2007) | 3 lines

  Add tests for the warnings module; specifically formatwarning and showwarning.
  Still need tests for warn_explicit and simplefilter.
........
  r59582 | guido.van.rossum | 2007-12-20 18:28:10 +0100 (Thu, 20 Dec 2007) | 2 lines

  Patch #1672 by Joseph Armbruster.  Use tempdir() to get a temporary directory.
........
  r59584 | georg.brandl | 2007-12-20 22:03:02 +0100 (Thu, 20 Dec 2007) | 2 lines

  Fix refleak introduced in r59576.
........
  r59586 | guido.van.rossum | 2007-12-21 00:48:28 +0100 (Fri, 21 Dec 2007) | 4 lines

  Improve performance of built-in any()/all() by avoiding PyIter_Next() --
  using a trick found in ifilter().
  Feel free to backport to 2.5.
........
  r59591 | andrew.kuchling | 2007-12-22 18:27:02 +0100 (Sat, 22 Dec 2007) | 1 line

  Add item
........

17 years agoDocument os.device_encoding.
Georg Brandl [Fri, 21 Dec 2007 08:45:42 +0000 (08:45 +0000)]
Document os.device_encoding.

17 years agoFix docstring of types.py.
Georg Brandl [Fri, 21 Dec 2007 08:16:54 +0000 (08:16 +0000)]
Fix docstring of types.py.

17 years agoFix role usage.
Georg Brandl [Fri, 21 Dec 2007 08:15:02 +0000 (08:15 +0000)]
Fix role usage.

17 years agoFix thoroughly misleading comment
Nick Coghlan [Fri, 21 Dec 2007 07:31:17 +0000 (07:31 +0000)]
Fix thoroughly misleading comment

17 years agoDrop _PyLong_FitsInLong. Fixes #1666.
Martin v. Löwis [Thu, 20 Dec 2007 22:57:23 +0000 (22:57 +0000)]
Drop _PyLong_FitsInLong. Fixes #1666.

17 years agoFix issue #1667. The _Printer() class was using sys.stdin.readline()
Guido van Rossum [Thu, 20 Dec 2007 18:42:56 +0000 (18:42 +0000)]
Fix issue #1667.  The _Printer() class was using sys.stdin.readline()
instead of input() to read the user's input (since at some point in
the past raw_input() was removed), but the code used to decode the
input wasn't changed.  Fixed it by going back to input(), which has
since been added back with the same semantics as the old raw_input().

17 years agoUpdate to the world tool for Python 3. Provided by quentin.gallet-gilles via
Barry Warsaw [Thu, 20 Dec 2007 15:55:58 +0000 (15:55 +0000)]
Update to the world tool for Python 3.  Provided by quentin.gallet-gilles via
tracker issue 1671:

http://bugs.python.org/issue1671

In addition to updating the code for Py3k, this updates ccTLDs to their
10-Oct-2006 revision.

(Minor stylistic additions and whitespace normalization by Barry.)

17 years agoFixed #1673. I hope it works. I don't have access to a Windows box right now.
Christian Heimes [Thu, 20 Dec 2007 14:44:41 +0000 (14:44 +0000)]
Fixed #1673. I hope it works. I don't have access to a Windows box right now.

17 years agoRemoved test from test_import. It will never work on all systems, see #1377
Christian Heimes [Thu, 20 Dec 2007 13:16:07 +0000 (13:16 +0000)]
Removed test from test_import. It will never work on all systems, see #1377

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:45:37 +0000 (02:45 +0000)]
#1629: Renamed Py_Size, Py_Type and Py_Refcnt to Py_SIZE, Py_TYPE and Py_REFCNT.

17 years agoMerged revisions 59541-59561 via svnmerge from
Christian Heimes [Wed, 19 Dec 2007 02:07:34 +0000 (02:07 +0000)]
Merged revisions 59541-59561 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r59544 | raymond.hettinger | 2007-12-18 01:13:45 +0100 (Tue, 18 Dec 2007) | 1 line

  Add more namedtuple() test cases.  Neaten the code and comments.
........
  r59545 | christian.heimes | 2007-12-18 04:38:03 +0100 (Tue, 18 Dec 2007) | 3 lines

  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?
........
  r59546 | christian.heimes | 2007-12-18 10:00:13 +0100 (Tue, 18 Dec 2007) | 1 line

  Make it a bit easier to test Tcl/Tk and idle from a build dir.
........
  r59547 | christian.heimes | 2007-12-18 10:12:10 +0100 (Tue, 18 Dec 2007) | 1 line

  Removed several unused files from the PCbuild9 directory. They are relics from the past.
........
  r59548 | raymond.hettinger | 2007-12-18 19:26:18 +0100 (Tue, 18 Dec 2007) | 29 lines

  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
........
  r59549 | thomas.heller | 2007-12-18 20:00:34 +0100 (Tue, 18 Dec 2007) | 2 lines

  Issue #1642: Fix segfault in ctypes when trying to delete attributes.
........
  r59551 | guido.van.rossum | 2007-12-18 21:10:42 +0100 (Tue, 18 Dec 2007) | 2 lines

  Issue #1645 by Alberto Bertogli.  Fix a comment.
........
  r59553 | raymond.hettinger | 2007-12-18 22:24:09 +0100 (Tue, 18 Dec 2007) | 12 lines

  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.
........
  r59554 | christian.heimes | 2007-12-18 22:56:09 +0100 (Tue, 18 Dec 2007) | 1 line

  Fixed #1649: IDLE error: dictionary changed size during iteration
........
  r59557 | raymond.hettinger | 2007-12-18 23:21:27 +0100 (Tue, 18 Dec 2007) | 1 line

  Simplify and speedup _asdict() for named tuples.
........
  r59558 | christian.heimes | 2007-12-19 00:22:54 +0100 (Wed, 19 Dec 2007) | 3 lines

  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.
........
  r59559 | raymond.hettinger | 2007-12-19 00:51:15 +0100 (Wed, 19 Dec 2007) | 1 line

  Users demand iterable input for named tuples. The author capitulates.
........
  r59560 | raymond.hettinger | 2007-12-19 01:21:06 +0100 (Wed, 19 Dec 2007) | 1 line

  Beef-up tests for dict literals
........
  r59561 | raymond.hettinger | 2007-12-19 01:27:21 +0100 (Wed, 19 Dec 2007) | 1 line

  Zap a duplicate line
........

17 years agoMerged revisions 59512-59540 via svnmerge from
Christian Heimes [Mon, 17 Dec 2007 20:04:13 +0000 (20:04 +0000)]
Merged revisions 59512-59540 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r59513 | raymond.hettinger | 2007-12-15 01:07:25 +0100 (Sat, 15 Dec 2007) | 6 lines

  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).
........
  r59519 | christian.heimes | 2007-12-15 06:38:35 +0100 (Sat, 15 Dec 2007) | 2 lines

  Fixed #1624: Remove output comparison for test_pep277
  I had to modify Brett's patch slightly.
........
  r59520 | georg.brandl | 2007-12-15 10:34:59 +0100 (Sat, 15 Dec 2007) | 2 lines

  Add note about future import needed for with statement.
........
  r59522 | georg.brandl | 2007-12-15 10:36:37 +0100 (Sat, 15 Dec 2007) | 2 lines

  Argh, wrong version.
........
  r59524 | georg.brandl | 2007-12-16 12:06:09 +0100 (Sun, 16 Dec 2007) | 2 lines

  Dummy commit to investigate #1617.
........
  r59525 | georg.brandl | 2007-12-16 12:21:48 +0100 (Sun, 16 Dec 2007) | 2 lines

  Revert dummy commit now that the build slave is building.
........
  r59527 | georg.brandl | 2007-12-16 16:47:46 +0100 (Sun, 16 Dec 2007) | 2 lines

  Remove orphaned footnote reference.
........
  r59528 | georg.brandl | 2007-12-16 16:53:49 +0100 (Sun, 16 Dec 2007) | 2 lines

  Remove gratuitous unicode character.
........
  r59529 | georg.brandl | 2007-12-16 16:59:19 +0100 (Sun, 16 Dec 2007) | 2 lines

  Remove another unnecessary Unicode character.
........
  r59530 | georg.brandl | 2007-12-16 17:00:36 +0100 (Sun, 16 Dec 2007) | 2 lines

  Remove curious space-like characters.
........
  r59532 | georg.brandl | 2007-12-16 20:36:51 +0100 (Sun, 16 Dec 2007) | 2 lines

  Adapt conf.py to new option names.
........
  r59533 | christian.heimes | 2007-12-16 22:39:43 +0100 (Sun, 16 Dec 2007) | 1 line

  Fixed #1638: %zd configure test fails on Linux
........
  r59536 | georg.brandl | 2007-12-17 00:11:16 +0100 (Mon, 17 Dec 2007) | 2 lines

  Simplify.
........
  r59537 | georg.brandl | 2007-12-17 00:13:29 +0100 (Mon, 17 Dec 2007) | 2 lines

  Use PEP 8.
........
  r59539 | georg.brandl | 2007-12-17 00:15:07 +0100 (Mon, 17 Dec 2007) | 2 lines

  Don't use quotes for non-string code.
........
  r59540 | facundo.batista | 2007-12-17 15:18:42 +0100 (Mon, 17 Dec 2007) | 4 lines

  Removed the private _rounding_decision: it was not needed, and the code
  is now simpler.  Thanks Mark Dickinson.
........

17 years agoFix sys.maxsize docs.
Georg Brandl [Sat, 15 Dec 2007 09:55:35 +0000 (09:55 +0000)]
Fix sys.maxsize docs.

17 years agoFixed #1630
Christian Heimes [Sat, 15 Dec 2007 01:28:04 +0000 (01:28 +0000)]
Fixed #1630
sys.maxint was still documented and sys.float_info an sys.subversion were missing

17 years agoMerged revisions 59488-59511 via svnmerge from
Christian Heimes [Sat, 15 Dec 2007 01:27:15 +0000 (01:27 +0000)]
Merged revisions 59488-59511 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r59489 | christian.heimes | 2007-12-14 03:33:57 +0100 (Fri, 14 Dec 2007) | 1 line

  Silence a warning about an unsed variable in debug builds
........
  r59490 | christian.heimes | 2007-12-14 03:35:23 +0100 (Fri, 14 Dec 2007) | 2 lines

  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().
........
  r59491 | raymond.hettinger | 2007-12-14 03:49:47 +0100 (Fri, 14 Dec 2007) | 1 line

  Cleaner method naming convention
........
  r59492 | christian.heimes | 2007-12-14 04:02:34 +0100 (Fri, 14 Dec 2007) | 1 line

  Fixed a warning in _codecs_iso2022.c and some non C89 conform // comments.
........
  r59493 | christian.heimes | 2007-12-14 05:38:13 +0100 (Fri, 14 Dec 2007) | 1 line

  Fixed warning in ssl module
........
  r59500 | raymond.hettinger | 2007-12-14 19:08:20 +0100 (Fri, 14 Dec 2007) | 1 line

  Add line spacing for readability
........
  r59501 | raymond.hettinger | 2007-12-14 19:12:21 +0100 (Fri, 14 Dec 2007) | 3 lines

  Update method names for named tuples.
........
  r59503 | georg.brandl | 2007-12-14 20:03:36 +0100 (Fri, 14 Dec 2007) | 3 lines

  Add a section about nested listcomps to the tutorial.
  Thanks to Ian Bruntlett and Robert Lehmann.
........
  r59504 | raymond.hettinger | 2007-12-14 20:19:59 +0100 (Fri, 14 Dec 2007) | 1 line

  Faster and simpler _replace() method
........
  r59505 | raymond.hettinger | 2007-12-14 22:51:50 +0100 (Fri, 14 Dec 2007) | 1 line

  Add usage note
........
  r59507 | andrew.kuchling | 2007-12-14 23:41:18 +0100 (Fri, 14 Dec 2007) | 1 line

  Remove warning about URL
........
  r59510 | andrew.kuchling | 2007-12-14 23:52:36 +0100 (Fri, 14 Dec 2007) | 1 line

  Bump the version number, and make a few small edits
........
  r59511 | christian.heimes | 2007-12-15 00:42:36 +0100 (Sat, 15 Dec 2007) | 2 lines

  Fixed bug #1628
  The detection now works on Unix with Makefile, Makefile with VPATH and on Windows.
........

17 years agoupdate to fix leak in SSL code
Bill Janssen [Fri, 14 Dec 2007 22:08:56 +0000 (22:08 +0000)]
update to fix leak in SSL code

17 years agoCouple of corrections to open() doc as per email from GvR.
Mark Summerfield [Fri, 14 Dec 2007 18:23:42 +0000 (18:23 +0000)]
Couple of corrections to open() doc as per email from GvR.

17 years agoUpdated open() to more accurately reflect io.open()'s documentation.
Mark Summerfield [Fri, 14 Dec 2007 10:07:44 +0000 (10:07 +0000)]
Updated open() to more accurately reflect io.open()'s documentation.

17 years agoMerged revisions 59465-59487 via svnmerge from
Christian Heimes [Fri, 14 Dec 2007 01:24:44 +0000 (01:24 +0000)]
Merged revisions 59465-59487 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r59467 | georg.brandl | 2007-12-11 17:32:49 +0100 (Tue, 11 Dec 2007) | 2 lines

  Add another GHOP contributor.
........
  r59468 | kurt.kaiser | 2007-12-11 20:35:12 +0100 (Tue, 11 Dec 2007) | 3 lines

  IDLE_tabbedpages.071101.patch Tal Einat
  Cosmetic changes, one bug.  Remove tabpage.py, replaced by tabbedpages.py
........
  r59471 | gerhard.haering | 2007-12-11 22:07:40 +0100 (Tue, 11 Dec 2007) | 9 lines

  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
........
  r59475 | christian.heimes | 2007-12-12 19:09:06 +0100 (Wed, 12 Dec 2007) | 1 line

  Fixed a nasty problem in the xxmodule.c
........
  r59478 | raymond.hettinger | 2007-12-13 01:08:37 +0100 (Thu, 13 Dec 2007) | 1 line

  Fix bug 1604. deque.__init__() did not clear existing contents like list.__init__. Not a backport candidate.
........
  r59480 | alexandre.vassalotti | 2007-12-13 18:58:23 +0100 (Thu, 13 Dec 2007) | 2 lines

  Fix issue #1313119: urlparse "caches" parses regardless of encoding
........
  r59482 | christian.heimes | 2007-12-13 20:23:16 +0100 (Thu, 13 Dec 2007) | 1 line

  Fixed bug #1613: Makefile's VPATH feature is broken
........
  r59484 | guido.van.rossum | 2007-12-13 21:50:10 +0100 (Thu, 13 Dec 2007) | 3 lines

  Patch #1608.  Someone with access to autoconf 2.61 or higher needs to
  run it and check in the resulting configure file.
........
  r59485 | thomas.heller | 2007-12-13 22:20:29 +0100 (Thu, 13 Dec 2007) | 1 line

  Ran autoconf.
........
  r59486 | raymond.hettinger | 2007-12-13 23:55:52 +0100 (Thu, 13 Dec 2007) | 1 line

  Simplify implementation of __replace__()
........
  r59487 | raymond.hettinger | 2007-12-14 00:52:59 +0100 (Fri, 14 Dec 2007) | 1 line

  Small speedup
........

17 years agoShell was not colorizing due to bug introduced at r57998, Bug 1586.
Kurt B. Kaiser [Thu, 13 Dec 2007 03:38:16 +0000 (03:38 +0000)]
Shell was not colorizing due to bug introduced at r57998,  Bug 1586.

17 years agoExplicitly close pipes so test_ctypes won't appear to randomly leak
Guido van Rossum [Wed, 12 Dec 2007 20:26:00 +0000 (20:26 +0000)]
Explicitly close pipes so test_ctypes won't appear to randomly leak
+33 or -33 references.  (See discussion in #1597.)

17 years agoAdd a comment to explain why we have to restore the original value.
Thomas Heller [Wed, 12 Dec 2007 20:01:44 +0000 (20:01 +0000)]
Add a comment to explain why we have to restore the original value.

17 years agomaxint->maxsize. Wouldn't import.
Kurt B. Kaiser [Wed, 12 Dec 2007 17:22:06 +0000 (17:22 +0000)]
maxint->maxsize.  Wouldn't import.

17 years agoBump version
Kurt B. Kaiser [Wed, 12 Dec 2007 17:13:19 +0000 (17:13 +0000)]
Bump version

17 years agoThis test checks and modifies the value of an integer stored in a dll.
Thomas Heller [Wed, 12 Dec 2007 08:32:02 +0000 (08:32 +0000)]
This test checks and modifies the value of an integer stored in a dll.
Restore the original value after modifying it so that subsequent tests
will not fail.  Fixes the failure in issue 1597.

17 years agoFixed #1593 spacing of the builtin_format function is inconsistent. Thanks to Joseph...
Christian Heimes [Tue, 11 Dec 2007 20:20:39 +0000 (20:20 +0000)]
Fixed #1593 spacing of the builtin_format function is inconsistent. Thanks to Joseph for the fix

17 years agoIssue #1587: Added instancemethod wrapper for PyCFunctions. The Python C API
Christian Heimes [Tue, 11 Dec 2007 19:56:40 +0000 (19:56 +0000)]
Issue #1587: Added instancemethod wrapper for PyCFunctions. The Python C API
has gained a new type *PyInstanceMethod_Type* and the functions
*PyInstanceMethod_Check(o)*, *PyInstanceMethod_New(func)* and
*PyInstanceMethod_Function(im)*.

17 years agoAdded note about 1585 to Misc/NEWS
Christian Heimes [Tue, 11 Dec 2007 09:00:01 +0000 (09:00 +0000)]
Added note about 1585 to Misc/NEWS

17 years agoMerged revisions 59450-59464 via svnmerge from
Christian Heimes [Tue, 11 Dec 2007 01:06:40 +0000 (01:06 +0000)]
Merged revisions 59450-59464 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r59455 | guido.van.rossum | 2007-12-10 21:42:53 +0100 (Mon, 10 Dec 2007) | 2 lines

  Remove a 2.2-ism.
........
  r59459 | christian.heimes | 2007-12-10 23:28:56 +0100 (Mon, 10 Dec 2007) | 4 lines

  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.
........
  r59460 | guido.van.rossum | 2007-12-11 00:00:12 +0100 (Tue, 11 Dec 2007) | 4 lines

  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.
........
  r59463 | kurt.kaiser | 2007-12-11 01:04:57 +0100 (Tue, 11 Dec 2007) | 2 lines

  format_paragraph_event wasn't returning 'break'
........
  r59464 | christian.heimes | 2007-12-11 01:54:34 +0100 (Tue, 11 Dec 2007) | 3 lines

  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...
........

17 years agoMinor cleanup in the gc module.
Amaury Forgeot d'Arc [Mon, 10 Dec 2007 23:58:35 +0000 (23:58 +0000)]
Minor cleanup in the gc module.
Removed gc.DEBUG_OBJECT: there is only one kind of objects.
Now gc.DEBUG_COLLECTABLE or gc.DEBUG_UNCOLLECTABLE can be used alone to print the
corresponding list of objects.

Also removed a footnote about version 2.2, and a comment explaining some deleted code.

17 years agoAdded missing file
Christian Heimes [Mon, 10 Dec 2007 22:27:18 +0000 (22:27 +0000)]
Added missing file

17 years agoIssue #1580: New free format floating point representation based on "Floating-Point...
Christian Heimes [Mon, 10 Dec 2007 22:19:17 +0000 (22:19 +0000)]
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.

17 years agoTwo IDLE errors in Option->Configure menu.
Amaury Forgeot d'Arc [Mon, 10 Dec 2007 22:09:44 +0000 (22:09 +0000)]
Two IDLE errors in Option->Configure menu.
Reported by Mark Summerfield.

17 years agoFixed doc xml rpc tests and server
Christian Heimes [Mon, 10 Dec 2007 20:18:07 +0000 (20:18 +0000)]
Fixed doc xml rpc tests and server

17 years agoMake Decimal a subclass of Real and Inexact.
Guido van Rossum [Mon, 10 Dec 2007 20:04:04 +0000 (20:04 +0000)]
Make Decimal a subclass of Real and Inexact.

17 years agoUpdated release notes (to match what's on python.org/download/releases/3.0/).
Guido van Rossum [Mon, 10 Dec 2007 19:25:42 +0000 (19:25 +0000)]
Updated release notes (to match what's on python.org/download/releases/3.0/).

17 years agoFixed #1578: Problems in win_getpass
Christian Heimes [Mon, 10 Dec 2007 17:02:00 +0000 (17:02 +0000)]
Fixed #1578: Problems in win_getpass

17 years agoMerged revisions 59441-59449 via svnmerge from
Christian Heimes [Mon, 10 Dec 2007 16:18:49 +0000 (16:18 +0000)]
Merged revisions 59441-59449 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r59442 | georg.brandl | 2007-12-09 22:15:07 +0100 (Sun, 09 Dec 2007) | 5 lines

  Two fixes in DocXMLRPCServer:
  * remove parameter default that didn't make sense
  * properly escape values in output
  Thanks to Jeff Wheeler from GHOP!
........
  r59444 | georg.brandl | 2007-12-09 23:38:26 +0100 (Sun, 09 Dec 2007) | 2 lines

  Add Jeff Wheeler.
........
  r59445 | georg.brandl | 2007-12-09 23:39:12 +0100 (Sun, 09 Dec 2007) | 2 lines

  Add DocXMLRPCServer test from GHOP task #136, written by Jeff Wheeler.
........
  r59447 | christian.heimes | 2007-12-10 16:12:41 +0100 (Mon, 10 Dec 2007) | 1 line

  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.
........
  r59448 | christian.heimes | 2007-12-10 16:39:09 +0100 (Mon, 10 Dec 2007) | 1 line

  Stupid save all didn't safe it all ...
........

17 years agoFixed issue #1564: The set implementation should special-case PyUnicode instead of...
Christian Heimes [Mon, 10 Dec 2007 15:50:56 +0000 (15:50 +0000)]
Fixed issue #1564: The set implementation should special-case PyUnicode instead of PyString
I moved the unicode_eq to stringlib/eq.h to keep the function static and possible inline for setobject.c and dictobject.h. I also removed the unused _PyString_Eq method. If it's required in the future it can be added to eq.h

17 years agotypo
Skip Montanaro [Sun, 9 Dec 2007 23:05:36 +0000 (23:05 +0000)]
typo

17 years agoIssue #1573, second attempt:
Amaury Forgeot d'Arc [Sun, 9 Dec 2007 21:49:48 +0000 (21:49 +0000)]
Issue #1573, second attempt:
"def f(*, **kw)" now raises a SyntaxError.

17 years agoMerged revisions 59423-59440 via svnmerge from
Christian Heimes [Sun, 9 Dec 2007 15:58:13 +0000 (15:58 +0000)]
Merged revisions 59423-59440 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r59427 | georg.brandl | 2007-12-08 18:56:07 +0100 (Sat, 08 Dec 2007) | 2 lines

  Adapt style.
........
  r59435 | brett.cannon | 2007-12-09 06:09:37 +0100 (Sun, 09 Dec 2007) | 2 lines

  Use a versionchanged directive.
........
  r59436 | georg.brandl | 2007-12-09 09:54:02 +0100 (Sun, 09 Dec 2007) | 2 lines

  #1575: the Mac readme is now one level up.
........
  r59437 | georg.brandl | 2007-12-09 09:59:45 +0100 (Sun, 09 Dec 2007) | 2 lines

  Remove all tabs in that file.
........

17 years ago#1571: clarify removal of ``L`` suffix from long int repr.
Georg Brandl [Sun, 9 Dec 2007 09:04:01 +0000 (09:04 +0000)]
#1571: clarify removal of ``L`` suffix from long int repr.

17 years agoAdded another test case for kwonly methods
Christian Heimes [Sat, 8 Dec 2007 22:32:47 +0000 (22:32 +0000)]
Added another test case for kwonly methods

17 years agoAdded two tests for f(*, **kw) syntax
Christian Heimes [Sat, 8 Dec 2007 22:17:26 +0000 (22:17 +0000)]
Added two tests for f(*, **kw) syntax

17 years agoFixed #1573: Improper use of the keyword-only syntax makes the parser crash
Christian Heimes [Sat, 8 Dec 2007 22:11:32 +0000 (22:11 +0000)]
Fixed #1573: Improper use of the keyword-only syntax makes the parser crash
>>> def f(*, **kw):
...   pass
...
python: Python/ast.c:652: handle_keywordonly_args: Assertion 'kwonlyargs
!= ((void *)0)' failed.

17 years agoFix one more PyInt occurrence.
Georg Brandl [Sat, 8 Dec 2007 18:59:56 +0000 (18:59 +0000)]
Fix one more PyInt occurrence.

17 years agoReplace all remaining occurrences of PyInt_.
Georg Brandl [Sat, 8 Dec 2007 18:58:51 +0000 (18:58 +0000)]
Replace all remaining occurrences of PyInt_.

17 years agoFixed two of the three failing xml rpc tests
Christian Heimes [Sat, 8 Dec 2007 18:38:20 +0000 (18:38 +0000)]
Fixed two of the three failing xml rpc tests

17 years agoFixed a bug found by Marcin Kowalczyk
Christian Heimes [Sat, 8 Dec 2007 18:27:16 +0000 (18:27 +0000)]
Fixed a bug found by Marcin Kowalczyk
'Applying PyMethod_Type to 3 arguments crashes Python 3'

17 years agoAdded descriptor for builtins.open.__doc__
Christian Heimes [Sat, 8 Dec 2007 17:47:40 +0000 (17:47 +0000)]
Added descriptor for builtins.open.__doc__
Before the change help(open) didn't return anything helpful but the doc string of io.OpenWrapper. Now it shows the user the documentation of io.open.

17 years agoMerged revisions 59407-59422 via svnmerge from
Christian Heimes [Sat, 8 Dec 2007 17:28:33 +0000 (17:28 +0000)]
Merged revisions 59407-59422 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r59407 | armin.rigo | 2007-12-07 20:19:55 +0100 (Fri, 07 Dec 2007) | 2 lines

  This is probably what was meant here.
........
  r59410 | guido.van.rossum | 2007-12-08 05:38:23 +0100 (Sat, 08 Dec 2007) | 2 lines

  Be (just a bit :) more specific about release date.
........
  r59411 | alexandre.vassalotti | 2007-12-08 05:49:22 +0100 (Sat, 08 Dec 2007) | 3 lines

  Fix issue #1530.
  Return an error exit status if not all tests passes.
........
  r59413 | georg.brandl | 2007-12-08 11:56:39 +0100 (Sat, 08 Dec 2007) | 2 lines

  Fix tpyo.
........
  r59414 | georg.brandl | 2007-12-08 12:05:05 +0100 (Sat, 08 Dec 2007) | 2 lines

  Fix markup in whatsnew, use new directive in ACKS.
........
  r59415 | georg.brandl | 2007-12-08 12:05:36 +0100 (Sat, 08 Dec 2007) | 2 lines

  Fix Eren's name.
........
  r59416 | georg.brandl | 2007-12-08 12:23:13 +0100 (Sat, 08 Dec 2007) | 2 lines

  Add examples to the datetime documentation. Written for GHOP by "h4wk.cz".
........
  r59417 | skip.montanaro | 2007-12-08 15:37:43 +0100 (Sat, 08 Dec 2007) | 2 lines

  Note that open() is the preferred way to open files (issue 1510).
........
  r59418 | skip.montanaro | 2007-12-08 16:23:31 +0100 (Sat, 08 Dec 2007) | 1 line

  + "context manager"
........
  r59419 | skip.montanaro | 2007-12-08 16:26:16 +0100 (Sat, 08 Dec 2007) | 1 line

  correct email address
........
  r59420 | skip.montanaro | 2007-12-08 16:33:24 +0100 (Sat, 08 Dec 2007) | 3 lines

  When splitting, avoid making a copy of the string if the split doesn't find
  anything (issue 1538).
........

17 years agoAdded stop_serving and a timeout to tearDown()
Christian Heimes [Sat, 8 Dec 2007 17:09:18 +0000 (17:09 +0000)]
Added stop_serving and a timeout to tearDown()
It prevents the XML RPC tests from blocking until the end of the world.
I think it's a backport candidate and other modules may benefit from the feature, too.

17 years agoDisabled test_404, see issue #1572
Christian Heimes [Sat, 8 Dec 2007 16:13:06 +0000 (16:13 +0000)]
Disabled test_404, see issue #1572

17 years agoReadded Lib/distutils/tests/test_sysconfig.py
Christian Heimes [Sat, 8 Dec 2007 15:34:59 +0000 (15:34 +0000)]
Readded Lib/distutils/tests/test_sysconfig.py
Somehow it went missing during the merge

17 years agoMerged revisions 59376-59406 via svnmerge from
Christian Heimes [Sat, 8 Dec 2007 15:33:56 +0000 (15:33 +0000)]
Merged revisions 59376-59406 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r59377 | georg.brandl | 2007-12-06 01:24:23 +0100 (Thu, 06 Dec 2007) | 2 lines

  Add another GHOP student to ACKS.
........
  r59378 | raymond.hettinger | 2007-12-06 01:56:53 +0100 (Thu, 06 Dec 2007) | 5 lines

  Fix Issue 1045.
  Factor-out common calling code by simplifying the length_hint API.
  Speed-up the function by caching the PyObject_String for the attribute lookup.
........
  r59380 | georg.brandl | 2007-12-06 02:52:24 +0100 (Thu, 06 Dec 2007) | 2 lines

  Diverse markup fixes.
........
  r59383 | georg.brandl | 2007-12-06 10:45:39 +0100 (Thu, 06 Dec 2007) | 2 lines

  Better re.split examples.
........
  r59386 | christian.heimes | 2007-12-06 14:15:13 +0100 (Thu, 06 Dec 2007) | 2 lines

  Fixed get_config_h_filename for Windows. Without the patch it can't find the pyconfig.h file inside a build tree.
  Added several small unit tests for sysconfig.
........
  r59387 | christian.heimes | 2007-12-06 14:30:11 +0100 (Thu, 06 Dec 2007) | 1 line

  Silence more warnings, _CRT_NONSTDC_NO_DEPRECATE is already defined in pyconfig.h but several projects don't include it.
........
  r59389 | christian.heimes | 2007-12-06 14:55:01 +0100 (Thu, 06 Dec 2007) | 1 line

  Disabled one test that is failing on Unix
........
  r59399 | christian.heimes | 2007-12-06 22:13:06 +0100 (Thu, 06 Dec 2007) | 8 lines

  Several Windows related cleanups:
  * Removed a #define from pyconfig.h. The macro was already defined a few lines higher.
  * Fixed path to tix in the build_tkinter.py script
  * Changed make_buildinfo.c to use versions of unlink and strcat which are considered safe by Windows (as suggested by MvL).
  * Removed two defines from pyproject.vsprops that are no longer required. Both are defined in pyconfig.h and make_buildinfo.c doesn't use the unsafe versions any more (as suggested by MvL).
  * Added some more information about PGO and the property files to PCbuild9/readme.txt.

  Are you fine with the changes, Martin?
........
  r59400 | raymond.hettinger | 2007-12-07 02:53:01 +0100 (Fri, 07 Dec 2007) | 4 lines

  Don't have the docs berate themselves.  Keep a professional tone.
  If a todo is needed, put it in the tracker.
........
  r59402 | georg.brandl | 2007-12-07 10:07:10 +0100 (Fri, 07 Dec 2007) | 3 lines

  Increase unit test coverage of SimpleXMLRPCServer.
  Written for GHOP by Turkay Eren.
........
  r59406 | georg.brandl | 2007-12-07 16:16:57 +0100 (Fri, 07 Dec 2007) | 2 lines

  Update to windows doc from Robert.
........

17 years agoAdded -b option to the list of command line options
Christian Heimes [Fri, 7 Dec 2007 11:52:55 +0000 (11:52 +0000)]
Added -b option to the list of command line options

17 years agorename markupbase to _markupbase
Fred Drake [Fri, 7 Dec 2007 11:10:11 +0000 (11:10 +0000)]
rename markupbase to _markupbase

17 years agoNo -Q flag anymore in Py3k.
Georg Brandl [Fri, 7 Dec 2007 08:17:50 +0000 (08:17 +0000)]
No -Q flag anymore in Py3k.

17 years agoTagging 3.0a2 for release. Fingers crossed. v3.0a2
Guido van Rossum [Thu, 6 Dec 2007 19:19:54 +0000 (19:19 +0000)]
Tagging 3.0a2 for release.  Fingers crossed.

17 years agoReverting revision 59394. We'll sort this out later.
Guido van Rossum [Thu, 6 Dec 2007 19:05:55 +0000 (19:05 +0000)]
Reverting revision 59394.  We'll sort this out later.

17 years agoFix the leaks in test_ssl. Issue 1469. Patch by Christian Heimes:
Guido van Rossum [Thu, 6 Dec 2007 18:39:46 +0000 (18:39 +0000)]
Fix the leaks in test_ssl.  Issue 1469.  Patch by Christian Heimes:
(a) added GC support to the PySSL object
(b) move the call to _real_close() from __del__ methods in Python to
PySSL_dealloc().
(c) remove those __del__ methods -- this makes SSL and socket objects GC'able.

17 years agoFix a last use of file() that should be open().
Guido van Rossum [Thu, 6 Dec 2007 18:37:53 +0000 (18:37 +0000)]
Fix a last use of file() that should be open().

17 years agoSome Windows notes by Christian.
Guido van Rossum [Thu, 6 Dec 2007 18:25:07 +0000 (18:25 +0000)]
Some Windows notes by Christian.

17 years agoSmall set of updates (with Jeffrey's OK).
Guido van Rossum [Thu, 6 Dec 2007 17:45:33 +0000 (17:45 +0000)]
Small set of updates (with Jeffrey's OK).

17 years agoSilence more warnings, _CRT_NONSTDC_NO_DEPRECATE is already defined in pyconfig.h...
Christian Heimes [Thu, 6 Dec 2007 13:32:14 +0000 (13:32 +0000)]
Silence more warnings, _CRT_NONSTDC_NO_DEPRECATE is already defined in pyconfig.h but several projects don't include it.

17 years agoGet ready for releasing 3.0a2.
Guido van Rossum [Thu, 6 Dec 2007 05:07:41 +0000 (05:07 +0000)]
Get ready for releasing 3.0a2.
(Next: update the whatsnew docs.)

17 years agoFix the rest of issue 1400, by introducing a proper implementation of
Guido van Rossum [Thu, 6 Dec 2007 01:04:26 +0000 (01:04 +0000)]
Fix the rest of issue 1400, by introducing a proper implementation of
line buffering.  The TextIOWrapper class no longer calls isatty() on
every write() call.

17 years agoMerged revisions 59371-59375 via svnmerge from
Christian Heimes [Wed, 5 Dec 2007 22:02:31 +0000 (22:02 +0000)]
Merged revisions 59371-59375 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r59374 | georg.brandl | 2007-12-05 22:52:40 +0100 (Wed, 05 Dec 2007) | 2 lines

  Add Ross Light, a GHOP student, to ACKs.
........
  r59375 | christian.heimes | 2007-12-05 22:57:25 +0100 (Wed, 05 Dec 2007) | 2 lines

  The macros _WIN32, _WIN64 and _M_X64 are defined by the compiler. The VS 2008 IDE doesn't know about (some) of the macros and can display wrong information. In my case a section #ifdef _WIN64 was grayed out although the platform was x64. I've added the macros to pyproject.vsprops and x64.vsprops.
  I've also added a paragraph about the property files to the readme and fixed the order of pyupdate > pyinstrument.
........

17 years agoMerged revisions 59333-59370 via svnmerge from
Christian Heimes [Wed, 5 Dec 2007 20:18:38 +0000 (20:18 +0000)]
Merged revisions 59333-59370 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r59343 | georg.brandl | 2007-12-05 08:02:47 +0100 (Wed, 05 Dec 2007) | 2 lines

  Fix typo.
........
  r59347 | christian.heimes | 2007-12-05 13:31:44 +0100 (Wed, 05 Dec 2007) | 1 line

  Fixed quoting and paths in the sqlite project file
........
  r59348 | christian.heimes | 2007-12-05 13:45:11 +0100 (Wed, 05 Dec 2007) | 1 line

  Fixed error in regrtest. I must have missed the spot.
........
  r59350 | christian.heimes | 2007-12-05 13:49:14 +0100 (Wed, 05 Dec 2007) | 1 line

  merge -r59315:59316 from py3k: Fix issue #1553: An errornous __length_hint__ can make list() raise a SystemError
........
  r59352 | christian.heimes | 2007-12-05 13:52:34 +0100 (Wed, 05 Dec 2007) | 1 line

  Added msg to Misc/NEWS
........
  r59354 | andrew.kuchling | 2007-12-05 14:27:20 +0100 (Wed, 05 Dec 2007) | 1 line

  Spelling fix
........
  r59356 | georg.brandl | 2007-12-05 18:56:50 +0100 (Wed, 05 Dec 2007) | 3 lines

  Add examples to csv, pprint and traceback docs.
  Written by Ross for GHOP.
........
  r59358 | raymond.hettinger | 2007-12-05 19:11:08 +0100 (Wed, 05 Dec 2007) | 1 line

  Error checking was too aggressive (reported by Chris Tismer)
........
  r59359 | georg.brandl | 2007-12-05 19:30:48 +0100 (Wed, 05 Dec 2007) | 2 lines

  Add examples to re docs. Written for GHOP by Dan Finnie.
........
  r59366 | georg.brandl | 2007-12-05 20:49:21 +0100 (Wed, 05 Dec 2007) | 2 lines

  Fix markup.
........
  r59367 | christian.heimes | 2007-12-05 20:57:54 +0100 (Wed, 05 Dec 2007) | 1 line

  Updated documentation and build_tkinter.py script
........
  r59368 | georg.brandl | 2007-12-05 21:03:57 +0100 (Wed, 05 Dec 2007) | 2 lines

  Another markup fix.
........
  r59369 | ronald.oussoren | 2007-12-05 21:07:36 +0100 (Wed, 05 Dec 2007) | 7 lines

  This "fixes" compilation issues for the Carbon._OSA module on OSX Leopard
  by purging bindings to OSA's debug API's. Those APIs we're completely
  unsupported on OSX 10.4 and are no longer available on OSX 10.5.

  Note that this patches a generated file. This is somewhat acceptable because
  regenerating the file is non-trivial and wouldn't use system headers anyway.
........
  r59370 | christian.heimes | 2007-12-05 21:10:38 +0100 (Wed, 05 Dec 2007) | 1 line

  Fixed bug #1557 by using popen.communicate() before popen.wait()
........

17 years agoAdded 2to3 tools via svn:externals from http://svn.python.org/projects/sandbox/trunk...
Christian Heimes [Wed, 5 Dec 2007 19:42:36 +0000 (19:42 +0000)]
Added 2to3 tools via svn:externals from http://svn.python.org/projects/sandbox/trunk/2to3/

17 years agoUpdate build instructions Tcl/Tk to use 8.4.12, and python9.mak.
Martin v. Löwis [Wed, 5 Dec 2007 18:44:03 +0000 (18:44 +0000)]
Update build instructions Tcl/Tk to use 8.4.12, and python9.mak.

17 years agoYou are right, Guido. The newline argument is easier to use.
Christian Heimes [Wed, 5 Dec 2007 17:59:44 +0000 (17:59 +0000)]
You are right, Guido. The newline argument is easier to use.

17 years agoFixed line separator problem on Windows
Christian Heimes [Wed, 5 Dec 2007 13:24:28 +0000 (13:24 +0000)]
Fixed line separator problem on Windows

17 years agoFixed two small problems in regrtest found by Amaury. This fixes issue #1539. Thanks...
Christian Heimes [Wed, 5 Dec 2007 12:45:55 +0000 (12:45 +0000)]
Fixed two small problems in regrtest found by Amaury. This fixes issue #1539. Thanks Amaury!

17 years agoReverted two commit accidents
Christian Heimes [Wed, 5 Dec 2007 09:36:42 +0000 (09:36 +0000)]
Reverted two commit accidents

17 years agoFixed quoting and paths in the sqlite project file
Christian Heimes [Wed, 5 Dec 2007 09:34:12 +0000 (09:34 +0000)]
Fixed quoting and paths in the sqlite project file

17 years agoFixed problem with missing PyInt_CheckExact() macro in _ctypes.c
Christian Heimes [Wed, 5 Dec 2007 09:33:00 +0000 (09:33 +0000)]
Fixed problem with missing PyInt_CheckExact() macro in _ctypes.c

17 years agoBelieve it or not, the addition of flush() calls broke two unittests.
Guido van Rossum [Wed, 5 Dec 2007 06:08:21 +0000 (06:08 +0000)]
Believe it or not, the addition of flush() calls broke two unittests.
This fixes them (by updating the "golden" output file).

17 years agoSolve issue 1400 at least in part -- whenever we run Python code, at the end
Guido van Rossum [Wed, 5 Dec 2007 05:14:58 +0000 (05:14 +0000)]
Solve issue 1400 at least in part -- whenever we run Python code, at the end
we also flush stderr and stdout.  (XXX this may override errors if there's a problem
flushing.)

17 years agomost recent changes to SSL module to support non-blocking sockets properly
Bill Janssen [Wed, 5 Dec 2007 03:38:10 +0000 (03:38 +0000)]
most recent changes to SSL module to support non-blocking sockets properly

17 years agoRemoved PyInt_GetMax and sys.maxint
Christian Heimes [Tue, 4 Dec 2007 23:02:19 +0000 (23:02 +0000)]
Removed PyInt_GetMax and sys.maxint
I replaced sys.maxint with sys.maxsize in Lib/*.py. Does anybody see a problem with the change on Win 64bit platforms? Win 64's long is just 32bit but the sys.maxsize is now 2**63-1 on every 64bit platform.
Also added docs for sys.maxsize.

17 years agoEliminate outdated usages of PyInt_GetMax.
Martin v. Löwis [Tue, 4 Dec 2007 22:18:27 +0000 (22:18 +0000)]
Eliminate outdated usages of PyInt_GetMax.

17 years agoRemove PyInt_CheckExact. Add PyLong_AsLongAndOverflow.
Martin v. Löwis [Tue, 4 Dec 2007 22:10:37 +0000 (22:10 +0000)]
Remove PyInt_CheckExact. Add PyLong_AsLongAndOverflow.

17 years agoRemoved another occurrence of PyInt_ExactCheck()
Christian Heimes [Tue, 4 Dec 2007 21:55:18 +0000 (21:55 +0000)]
Removed another occurrence of PyInt_ExactCheck()
I've modified the semantic of PyTraceBack_Print and sys.tracebacklimit slightly. Overfloats or values <= 0 are replaced with a default value to avoid infinite recursion and other issues.

17 years agoRemove special-casing of integer operations, to stop
Martin v. Löwis [Tue, 4 Dec 2007 20:34:12 +0000 (20:34 +0000)]
Remove special-casing of integer operations, to stop
using PyInt_CheckExact.

17 years agoMerged revisions 59323-59332 via svnmerge from
Christian Heimes [Tue, 4 Dec 2007 19:30:01 +0000 (19:30 +0000)]
Merged revisions 59323-59332 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r59324 | georg.brandl | 2007-12-04 17:10:02 +0100 (Tue, 04 Dec 2007) | 3 lines

  Add "Python on Unix" document, mostly written for GHOP
  by Shriphani Palakodety.
........
  r59325 | facundo.batista | 2007-12-04 17:31:53 +0100 (Tue, 04 Dec 2007) | 3 lines

  fma speedup by avoiding to create a Context. Thanks Mark Dickinson.
........
  r59326 | christian.heimes | 2007-12-04 17:36:20 +0100 (Tue, 04 Dec 2007) | 2 lines

  Added warning that make install may overwrite or masquerade the default python binary. Use make altinstall instead.
  A native English speaker may want to rephrase the paragraph. ;)
........
  r59327 | georg.brandl | 2007-12-04 17:50:28 +0100 (Tue, 04 Dec 2007) | 2 lines

  Fix duplicate label and a typo.
........
  r59329 | georg.brandl | 2007-12-04 18:46:27 +0100 (Tue, 04 Dec 2007) | 2 lines

  Add tutorial and examples to logging docs, from GHOP student "oscar8thegrouch".
........
  r59332 | christian.heimes | 2007-12-04 19:43:19 +0100 (Tue, 04 Dec 2007) | 1 line

  These optimizations create smaller and a bit faster code on my machine. I've also disabled an optimization that may be dangerous. Intrinsic functions conflict with errno.
........

17 years agoThese optimizations create smaller and a bit faster code on my machine. I've also...
Christian Heimes [Tue, 4 Dec 2007 18:42:04 +0000 (18:42 +0000)]
These optimizations create smaller and a bit faster code on my machine. I've also disabled an optimization that may be dangerous. Intrinsic functions conflict with errno.

17 years agoDocument nonlocal statement. Written for GHOP by "Canadabear".
Georg Brandl [Tue, 4 Dec 2007 18:11:03 +0000 (18:11 +0000)]
Document nonlocal statement. Written for GHOP by "Canadabear".

17 years agoMerged revisions 59321-59322 via svnmerge from
Christian Heimes [Tue, 4 Dec 2007 15:54:13 +0000 (15:54 +0000)]
Merged revisions 59321-59322 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r59322 | christian.heimes | 2007-12-04 16:52:14 +0100 (Tue, 04 Dec 2007) | 1 line

  Added VS 2005 and VS 2008 to the search path for cabarc.exe
........

17 years agoMerged revisions 59313-59320 via svnmerge from
Christian Heimes [Tue, 4 Dec 2007 15:00:33 +0000 (15:00 +0000)]
Merged revisions 59313-59320 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r59317 | martin.v.loewis | 2007-12-04 09:37:59 +0100 (Tue, 04 Dec 2007) | 2 lines

  Fix chflags issue on Tru64, from #1490190.
........
  r59318 | martin.v.loewis | 2007-12-04 09:39:16 +0100 (Tue, 04 Dec 2007) | 2 lines

  Move nt.access change into the right section.
........
  r59320 | christian.heimes | 2007-12-04 15:57:30 +0100 (Tue, 04 Dec 2007) | 2 lines

  Added self generated UUID for msvcr90.dll to msi.py
  Readded a missing line.
........

17 years agoManual merge of PEP 366 implementation from trunk (the automatic merge choked on...
Nick Coghlan [Tue, 4 Dec 2007 12:22:52 +0000 (12:22 +0000)]
Manual merge of PEP 366 implementation from trunk (the automatic merge choked on the PyString->PyUnicode changes)

17 years agoFix issue #1553: An errornous __length_hint__ can make list() raise a
Alexandre Vassalotti [Tue, 4 Dec 2007 06:20:30 +0000 (06:20 +0000)]
Fix issue #1553: An errornous __length_hint__ can make list() raise a
SystemError.

17 years agoRemove a few tab characters introduced by r59314.
Alexandre Vassalotti [Tue, 4 Dec 2007 05:56:11 +0000 (05:56 +0000)]
Remove a few tab characters introduced by r59314.

17 years agoIssue #1283: Allow any iterable of integers to be passed to
Alexandre Vassalotti [Tue, 4 Dec 2007 05:51:13 +0000 (05:51 +0000)]
Issue #1283: Allow any iterable of integers to be passed to
bytearray.extend().

17 years agoMerged revisions 59304-59312 via svnmerge from
Guido van Rossum [Tue, 4 Dec 2007 01:13:14 +0000 (01:13 +0000)]
Merged revisions 59304-59312 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r59306 | andrew.kuchling | 2007-12-03 13:28:41 -0800 (Mon, 03 Dec 2007) | 1 line

  Grammar fix
........
  r59307 | guido.van.rossum | 2007-12-03 14:02:10 -0800 (Mon, 03 Dec 2007) | 2 lines

  Shut up a compiler warning.
........
  r59312 | martin.v.loewis | 2007-12-03 15:09:04 -0800 (Mon, 03 Dec 2007) | 3 lines

  Forward-port r59310:
  os.access now returns True on Windows for any existing directory.
........

17 years agoAdd an errors parameter to open() and TextIOWrapper() to specify error handling.
Guido van Rossum [Mon, 3 Dec 2007 22:54:21 +0000 (22:54 +0000)]
Add an errors parameter to open() and TextIOWrapper() to specify error handling.

17 years agoFix merging glitch.
Georg Brandl [Mon, 3 Dec 2007 21:07:25 +0000 (21:07 +0000)]
Fix merging glitch.

17 years agoMerged revisions 59275-59303 via svnmerge from
Christian Heimes [Mon, 3 Dec 2007 21:02:03 +0000 (21:02 +0000)]
Merged revisions 59275-59303 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
NOTE: The merge does NOT contain the modified file Python/import.c from
      r59288. I can't get it running. Nick, please check in the PEP 366
      manually.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

........
  r59279 | georg.brandl | 2007-12-02 19:17:50 +0100 (Sun, 02 Dec 2007) | 2 lines

  Fix a sentence I missed before. Do not merge to 3k.
........
  r59281 | georg.brandl | 2007-12-02 22:58:54 +0100 (Sun, 02 Dec 2007) | 3 lines

  Add documentation for PySys_* functions.
  Written by Charlie Shepherd for GHOP. Also fixes #1245.
........
  r59288 | nick.coghlan | 2007-12-03 13:55:17 +0100 (Mon, 03 Dec 2007) | 1 line

  Implement PEP 366
........
  r59290 | christian.heimes | 2007-12-03 14:47:29 +0100 (Mon, 03 Dec 2007) | 3 lines

  Applied my patch #1455 with some extra fixes for VS 2005
  The new msvc9compiler module supports VS 2005 and VS 2008. I've also fixed build_ext to support PCbuild8 and PCbuild9 and backported my fix for xxmodule.c from py3k. The old code msvccompiler is still in place in case somebody likes to build an extension with VS 2003 or earlier.
  I've also updated the cygwin compiler module for VS 2005 and VS 2008. It works with VS 2005 but I'm unable to test it with VS 2008. We have to wait for a new version of cygwin.
........
  r59291 | christian.heimes | 2007-12-03 14:55:16 +0100 (Mon, 03 Dec 2007) | 1 line

  Added comment to Misc/NEWS for r59290
........
  r59292 | christian.heimes | 2007-12-03 15:28:04 +0100 (Mon, 03 Dec 2007) | 1 line

  I followed MA Lemberg's suggestion and added comments to the late initialization of the type slots.
........
  r59293 | facundo.batista | 2007-12-03 17:29:52 +0100 (Mon, 03 Dec 2007) | 3 lines

  Speedup and cleaning of __str__.  Thanks Mark Dickinson.
........
  r59294 | facundo.batista | 2007-12-03 18:55:00 +0100 (Mon, 03 Dec 2007) | 4 lines

  Faster _fix function, and some reordering for a more elegant
  coding. Thanks Mark Dickinson.
........
  r59295 | martin.v.loewis | 2007-12-03 20:20:02 +0100 (Mon, 03 Dec 2007) | 5 lines

  Issue #1727780: Support loading pickles of random.Random objects created
  on 32-bit systems on 64-bit systems, and vice versa. As a consequence
  of the change, Random pickles created by Python 2.6 cannot be loaded
  in Python 2.5.
........
  r59297 | facundo.batista | 2007-12-03 20:49:54 +0100 (Mon, 03 Dec 2007) | 3 lines

  Two small fixes. Issue 1547.
........
  r59299 | georg.brandl | 2007-12-03 20:57:02 +0100 (Mon, 03 Dec 2007) | 2 lines

  #1548: fix apostroph placement.
........
  r59300 | christian.heimes | 2007-12-03 21:01:02 +0100 (Mon, 03 Dec 2007) | 3 lines

  Patch #1537 from Chad Austin
  Change GeneratorExit's base class from Exception to BaseException
  (This time I'm applying the patch to the correct sandbox.)
........
  r59302 | georg.brandl | 2007-12-03 21:03:46 +0100 (Mon, 03 Dec 2007) | 3 lines

  Add examples to the xmlrpclib docs.
  Written for GHOP by Josip Dzolonga.
........