Commit Graph

2875 Commits

Author SHA1 Message Date
Raymond Hettinger f5b64116cc Issue 3689: list_reverseiterator should support __length_hint__ instead of __len__. 2008-12-02 21:33:45 +00:00
Martin v. Löwis 15b16a3ec4 Issue #4387: binascii now refuses to accept str as binary input. 2008-12-02 06:00:15 +00:00
Alexandre Vassalotti eae122be62 Fix docutils parsing errors in Misc/NEWS. 2008-12-02 03:34:24 +00:00
Martin v. Löwis 6178db6d55 Issue #4073: Add 2to3 support to build_scripts, refactor that support
in build_py.
2008-12-01 04:38:52 +00:00
Martin v. Löwis 45a6b9f7e5 Merged revisions 67449 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r67449 | martin.v.loewis | 2008-11-30 12:08:26 +0100 (So, 30 Nov 2008) | 3 lines

  Issue #4389: Add icon to the uninstall entry in
  "add-and-remove-programs".
........
2008-11-30 11:12:00 +00:00
Martin v. Löwis 841edad43c Issue #4407: Fix source file that caused the compileall step in Windows
installer to fail.
2008-11-30 10:36:49 +00:00
Amaury Forgeot d'Arc bed1710115 Fix more threading API related bugs: Thread.get_name() --> Thread.name.
Seen when setting RPCHandler.debugging=True
2008-11-29 01:48:47 +00:00
Amaury Forgeot d'Arc 47c2b607b8 #4455: IDLE failed to display the windows list when two windows have the same title.
Windows objects cannot be compared, and it's better to have a consistent order;
so We add the window unique ID to the sort key.

Reviewed by Benjamin Peterson.
2008-11-28 23:28:42 +00:00
Christian Heimes 7ca7cb488f Forgot to update Misc/NEWS 2008-11-28 11:24:16 +00:00
Christian Heimes 94e0772989 Merged revisions 67414 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r67414 | christian.heimes | 2008-11-28 12:02:32 +0100 (Fri, 28 Nov 2008) | 1 line

  Fixed issue ##3741: DISTUTILS_USE_SDK set causes msvc9compiler.py to raise an exception
........
2008-11-28 11:05:17 +00:00
Thomas Heller 60e5f5e78f Remove the Py_TPFLAGS_HAVE_GC from the _ctypes.COMError type.
Fixes issue #4433; reviewed by Benjamin Peterson.
2008-11-26 18:40:58 +00:00
Matthias Klose 7e1b8faacc - Fix build failure of _cursesmodule.c building with -D_FORTIFY_SOURCE=2. 2008-11-26 17:22:04 +00:00
Thomas Heller 71fb513437 Prevent UnicodeDecodeErrors in ctypes with non-ascii error messages.
Fixes issue #4429.

Reviewed by Amaury Forgeot d'Arc.
2008-11-26 08:45:36 +00:00
Christian Heimes 3e7e069887 Second fix for issue #4373 2008-11-25 21:21:32 +00:00
Amaury Forgeot d'Arc 5f95257ef9 #4373: Reference leak in the pickle module.
Reviewed by Brett Cannon.
2008-11-25 21:11:54 +00:00
Brett Cannon 7317c1ef7a dbm.gnu and dbm.ndbm accept both strings and bytes as keys and values. For the
former they are converted to bytes before being written to the DB.

Closes issue 3799. Reviewed by Skip Montanaro.
2008-11-25 19:19:17 +00:00
Brett Cannon 2b5d6ebfe5 dbm.dumb was opening files without specifying the encoding. Caused problem on
at least OS X where the default is macroman.

Closes issue #4382.
2008-11-24 21:09:58 +00:00
Amaury Forgeot d'Arc b0c29161a2 Merged revisions 67295,67301-67302,67318,67330,67342-67343 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r67295 | benjamin.peterson | 2008-11-20 05:05:12 +0100 (jeu., 20 nov. 2008) | 1 line

  move useful sys.settrace information to the function's documentation from the debugger
........
  r67301 | benjamin.peterson | 2008-11-20 22:25:31 +0100 (jeu., 20 nov. 2008) | 1 line

  fix indentation and a sphinx warning
........
  r67302 | benjamin.peterson | 2008-11-20 22:44:23 +0100 (jeu., 20 nov. 2008) | 1 line

  oops! didn't mean to disable that test
........
  r67318 | amaury.forgeotdarc | 2008-11-21 23:05:48 +0100 (ven., 21 nov. 2008) | 4 lines

  #4363: Let uuid.uuid1() and uuid.uuid4() run even if the ctypes module is not present.

  Will backport to 2.6
........
  r67330 | georg.brandl | 2008-11-22 09:34:14 +0100 (sam., 22 nov. 2008) | 2 lines

  #4364: fix attribute name on ctypes object.
........
  r67342 | amaury.forgeotdarc | 2008-11-22 20:39:38 +0100 (sam., 22 nov. 2008) | 3 lines

  yuvconvert.c is a part of the "sv" module, an old IRIX thing
  and certainly not useful for any Windows build.
........
  r67343 | amaury.forgeotdarc | 2008-11-22 21:01:18 +0100 (sam., 22 nov. 2008) | 5 lines

  #3996: On Windows, PyOS_CheckStack is supposed to protect the interpreter from
  stack overflow. But doing this, it always crashes when the stack is nearly full.

  Reviewed by Martin von Loewis. Will backport to 2.6.
........
2008-11-22 22:18:04 +00:00
Benjamin Peterson 44309e6b37 make FileIO.mode always include 'b'
#4386 Reviewed by Amaury
2008-11-22 00:41:45 +00:00
Amaury Forgeot d'Arc efae8c499f #4383: UnboundLocalError when IDLE cannot connect to its subprocess.
Python 3.0 clears the exception variable upon exit of the "except:" clause,
and the displaying code fails miserably.

Reviewed by Benjamin.
2008-11-21 23:08:09 +00:00
Barry Warsaw d8ccd1ce6f post-3.0rc3 2008-11-21 15:13:37 +00:00
Barry Warsaw 43baef41fd Bump to 3.0rc3 2008-11-21 01:18:21 +00:00
Brett Cannon 58425d3103 Make dbm.dumb encode strings as UTF-8. Also fix it so it accepts bytes and
strings.

Closes issue #3799.
2008-11-21 00:17:53 +00:00
Amaury Forgeot d'Arc 836b670e89 #4338: Fix the distutils "setup.py upload" command.
The code still mixed bytes and strings.

Reviewed by Martin von Loewis.
2008-11-20 23:53:46 +00:00
Martin v. Löwis 2d1ca2dbab Issue #4354: Fix distutils register command. 2008-11-20 16:21:55 +00:00
Martin v. Löwis a632a75a3e Merged revisions 67283 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r67283 | martin.v.loewis | 2008-11-19 14:51:44 +0100 (Mi, 19 Nov 2008) | 1 line

  Issue #4289: Remove Cancel button from AdvancedDlg.
........
2008-11-19 13:55:07 +00:00
Martin v. Löwis 22d297be51 Merged revisions 67279 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r67279 | martin.v.loewis | 2008-11-19 10:09:41 +0100 (Mi, 19 Nov 2008) | 2 lines

  Issue #4116: Resolve member name conflict in ScrolledCanvas.__init__
........
2008-11-19 09:14:30 +00:00
Benjamin Peterson 4f39d22d26 fix the Makefile so it doesn't pollute sys.path
#4349 reviewed by Christian
2008-11-18 22:37:15 +00:00
Martin v. Löwis 276c3718e3 Issue #3327: Don't overallocate in the modules_by_index list. 2008-11-17 16:22:11 +00:00
Raymond Hettinger 7d99f09f89 Issue #1721812: Binary operations and copy operations on set/frozenset
subclasses need to return the base type, not the subclass itself.
2008-11-16 11:44:54 +00:00
Mark Dickinson 4a1f593df5 Issue #4296: Fix PyObject_RichCompareBool so that "x in [x]" evaluates to
True, even when x doesn't compare equal to itself.  This was a regression
from 2.6.

Reviewed by R. Hettinger and C. Heimes.
2008-11-12 23:23:36 +00:00
Benjamin Peterson 3d4ca74bc8 change the named tuple returned by inspect.getfullargspec to have a 'kwonlydefaults' (as claimed by the docs) attribute instead of 'kwdefaults'
Fixes #4307
Reviewed by Christian
2008-11-12 21:39:01 +00:00
Amaury Forgeot d'Arc 9a5499b4e5 #3705: Command-line arguments were not correctly decoded when the
terminal does not use UTF8.

Now the code propagates the unicode string as far as possible, and avoids
the conversion to char* which implicitely uses utf-8.

Reviewed by Benjamin.
2008-11-11 23:04:59 +00:00
Amaury Forgeot d'Arc 3e4e72f66f #4298: pickle.load() can segfault on invalid or truncated input.
Patch and test by Hirokazu Yamamoto.
2008-11-11 20:05:06 +00:00
Benjamin Peterson 06fd5f8cc8 fix the socketserver demo code for py3k
#4275 Thanks to Don MacMillen
2008-11-08 17:24:34 +00:00
Georg Brandl da06606b63 #4283: fix left-over iteritems() in distutils. 2008-11-08 15:15:57 +00:00
Martin v. Löwis bfda544767 Merged revisions 67149 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r67149 | martin.v.loewis | 2008-11-07 19:51:50 +0100 (Fr, 07 Nov 2008) | 1 line

  Issue #1656675: Register a drop handler for .py* files on Windows.
........
2008-11-07 18:54:51 +00:00
Benjamin Peterson 6570d071fa name the release 2008-11-07 03:51:42 +00:00
Barry Warsaw a7c373056a post release cleanup 2008-11-07 03:46:33 +00:00
Martin v. Löwis 900646ef68 Merged revisions 67120 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r67120 | martin.v.loewis | 2008-11-06 17:43:00 +0100 (Do, 06 Nov 2008) | 2 lines

  Issue #4120: Exclude manifest from extension modules in VS2008.
........
2008-11-06 17:30:03 +00:00
Barry Warsaw 1f0e67ec1f Bumping to 3.0rc2. 2008-11-06 03:29:32 +00:00
Benjamin Peterson 93ef79cce3 period 2008-11-05 22:49:09 +00:00
Benjamin Peterson d968e27581 fix #4211: the __path__ of a frozen package should be a list.
Patch by Brett Cannon, review by Christian Heimes.
2008-11-05 22:48:33 +00:00
Christian Heimes d395629e82 Fixed issue #3727: poplib module broken by str to unicode conversion
Victor strikes again! Assisted by Barry
2008-11-05 19:48:27 +00:00
Christian Heimes 933238ad85 Issue #3714: nntplib module broken by str to unicode conversion
Patch by Victor, Reviewed by Barry
2008-11-05 19:44:21 +00:00
Christian Heimes fb5faf0285 Issue #1210: Fixed imaplib
Patch by Victor Stinner, reviewed by Barry Warsaw.
2008-11-05 19:39:50 +00:00
Christian Heimes ecc42a2b82 Fixed issue #4233.
Changed semantic of _fileio.FileIO's close()  method on file objects with closefd=False. The file descriptor is still kept open but the file object behaves like a closed file. The FileIO  object also got a new readonly attribute closefd.
Approved by Barry
2008-11-05 19:30:32 +00:00
Martin v. Löwis b37509b11b Merged revisions 67098 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r67098 | martin.v.loewis | 2008-11-04 21:40:09 +0100 (Di, 04 Nov 2008) | 2 lines

  Issue #4204: Fixed module build errors on FreeBSD 4.
........
2008-11-04 20:45:29 +00:00
Benjamin Peterson c0747cf537 Merged revisions 67028,67040,67044,67046,67052,67065,67070,67077,67082 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r67028 | benjamin.peterson | 2008-10-25 18:27:07 -0500 (Sat, 25 Oct 2008) | 1 line

  don't use a catch-all
........
  r67040 | armin.rigo | 2008-10-28 12:01:21 -0500 (Tue, 28 Oct 2008) | 5 lines

  Fix one of the tests: it relied on being present in an "output test" in
  order to actually test what it was supposed to test, i.e. that the code
  in the __del__ method did not crash.  Use instead the new helper
  test_support.captured_output().
........
  r67044 | amaury.forgeotdarc | 2008-10-29 18:15:57 -0500 (Wed, 29 Oct 2008) | 3 lines

  Correct error message in io.open():
  closefd=True is the only accepted value with a file name.
........
  r67046 | thomas.heller | 2008-10-30 15:18:13 -0500 (Thu, 30 Oct 2008) | 2 lines

  Fixed a modulefinder crash on certain relative imports.
........
  r67052 | christian.heimes | 2008-10-30 16:26:15 -0500 (Thu, 30 Oct 2008) | 1 line

  Issue #4237: io.FileIO() was raising invalid warnings caused by insufficient initialization of PyFileIOObject struct members.
........
  r67065 | benjamin.peterson | 2008-10-30 18:59:18 -0500 (Thu, 30 Oct 2008) | 1 line

  move unprefixed error into .c file
........
  r67070 | benjamin.peterson | 2008-10-31 15:41:44 -0500 (Fri, 31 Oct 2008) | 1 line

  rephrase has_key doc
........
  r67077 | benjamin.peterson | 2008-11-03 09:14:51 -0600 (Mon, 03 Nov 2008) | 1 line

  #4048 make the parser module accept relative imports as valid
........
  r67082 | hirokazu.yamamoto | 2008-11-03 12:03:06 -0600 (Mon, 03 Nov 2008) | 2 lines

  Issue #3774: Fixed an error when create a Tkinter menu item without command
  and then remove it. Written by Guilherme Polo (gpolo).
........
2008-11-03 20:31:38 +00:00
Amaury Forgeot d'Arc dd8059f078 #3626: On cygwin, starting "python z" would not display any error message:
printf("%ls") fails if the wide string is 1 char long :-(
2008-10-30 23:03:32 +00:00