Benjamin Peterson [Fri, 2 Jan 2009 21:24:04 +0000 (21:24 +0000)]
Merged revisions 68174 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r68174 | benjamin.peterson | 2009-01-02 14:47:27 -0600 (Fri, 02 Jan 2009) | 1 line
fix compilation on non-Windows platforms
........
Martin v. Löwis [Fri, 2 Jan 2009 20:47:48 +0000 (20:47 +0000)]
Merged revisions 68172-68173 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r68172 | martin.v.loewis | 2009-01-02 21:32:55 +0100 (Fr, 02 Jan 2009) | 2 lines
Issue #4075: Use OutputDebugStringW in Py_FatalError.
........
r68173 | martin.v.loewis | 2009-01-02 21:40:14 +0100 (Fr, 02 Jan 2009) | 2 lines
Issue #4051: Prevent conflict of UNICODE macros in cPickle.
........
Georg Brandl [Fri, 2 Jan 2009 20:10:05 +0000 (20:10 +0000)]
#4808: move old API below new API doc.
Georg Brandl [Fri, 2 Jan 2009 19:20:26 +0000 (19:20 +0000)]
Remove traces of Py_InitModule*.
Vinay Sajip [Fri, 2 Jan 2009 18:53:45 +0000 (18:53 +0000)]
Minor documentation changes relating to NullHandler, the module used for handlers and references to ConfigParser.
Antoine Pitrou [Fri, 2 Jan 2009 17:34:35 +0000 (17:34 +0000)]
Issue #4738: finer-grained locking in the zlib module.
Ronald Oussoren [Fri, 2 Jan 2009 13:10:34 +0000 (13:10 +0000)]
Recorded merge of revisions 68153 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r68153 | ronald.oussoren | 2009-01-02 13:59:32 +0100 (Fri, 02 Jan 2009) | 10 lines
Fix for issue3559: No preferences menu in IDLE on OSX
1) Add a comment to the help file to that points to the
preferences menu.
2) An earlier checkin tried to detect Tk >= 8.10.14,
but did this in the wrong way. The end result of this
was that the IDLE->Preferences... menu got surpressed
when using the system version of Tcl/Tk
........
Ronald Oussoren [Fri, 2 Jan 2009 11:48:29 +0000 (11:48 +0000)]
Fix for issue 3433
Amaury Forgeot d'Arc [Thu, 1 Jan 2009 23:05:36 +0000 (23:05 +0000)]
#4747: on Windows, starting a module with a non-ascii filename would print a useless "SyntaxError: None"
when the script contains a "# coding:" declaration.
The Python API expects char* to be utf-8 encoded. wcstombs should be avoided here.
Reviewed by Benjamin. Will backport to 3.0
Hirokazu Yamamoto [Thu, 1 Jan 2009 16:09:52 +0000 (16:09 +0000)]
News fix. On py3k, `str' is unicode. should use `bytes'.
Hirokazu Yamamoto [Thu, 1 Jan 2009 16:03:45 +0000 (16:03 +0000)]
Merged revisions 68134 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r68134 | hirokazu.yamamoto | 2009-01-02 00:45:39 +0900 | 2 lines
Issue #4797: IOError.filename was not set when _fileio.FileIO failed to open
file with `str' filename on Windows.
........
Georg Brandl [Thu, 1 Jan 2009 15:55:56 +0000 (15:55 +0000)]
Blocked revisions 67955 via svnmerge
........
r67955 | georg.brandl | 2008-12-27 19:27:53 +0100 (Sat, 27 Dec 2008) | 3 lines
Follow-up to r67746 in order to restore backwards-compatibility for
those who (monkey-)patch TextWrapper.wordsep_re with a custom RE.
........
Georg Brandl [Thu, 1 Jan 2009 15:53:14 +0000 (15:53 +0000)]
Merged revisions 67953 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r67953 | georg.brandl | 2008-12-27 19:20:04 +0100 (Sat, 27 Dec 2008) | 3 lines
Patch #4739 by David Laban: add symbols to pydoc help topics,
so that ``help('@')`` works as expected.
........
Georg Brandl [Thu, 1 Jan 2009 15:49:47 +0000 (15:49 +0000)]
Blocked revisions 67967,67980 via svnmerge
........
r67967 | benjamin.peterson | 2008-12-27 23:18:58 +0100 (Sat, 27 Dec 2008) | 1 line
fix markup
........
r67980 | antoine.pitrou | 2008-12-28 15:24:29 +0100 (Sun, 28 Dec 2008) | 1 line
wrong version number in doc changes committed in r67979
........
Antoine Pitrou [Thu, 1 Jan 2009 15:35:33 +0000 (15:35 +0000)]
Merged revisions 68128 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r68128 | antoine.pitrou | 2009-01-01 15:11:22 +0100 (jeu., 01 janv. 2009) | 3 lines
Issue #3680: Reference cycles created through a dict, set or deque iterator did not get collected.
........
Benjamin Peterson [Thu, 1 Jan 2009 15:05:06 +0000 (15:05 +0000)]
Merged revisions 68116-68119,68121,68123-68127 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r68116 | georg.brandl | 2009-01-01 05:46:51 -0600 (Thu, 01 Jan 2009) | 2 lines
#4100: note that element children are not necessarily present on "start" events.
........
r68117 | georg.brandl | 2009-01-01 05:53:55 -0600 (Thu, 01 Jan 2009) | 2 lines
#4156: make clear that "protocol" is to be replaced with the protocol name.
........
r68118 | georg.brandl | 2009-01-01 06:00:19 -0600 (Thu, 01 Jan 2009) | 2 lines
#4185: clarify escape behavior of replacement strings.
........
r68119 | georg.brandl | 2009-01-01 06:09:40 -0600 (Thu, 01 Jan 2009) | 3 lines
#4222: document dis.findlabels() and dis.findlinestarts() and
put them into dis.__all__.
........
r68121 | georg.brandl | 2009-01-01 06:43:33 -0600 (Thu, 01 Jan 2009) | 2 lines
Point to types module in new module deprecation notice.
........
r68123 | georg.brandl | 2009-01-01 06:52:29 -0600 (Thu, 01 Jan 2009) | 2 lines
#4784: ... on three counts ...
........
r68124 | georg.brandl | 2009-01-01 06:53:19 -0600 (Thu, 01 Jan 2009) | 2 lines
#4782: Fix markup error that hid load() and loads().
........
r68125 | georg.brandl | 2009-01-01 07:02:09 -0600 (Thu, 01 Jan 2009) | 2 lines
#4776: add data_files and package_dir arguments.
........
r68126 | georg.brandl | 2009-01-01 07:05:13 -0600 (Thu, 01 Jan 2009) | 2 lines
Handlers are in the `logging.handlers` module.
........
r68127 | georg.brandl | 2009-01-01 07:14:49 -0600 (Thu, 01 Jan 2009) | 2 lines
#4767: Use correct submodules for all MIME classes.
........
Benjamin Peterson [Thu, 1 Jan 2009 00:23:30 +0000 (00:23 +0000)]
Merged revisions 67952,67957-67958,67960-67961,67963,67973,67978,67995,68030,68057,68061 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r67952 | georg.brandl | 2008-12-27 11:42:40 -0600 (Sat, 27 Dec 2008) | 2 lines
#4752: actually use custom handler in example.
........
r67957 | georg.brandl | 2008-12-27 12:49:19 -0600 (Sat, 27 Dec 2008) | 2 lines
#4754: improve winsound documentation.
........
r67958 | georg.brandl | 2008-12-27 13:02:59 -0600 (Sat, 27 Dec 2008) | 2 lines
#4682: 'b' is actually unsigned char.
........
r67960 | georg.brandl | 2008-12-27 13:04:44 -0600 (Sat, 27 Dec 2008) | 2 lines
#4695: fix backslashery.
........
r67961 | georg.brandl | 2008-12-27 13:06:04 -0600 (Sat, 27 Dec 2008) | 2 lines
Use :samp: role.
........
r67963 | georg.brandl | 2008-12-27 13:11:15 -0600 (Sat, 27 Dec 2008) | 2 lines
#4671: document that pydoc imports modules.
........
r67973 | alexandre.vassalotti | 2008-12-27 20:58:22 -0600 (Sat, 27 Dec 2008) | 2 lines
Document Py_VaBuildValue.
........
r67978 | georg.brandl | 2008-12-28 05:58:49 -0600 (Sun, 28 Dec 2008) | 2 lines
#4731: clarify message about missing module prerequisites.
........
r67995 | benjamin.peterson | 2008-12-28 15:16:07 -0600 (Sun, 28 Dec 2008) | 1 line
#4763 PyErr_ExceptionMatches won't blow up with NULL arguments
........
r68030 | benjamin.peterson | 2008-12-29 15:38:14 -0600 (Mon, 29 Dec 2008) | 1 line
fix French
........
r68057 | vinay.sajip | 2008-12-30 01:01:25 -0600 (Tue, 30 Dec 2008) | 1 line
Minor documentation change relating to NullHandler.
........
r68061 | georg.brandl | 2008-12-30 04:15:49 -0600 (Tue, 30 Dec 2008) | 2 lines
#4778: attributes can't be called.
........
Benjamin Peterson [Wed, 31 Dec 2008 14:51:07 +0000 (14:51 +0000)]
#4406 Directory has to inherit from commondialog.Dialog
Hirokazu Yamamoto [Wed, 31 Dec 2008 06:05:46 +0000 (06:05 +0000)]
Merged revisions 68097,68099 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r68097 | hirokazu.yamamoto | 2008-12-31 14:24:37 +0900 | 1 line
Fixed compile error on windows.
........
r68099 | hirokazu.yamamoto | 2008-12-31 14:47:19 +0900 | 1 line
Just inserted blank line.
........
Benjamin Peterson [Wed, 31 Dec 2008 04:13:40 +0000 (04:13 +0000)]
Blocked revisions 68092 via svnmerge
........
r68092 | benjamin.peterson | 2008-12-30 22:08:55 -0600 (Tue, 30 Dec 2008) | 1 line
fix name collision issues
........
Benjamin Peterson [Wed, 31 Dec 2008 04:10:35 +0000 (04:10 +0000)]
fix name usage
Benjamin Peterson [Wed, 31 Dec 2008 03:43:28 +0000 (03:43 +0000)]
#4788 qualify remove a bare except
Benjamin Peterson [Wed, 31 Dec 2008 03:41:35 +0000 (03:41 +0000)]
Blocked revisions 68089 via svnmerge
........
r68089 | benjamin.peterson | 2008-12-30 21:37:51 -0600 (Tue, 30 Dec 2008) | 1 line
#4788 qualify some bare except clauses
........
Tarek Ziadé [Tue, 30 Dec 2008 23:09:20 +0000 (23:09 +0000)]
Merged revisions 68081 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r68081 | tarek.ziade | 2008-12-31 00:03:41 +0100 (Wed, 31 Dec 2008) | 1 line
Fixed #4702: Throwing DistutilsPlatformError instead of IOError under win32 if MSVC is not found
........
Benjamin Peterson [Tue, 30 Dec 2008 18:05:46 +0000 (18:05 +0000)]
use $(RUNSHARED) to run plat-mac/regen
Benjamin Peterson [Tue, 30 Dec 2008 17:56:45 +0000 (17:56 +0000)]
Merged revisions 67982,67988,67990 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r67982 | benjamin.peterson | 2008-12-28 09:37:31 -0600 (Sun, 28 Dec 2008) | 1 line
fix WORD_BIGEDIAN declaration in Universal builds; fixes #4060 and #4728
........
r67988 | ronald.oussoren | 2008-12-28 13:40:56 -0600 (Sun, 28 Dec 2008) | 1 line
Issue4064: architecture string for universal builds on OSX
........
r67990 | ronald.oussoren | 2008-12-28 13:50:40 -0600 (Sun, 28 Dec 2008) | 3 lines
Update the fix for issue4064 to deal correctly with all three variants of
universal builds that are presented by the configure script.
........
Ronald Oussoren [Tue, 30 Dec 2008 14:16:51 +0000 (14:16 +0000)]
Py3k: update OSX installer-generator
This update makes sure that the installer won't write files
in /usr/local/bin by default. The installer also won't
replace /Library/Frameworks/Python.framework/Version/Current.
Both to ensure that the installer doens't break an existing
install of python 2.x.
Ronald Oussoren [Tue, 30 Dec 2008 12:59:02 +0000 (12:59 +0000)]
Make it possible to install a framework build of Python 3.x on OSX.
This the build machinery on OSX to re-enable building (and installing)
PythonLauncher.app and IDLE.app.
This needs ports of fixes to Lib/distutils/util.py and Include/pymacconfig.h
to be fully functiontional, to be fully functional.
I also have a patch for Makefile.pre.in that I'll post on bugs.python.org
for review.
Vinay Sajip [Tue, 30 Dec 2008 07:32:59 +0000 (07:32 +0000)]
Minor documentation change relating to NullHandler.
Nick Coghlan [Tue, 30 Dec 2008 07:29:12 +0000 (07:29 +0000)]
Recorded merge of revisions 68051 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r68051 | nick.coghlan | 2008-12-30 11:18:48 +1000 (Tue, 30 Dec 2008) | 1 line
Issue #4701: implicitly call PyType_Ready from PyObject_Hash
........
Tarek Ziadé [Mon, 29 Dec 2008 22:38:38 +0000 (22:38 +0000)]
Merged revisions 68033 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r68033 | tarek.ziade | 2008-12-29 23:23:53 +0100 (Mon, 29 Dec 2008) | 1 line
fixed #4646 : distutils was choking on empty options arg in the setup function.
........
Benjamin Peterson [Mon, 29 Dec 2008 20:52:09 +0000 (20:52 +0000)]
hexdigest() doesn't return bytes #4771
Martin v. Löwis [Mon, 29 Dec 2008 18:43:40 +0000 (18:43 +0000)]
Issue #4323: Always encode source as UTF-8 without asking
the user (unless a different encoding is declared); remove
user configuration of source encoding; all according to
PEP 3120.
Martin v. Löwis [Mon, 29 Dec 2008 18:21:47 +0000 (18:21 +0000)]
Merged revisions 68018 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r68018 | martin.v.loewis | 2008-12-29 19:17:34 +0100 (Mo, 29 Dez 2008) | 2 lines
Issue #
1040026: Fix os.times result on systems where HZ is incorrect.
........
Benjamin Peterson [Mon, 29 Dec 2008 18:02:28 +0000 (18:02 +0000)]
Merged revisions 68016 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r68016 | benjamin.peterson | 2008-12-29 11:56:58 -0600 (Mon, 29 Dec 2008) | 1 line
#4764 in io.open, set IOError.filename when trying to open a directory on POSIX platforms
........
Benjamin Peterson [Mon, 29 Dec 2008 17:50:07 +0000 (17:50 +0000)]
Blocked revisions 68014 via svnmerge
........
r68014 | benjamin.peterson | 2008-12-29 11:47:42 -0600 (Mon, 29 Dec 2008) | 1 line
#4764 set IOError.filename when trying to open a directory on POSIX platforms
........
Martin v. Löwis [Mon, 29 Dec 2008 16:27:13 +0000 (16:27 +0000)]
Merged revisions 68010 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r68010 | martin.v.loewis | 2008-12-29 17:22:25 +0100 (Mo, 29 Dez 2008) | 2 lines
Issue #3767: Convert Tk object to string in tkColorChooser.
........
Martin v. Löwis [Mon, 29 Dec 2008 16:03:04 +0000 (16:03 +0000)]
Merged revisions 68006 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r68006 | martin.v.loewis | 2008-12-29 16:51:01 +0100 (Mo, 29 Dez 2008) | 2 lines
Issue #3248: Allow placing ScrolledText in a PanedWindow.
........
Benjamin Peterson [Sun, 28 Dec 2008 15:44:55 +0000 (15:44 +0000)]
Blocked revisions 67976 via svnmerge
........
r67976 | georg.brandl | 2008-12-28 05:54:53 -0600 (Sun, 28 Dec 2008) | 7 lines
Backport r67974:
#4759: allow None as first argument of bytearray.translate(), for consistency with bytes.translate().
Also fix segfault for bytearray.translate(x, None) -- will backport this part to 3.0 and 2.6.
........
Antoine Pitrou [Sun, 28 Dec 2008 14:29:00 +0000 (14:29 +0000)]
Merged revisions 67979 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r67979 | antoine.pitrou | 2008-12-28 15:09:36 +0100 (dim., 28 déc. 2008) | 3 lines
Issue #4444: Allow assertRaises() to be used as a context handler.
........
Georg Brandl [Sun, 28 Dec 2008 11:44:14 +0000 (11:44 +0000)]
#4759: allow None as first argument of bytearray.translate(), for consistency with bytes.translate().
Also fix segfault for bytearray.translate(x, None) -- will backport this part to 3.0 and 2.6.
Alexandre Vassalotti [Sun, 28 Dec 2008 02:13:22 +0000 (02:13 +0000)]
Merged revisions 67970-67971 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r67970 | alexandre.vassalotti | 2008-12-27 20:52:58 -0500 (Sat, 27 Dec 2008) | 2 lines
Fix name mangling of PyUnicode_ClearFreeList.
........
r67971 | alexandre.vassalotti | 2008-12-27 21:10:35 -0500 (Sat, 27 Dec 2008) | 2 lines
Sort UCS-2/UCS-4 name mangling list.
........
Georg Brandl [Sat, 27 Dec 2008 23:33:20 +0000 (23:33 +0000)]
Document bytes.translate().
BTW, having str.maketrans() as a static method and
string.maketrans() as a function that creates translation tables for bytes objects is not very consistent :)
Georg Brandl [Sat, 27 Dec 2008 23:12:09 +0000 (23:12 +0000)]
Remove confusing error message in bytes.translate.
Antoine Pitrou [Sat, 27 Dec 2008 20:39:28 +0000 (20:39 +0000)]
Merged revisions 67965 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r67965 | antoine.pitrou | 2008-12-27 21:34:52 +0100 (sam., 27 déc. 2008) | 3 lines
Issue #4677: add two list comprehension tests to pybench.
........
Alexandre Vassalotti [Sat, 27 Dec 2008 19:46:35 +0000 (19:46 +0000)]
Revert unwanted function name change introduced by r67939.
Georg Brandl [Sat, 27 Dec 2008 19:08:11 +0000 (19:08 +0000)]
#4697: clarify that the functions are Unix-only.
Benjamin Peterson [Sat, 27 Dec 2008 19:03:36 +0000 (19:03 +0000)]
Merged revisions 67954 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r67954 | benjamin.peterson | 2008-12-27 12:24:11 -0600 (Sat, 27 Dec 2008) | 1 line
#4748 lambda generators shouldn't return values
........
Benjamin Peterson [Sat, 27 Dec 2008 18:35:25 +0000 (18:35 +0000)]
fix svnmerge properties
Benjamin Peterson [Sat, 27 Dec 2008 17:00:44 +0000 (17:00 +0000)]
fix 2.x isms in distutils test
Benjamin Peterson [Sat, 27 Dec 2008 16:58:50 +0000 (16:58 +0000)]
fix syntax
Benjamin Peterson [Sat, 27 Dec 2008 16:00:54 +0000 (16:00 +0000)]
Merged revisions 67889-67892,67895,67898,67904-67907,67912,67918,67920-67921,67923-67924,67926-67927,67930,67943 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
................
r67889 | benjamin.peterson | 2008-12-20 19:04:32 -0600 (Sat, 20 Dec 2008) | 1 line
sphinx.web is long gone
................
r67890 | benjamin.peterson | 2008-12-20 19:12:26 -0600 (Sat, 20 Dec 2008) | 1 line
update readme
................
r67891 | benjamin.peterson | 2008-12-20 19:14:47 -0600 (Sat, 20 Dec 2008) | 1 line
there are way too many places which need to have the current version added
................
r67892 | benjamin.peterson | 2008-12-20 19:29:32 -0600 (Sat, 20 Dec 2008) | 9 lines
Merged revisions 67809 via svnmerge from
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3
........
r67809 | benjamin.peterson | 2008-12-15 21:54:45 -0600 (Mon, 15 Dec 2008) | 1 line
fix logic error
........
................
r67895 | neal.norwitz | 2008-12-21 08:28:32 -0600 (Sun, 21 Dec 2008) | 2 lines
Add Tarek for work on distutils.
................
r67898 | benjamin.peterson | 2008-12-21 15:00:53 -0600 (Sun, 21 Dec 2008) | 1 line
compute DISTVERSION with patchlevel.py
................
r67904 | benjamin.peterson | 2008-12-22 14:44:58 -0600 (Mon, 22 Dec 2008) | 1 line
less attitude
................
r67905 | benjamin.peterson | 2008-12-22 14:51:15 -0600 (Mon, 22 Dec 2008) | 1 line
fix #4720: the format to PyArg_ParseTupleAndKeywords can now start with '|'
................
r67906 | benjamin.peterson | 2008-12-22 14:52:53 -0600 (Mon, 22 Dec 2008) | 1 line
add NEWS note
................
r67907 | benjamin.peterson | 2008-12-22 16:12:19 -0600 (Mon, 22 Dec 2008) | 1 line
silence compiler warning
................
r67912 | georg.brandl | 2008-12-23 06:37:21 -0600 (Tue, 23 Dec 2008) | 2 lines
Fix missing "svn" command.
................
r67918 | georg.brandl | 2008-12-23 09:44:25 -0600 (Tue, 23 Dec 2008) | 2 lines
Markup fix.
................
r67920 | benjamin.peterson | 2008-12-23 14:09:28 -0600 (Tue, 23 Dec 2008) | 1 line
use a global variable, so the compiler doesn't optimize the assignment out
................
r67921 | benjamin.peterson | 2008-12-23 14:12:33 -0600 (Tue, 23 Dec 2008) | 1 line
make global static
................
r67923 | benjamin.peterson | 2008-12-24 09:10:27 -0600 (Wed, 24 Dec 2008) | 1 line
#4736 BufferRWPair.closed shouldn't try to call another property as a function
................
r67924 | benjamin.peterson | 2008-12-24 10:10:05 -0600 (Wed, 24 Dec 2008) | 1 line
pretend exceptions don't exist a while longer
................
r67926 | tarek.ziade | 2008-12-24 13:10:05 -0600 (Wed, 24 Dec 2008) | 1 line
fixed #4400 : distutils .pypirc default generated file was broken.
................
r67927 | benjamin.peterson | 2008-12-26 17:26:30 -0600 (Fri, 26 Dec 2008) | 1 line
python version is included in file name now
................
r67930 | hirokazu.yamamoto | 2008-12-26 22:19:48 -0600 (Fri, 26 Dec 2008) | 2 lines
Issue #4740: Use HIGHEST_PROTOCOL in pickle test.
(There is no behavior difference in 2.x because HIGHEST_PROTOCOL == 2)
................
r67943 | alexandre.vassalotti | 2008-12-27 04:02:59 -0600 (Sat, 27 Dec 2008) | 2 lines
Fix bogus unicode tests in pickletester.
................
Antoine Pitrou [Sat, 27 Dec 2008 15:50:40 +0000 (15:50 +0000)]
Merged revisions 67946 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r67946 | antoine.pitrou | 2008-12-27 16:43:12 +0100 (sam., 27 déc. 2008) | 4 lines
Issue #4756: zipfile.is_zipfile() now supports file-like objects.
Patch by Gabriel Genellina.
........
Hirokazu Yamamoto [Sat, 27 Dec 2008 14:58:17 +0000 (14:58 +0000)]
Fixed incompatible pointer warning.
Alexandre Vassalotti [Sat, 27 Dec 2008 09:59:15 +0000 (09:59 +0000)]
Blocked revisions 67934-67935 via svnmerge
........
r67934 | alexandre.vassalotti | 2008-12-27 02:08:47 -0500 (Sat, 27 Dec 2008) | 4 lines
Fix issue #4730: cPickle corrupts high-unicode strings.
Update outdated copy of PyUnicode_EncodeRawUnicodeEscape.
Add a test case.
........
r67935 | alexandre.vassalotti | 2008-12-27 02:13:01 -0500 (Sat, 27 Dec 2008) | 2 lines
Add Misc/NEWS entry for r67934.
........
Alexandre Vassalotti [Sat, 27 Dec 2008 09:49:09 +0000 (09:49 +0000)]
Fix bogus assertion.
Alexandre Vassalotti [Sat, 27 Dec 2008 09:30:39 +0000 (09:30 +0000)]
Fix issue #4374: Pickle tests fail w/o _pickle extension.
Add an initialization check to mimic the interface of _pickle.
Alexandre Vassalotti [Sat, 27 Dec 2008 09:16:49 +0000 (09:16 +0000)]
Optimize built-in unicode codecs by avoiding unnecessary copying.
The approach used is similiar to what is currently used in the version
of unicodeobject.c in Python 2.x. The only difference is we use
_PyBytes_Resize instead of _PyString_Resize.
Alexandre Vassalotti [Sat, 27 Dec 2008 09:09:15 +0000 (09:09 +0000)]
Fix wrong bytes type conversion in PyUnicode_AsUnicodeEscapeString.
Fix wrong bytes type conversion in PyUnicode_AsUnicodeDecodeString.
Alexandre Vassalotti [Sat, 27 Dec 2008 07:32:41 +0000 (07:32 +0000)]
Update copy of PyUnicode_EncodeRawUnicodeEscape in _pickle.
Add astral character test case.
Alexandre Vassalotti [Sat, 27 Dec 2008 06:43:58 +0000 (06:43 +0000)]
Merged revisions 67932 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r67932 | alexandre.vassalotti | 2008-12-27 01:36:10 -0500 (Sat, 27 Dec 2008) | 5 lines
Remove unnecessary casts related to unicode_decode_call_errorhandler.
Make the _PyUnicode_Resize macro a static function.
These changes are needed to avoid breaking strict aliasing rules.
........
Hirokazu Yamamoto [Sat, 27 Dec 2008 04:21:44 +0000 (04:21 +0000)]
Issue #4740: Use HIGHEST_PROTOCOL in pickle test. This enables test for protocol 3
(== HIGHEST_PROTOCOL in 3.x)
Benjamin Peterson [Sat, 27 Dec 2008 02:58:34 +0000 (02:58 +0000)]
string -> bytes in error message #4745
Benjamin Peterson [Wed, 24 Dec 2008 16:27:25 +0000 (16:27 +0000)]
return the module object from PyMODINIT_FUNC
Skip Montanaro [Tue, 23 Dec 2008 03:51:14 +0000 (03:51 +0000)]
Merged revisions 67908 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r67908 | skip.montanaro | 2008-12-22 21:30:15 -0600 (Mon, 22 Dec 2008) | 4 lines
As a result of a regression that snuck into 2.5.3 add a test case that
ensures that when you try to read from a file opened for writing an IOError
is raised.
........
Benjamin Peterson [Mon, 22 Dec 2008 20:19:52 +0000 (20:19 +0000)]
Blocked revisions 67902 via svnmerge
........
r67902 | benjamin.peterson | 2008-12-22 14:16:25 -0600 (Mon, 22 Dec 2008) | 1 line
add py3k warnings to frame.f_exc_*
........
Benjamin Peterson [Sun, 21 Dec 2008 00:16:13 +0000 (00:16 +0000)]
Merged revisions 67885 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r67885 | benjamin.peterson | 2008-12-20 17:48:54 -0600 (Sat, 20 Dec 2008) | 1 line
silence annoying DeprecationWarning
........
Benjamin Peterson [Sun, 21 Dec 2008 00:06:59 +0000 (00:06 +0000)]
Merged revisions 67654,67676-67677,67681,67692,67725,67761,67784-67785,67787-67788,67802,67848-67850,67862-67864,67880,67882 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r67654 | georg.brandl | 2008-12-07 16:42:09 -0600 (Sun, 07 Dec 2008) | 2 lines
#4457: rewrite __import__() documentation.
........
r67676 | benjamin.peterson | 2008-12-08 20:03:03 -0600 (Mon, 08 Dec 2008) | 1 line
specify how things are copied
........
r67677 | benjamin.peterson | 2008-12-08 20:05:11 -0600 (Mon, 08 Dec 2008) | 1 line
revert unrelated change to installer script
........
r67681 | jeremy.hylton | 2008-12-09 15:03:10 -0600 (Tue, 09 Dec 2008) | 2 lines
Add simple unittests for Request
........
r67692 | amaury.forgeotdarc | 2008-12-10 18:03:42 -0600 (Wed, 10 Dec 2008) | 2 lines
#
1030250: correctly pass the dry_run option to the mkpath() function.
........
r67725 | benjamin.peterson | 2008-12-12 22:02:20 -0600 (Fri, 12 Dec 2008) | 1 line
fix incorrect example
........
r67761 | benjamin.peterson | 2008-12-14 11:26:04 -0600 (Sun, 14 Dec 2008) | 1 line
fix missing bracket
........
r67784 | georg.brandl | 2008-12-15 02:33:58 -0600 (Mon, 15 Dec 2008) | 2 lines
#4446: document "platforms" argument for setup().
........
r67785 | georg.brandl | 2008-12-15 02:36:11 -0600 (Mon, 15 Dec 2008) | 2 lines
#4611: fix typo.
........
r67787 | georg.brandl | 2008-12-15 02:58:59 -0600 (Mon, 15 Dec 2008) | 2 lines
#4578: fix has_key() usage in compiler package.
........
r67788 | georg.brandl | 2008-12-15 03:07:39 -0600 (Mon, 15 Dec 2008) | 2 lines
#4568: remove limitation in varargs callback example.
........
r67802 | amaury.forgeotdarc | 2008-12-15 16:29:14 -0600 (Mon, 15 Dec 2008) | 4 lines
#3632: the "pyo" macro from gdbinit can now run when the GIL is released.
Patch by haypo.
........
r67848 | benjamin.peterson | 2008-12-18 20:28:56 -0600 (Thu, 18 Dec 2008) | 1 line
fix typo
........
r67849 | benjamin.peterson | 2008-12-18 20:31:35 -0600 (Thu, 18 Dec 2008) | 1 line
_call_method -> _callmethod and _get_value to _getvalue
........
r67850 | raymond.hettinger | 2008-12-19 03:06:07 -0600 (Fri, 19 Dec 2008) | 9 lines
Fix-up and clean-up docs for int.bit_length().
* Replace dramatic footnote with in-line comment about possible round-off errors in logarithms of large numbers.
* Add comments to the pure python code equivalent.
* replace floor() with int() in the mathematical equivalent so the type is correct (should be an int, not a float).
* add abs() to the mathematical equivalent so that it matches the previous line that it is supposed to be equivalent to.
* make one combined example with a negative input.
........
r67862 | benjamin.peterson | 2008-12-19 20:48:02 -0600 (Fri, 19 Dec 2008) | 1 line
copy sentence from docstring
........
r67863 | benjamin.peterson | 2008-12-19 20:51:26 -0600 (Fri, 19 Dec 2008) | 1 line
add headings
........
r67864 | benjamin.peterson | 2008-12-19 20:57:19 -0600 (Fri, 19 Dec 2008) | 1 line
beef up docstring
........
r67880 | benjamin.peterson | 2008-12-20 16:49:24 -0600 (Sat, 20 Dec 2008) | 1 line
remove redundant sentence
........
r67882 | benjamin.peterson | 2008-12-20 16:59:49 -0600 (Sat, 20 Dec 2008) | 1 line
add some recent releases to the list
........
Benjamin Peterson [Sat, 20 Dec 2008 23:06:29 +0000 (23:06 +0000)]
don't build bsddb anymore
Benjamin Peterson [Sat, 20 Dec 2008 22:50:25 +0000 (22:50 +0000)]
unpy3kize this; it require 2.x only Mac modules
Antoine Pitrou [Sat, 20 Dec 2008 13:14:23 +0000 (13:14 +0000)]
Issue #3106: Speedup some comparisons. This also removes the last call
to Py_CmpToRich from the codebase (in longobject.c).
Benjamin Peterson [Sat, 20 Dec 2008 03:20:23 +0000 (03:20 +0000)]
fix syntax
Amaury Forgeot d'Arc [Fri, 19 Dec 2008 22:58:37 +0000 (22:58 +0000)]
Merged revisions 67859 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r67859 | amaury.forgeotdarc | 2008-12-19 23:56:48 +0100 (ven., 19 déc. 2008) | 4 lines
#4700: crtlicense.txt is displayed by the license() command and should be kept ascii-only.
Will port to 3.0
........
Mark Dickinson [Fri, 19 Dec 2008 17:48:51 +0000 (17:48 +0000)]
Merged revisions 67857 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r67857 | mark.dickinson | 2008-12-19 17:46:51 +0000 (Fri, 19 Dec 2008) | 2 lines
Fix typo in Python equivalent for bit_length.
........
Raymond Hettinger [Fri, 19 Dec 2008 09:11:49 +0000 (09:11 +0000)]
Fix-up and clean-up docs for int.bit_length().
* Replace dramatic footnote with in-line comment about possible round-off errors in logarithms of large numbers.
* Add comments to the pure python code equivalent.
* replace floor() with int() in the mathematical equivalent so the type is correct (should be an int, not a float).
* add abs() to the mathematical equivalent so that it matches the previous line that it is supposed to be equivalent to.
* make one combined example with a negative input.
Mark Dickinson [Thu, 18 Dec 2008 19:49:35 +0000 (19:49 +0000)]
Merged revisions 67844 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r67844 | mark.dickinson | 2008-12-18 19:46:21 +0000 (Thu, 18 Dec 2008) | 3 lines
Issue 4692: bogus 'Make' in Makefile.pre.in; replace with '$MAKE'.
Thanks Ned Deily.
........
Kristján Valur Jónsson [Thu, 18 Dec 2008 17:15:54 +0000 (17:15 +0000)]
Fix an issue in the tokenizer, where a file is opened by fd, but the underlying PyFileIO object wasn created with the closefd attribute true.
Also fix error handling for close() int _fileio.c . It was incorrect, looking for a negative refcount, and so errors weren't raised. This is why this issue wasn't caught.
There is a second reason why it isn't seen: Class IOBase in io.py has a try:/except: around the close() funtion in the __del__() method. This also masks these error conditions.
This issue was discovered by removing the _set_invalid_parameter_handler() fiddling, thus enabling the C runtime checks on windows.
Kristján Valur Jónsson [Thu, 18 Dec 2008 17:08:57 +0000 (17:08 +0000)]
Add missing Py_CHARMASK when calling isspace().
Found by enabling runtime tests on windows, by disabling the _set_invalid_parameter_handler() fiddling.
Antoine Pitrou [Thu, 18 Dec 2008 17:08:32 +0000 (17:08 +0000)]
Issue #4583: crash after resizing an array.array which has buffer exports.
Antoine Pitrou [Thu, 18 Dec 2008 11:06:25 +0000 (11:06 +0000)]
Merged revisions 67818 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r67818 | antoine.pitrou | 2008-12-17 01:38:28 +0100 (mer., 17 déc. 2008) | 3 lines
Issue #2183: Simplify and optimize bytecode for list comprehensions.
........
Antoine Pitrou [Wed, 17 Dec 2008 23:18:19 +0000 (23:18 +0000)]
Merged revisions 67832 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r67832 | antoine.pitrou | 2008-12-17 23:46:54 +0100 (mer., 17 déc. 2008) | 4 lines
Issue #2467: gc.DEBUG_STATS reports invalid elapsed times.
Patch by Neil Schemenauer, very slightly modified.
........
Mark Dickinson [Wed, 17 Dec 2008 16:19:07 +0000 (16:19 +0000)]
Forward merge of r67822 to py3k: add bit_length method to int.
Mark Dickinson [Wed, 17 Dec 2008 16:16:41 +0000 (16:16 +0000)]
Blocked revisions 67822 via svnmerge
........
r67822 | mark.dickinson | 2008-12-17 16:14:37 +0000 (Wed, 17 Dec 2008) | 4 lines
Issue #3439: add bit_length method to int and long.
Thanks Fredrik Johansson and Victor Stinner for code,
Raymond Hettinger for review.
........
Antoine Pitrou [Tue, 16 Dec 2008 14:25:45 +0000 (14:25 +0000)]
Try to fix #4674: test_normalization failure on some buildbots.
Benjamin Peterson [Tue, 16 Dec 2008 03:57:54 +0000 (03:57 +0000)]
Merged revisions 67806 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
................
r67806 | benjamin.peterson | 2008-12-15 21:35:28 -0600 (Mon, 15 Dec 2008) | 111 lines
Merged revisions 67427,67431,67433,67435,67630,67652,67656-67657,67674-67675,67678-67679,67705-67706,67716,67723,67765-67771,67774,67776,67778 via svnmerge from
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3
........
r67427 | benjamin.peterson | 2008-11-28 16:07:41 -0600 (Fri, 28 Nov 2008) | 1 line
fix spelling in comment
........
r67431 | benjamin.peterson | 2008-11-28 17:14:08 -0600 (Fri, 28 Nov 2008) | 1 line
add a scripts directory; move things to it
........
r67433 | benjamin.peterson | 2008-11-28 17:18:48 -0600 (Fri, 28 Nov 2008) | 1 line
run svneol.py
........
r67435 | benjamin.peterson | 2008-11-28 17:25:03 -0600 (Fri, 28 Nov 2008) | 1 line
rename pre/post_order_mapping to pre/post_order_heads
........
r67630 | alexandre.vassalotti | 2008-12-06 21:51:56 -0600 (Sat, 06 Dec 2008) | 2 lines
Fix typo in the urllib2.HTTPDigestAuthHandler fixer.
........
r67652 | armin.ronacher | 2008-12-07 15:39:43 -0600 (Sun, 07 Dec 2008) | 5 lines
Added a fixer that cleans up a tuple argument to isinstance after the tokens
in it were fixed. This is mainly used to remove double occurrences of
tokens as a leftover of the long -> int / unicode -> str conversion.
........
r67656 | armin.ronacher | 2008-12-07 16:54:16 -0600 (Sun, 07 Dec 2008) | 3 lines
Added missing copyright fo 2to3 fix_isinstance.
........
r67657 | armin.ronacher | 2008-12-07 18:29:35 -0600 (Sun, 07 Dec 2008) | 3 lines
2to3: intern and reduce fixes now add the imports if missing. Because that is a common task the fixer_util module now has a function "touch_import" that adds imports if missing.
........
r67674 | benjamin.peterson | 2008-12-08 19:58:11 -0600 (Mon, 08 Dec 2008) | 1 line
copy permission bits when making backup files #4602
........
r67675 | benjamin.peterson | 2008-12-08 19:59:11 -0600 (Mon, 08 Dec 2008) | 1 line
add forgotten import
........
r67678 | benjamin.peterson | 2008-12-08 20:08:30 -0600 (Mon, 08 Dec 2008) | 1 line
fix #4602 for real
........
r67679 | armin.ronacher | 2008-12-09 00:54:03 -0600 (Tue, 09 Dec 2008) | 3 lines
Removed redudant code from the 2to3 long fixer. This fixes #4590.
........
r67705 | benjamin.peterson | 2008-12-11 13:04:08 -0600 (Thu, 11 Dec 2008) | 1 line
put trailers after a range call after the list()
........
r67706 | benjamin.peterson | 2008-12-11 13:17:57 -0600 (Thu, 11 Dec 2008) | 1 line
add html related modules to the fix_imports mapping
........
r67716 | benjamin.peterson | 2008-12-11 22:16:47 -0600 (Thu, 11 Dec 2008) | 1 line
consolidate tests
........
r67723 | benjamin.peterson | 2008-12-12 19:49:31 -0600 (Fri, 12 Dec 2008) | 1 line
fix name
........
r67765 | benjamin.peterson | 2008-12-14 14:05:05 -0600 (Sun, 14 Dec 2008) | 1 line
run fix_isinstance after fix_long and fix_unicode
........
r67766 | benjamin.peterson | 2008-12-14 14:13:05 -0600 (Sun, 14 Dec 2008) | 1 line
use run_order instead of order
........
r67767 | benjamin.peterson | 2008-12-14 14:28:12 -0600 (Sun, 14 Dec 2008) | 1 line
don't retain parenthesis if there is only one item left
........
r67768 | benjamin.peterson | 2008-12-14 14:32:30 -0600 (Sun, 14 Dec 2008) | 1 line
use insert_child()
........
r67769 | benjamin.peterson | 2008-12-14 14:59:10 -0600 (Sun, 14 Dec 2008) | 1 line
parenthesize doesn't belong in pygram or FixerBase
........
r67770 | alexandre.vassalotti | 2008-12-14 15:15:36 -0600 (Sun, 14 Dec 2008) | 2 lines
Fix typo: html.paser -> html.parser.
........
r67771 | benjamin.peterson | 2008-12-14 15:22:09 -0600 (Sun, 14 Dec 2008) | 1 line
altering .children needs to call changed()
........
r67774 | benjamin.peterson | 2008-12-14 15:55:38 -0600 (Sun, 14 Dec 2008) | 1 line
employ an evil hack to fix multiple names in the same import statement
........
r67776 | benjamin.peterson | 2008-12-14 16:22:38 -0600 (Sun, 14 Dec 2008) | 1 line
make a common mixin class for Test_imports and friends
........
r67778 | alexandre.vassalotti | 2008-12-14 17:48:20 -0600 (Sun, 14 Dec 2008) | 2 lines
Make fix_imports refactor multiple imports as.
........
................
Antoine Pitrou [Mon, 15 Dec 2008 23:01:43 +0000 (23:01 +0000)]
Issue #4663: increase the chunk size to improve TextIOWrapper performance on small reads.
Text I/O is still 10x to 100x slower than 2.x!
Amaury Forgeot d'Arc [Mon, 15 Dec 2008 22:10:56 +0000 (22:10 +0000)]
Blocked revisions 67797 via svnmerge
........
r67797 | amaury.forgeotdarc | 2008-12-15 22:47:57 +0100 (Mon, 15 Dec 2008) | 4 lines
#3954: Fix error handling code in _hotshot.logreader
Will port to 2.6. hotshot was deleted from python 3.
........
Antoine Pitrou [Mon, 15 Dec 2008 13:08:55 +0000 (13:08 +0000)]
Merged revisions 67777,67779 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r67777 | antoine.pitrou | 2008-12-14 23:33:55 +0100 (dim., 14 déc. 2008) | 3 lines
try to fix failure in test_bad_address on some buildbots
........
r67779 | antoine.pitrou | 2008-12-15 01:39:51 +0100 (lun., 15 déc. 2008) | 1 line
modify other occurrence of test_bad_address
........
Nick Coghlan [Mon, 15 Dec 2008 12:01:34 +0000 (12:01 +0000)]
Merged revisions 67790 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r67790 | nick.coghlan | 2008-12-15 21:41:05 +1000 (Mon, 15 Dec 2008) | 1 line
Issue #4197: Fix the remaining part of the doctest-in-zipfile problem by giving linecache access to the module globals when available
........
Georg Brandl [Mon, 15 Dec 2008 09:16:15 +0000 (09:16 +0000)]
Use :samp: role.
Georg Brandl [Mon, 15 Dec 2008 08:43:10 +0000 (08:43 +0000)]
#4603: Note that inconsistent tab/space use is now illegal.
Georg Brandl [Mon, 15 Dec 2008 08:29:32 +0000 (08:29 +0000)]
#4668: wrap iterator returns in list() in functional howto.
Georg Brandl [Mon, 15 Dec 2008 08:28:37 +0000 (08:28 +0000)]
#4667: fix some 2.x leftovers in the tutorial.
Jeremy Hylton [Mon, 15 Dec 2008 03:08:30 +0000 (03:08 +0000)]
Reflow long line.
Jeremy Hylton [Mon, 15 Dec 2008 03:00:50 +0000 (03:00 +0000)]
Use True/False for ints instead of 1/0. That's so Python 2.0.
Antoine Pitrou [Sun, 14 Dec 2008 17:44:09 +0000 (17:44 +0000)]
Blocked revisions 67762 via svnmerge
........
r67762 | antoine.pitrou | 2008-12-14 18:40:51 +0100 (dim., 14 déc. 2008) | 3 lines
Backport r67759 (fix io.IncrementalNewlineDecoder for UTF-16 et al.).
........
Antoine Pitrou [Sun, 14 Dec 2008 16:36:46 +0000 (16:36 +0000)]
Issue #4574: reading an UTF16-encoded text file crashes if \r on 64-char boundary.
Benjamin Peterson [Sun, 14 Dec 2008 15:09:34 +0000 (15:09 +0000)]
tip-toe around dictionary keys view in the tutorial
Nick Coghlan [Sun, 14 Dec 2008 11:50:48 +0000 (11:50 +0000)]
Merged revisions 67750-67751 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r67750 | nick.coghlan | 2008-12-14 20:54:50 +1000 (Sun, 14 Dec 2008) | 1 line
Fix several issues relating to access to source code inside zipfiles. Initial work by Alexander Belopolsky. See Misc/NEWS in this checkin for details.
........
r67751 | nick.coghlan | 2008-12-14 21:09:40 +1000 (Sun, 14 Dec 2008) | 1 line
Add file that was missed from r67750
........
Benjamin Peterson [Sun, 14 Dec 2008 01:53:41 +0000 (01:53 +0000)]
Blocked revisions 67748 via svnmerge
........
r67748 | benjamin.peterson | 2008-12-13 19:46:11 -0600 (Sat, 13 Dec 2008) | 1 line
remove has_key usage
........