Commit Graph

36287 Commits

Author SHA1 Message Date
Georg Brandl 73c958aced Disallow function calls like foo(None=1).
Backport from py3k rev. 55708 by Guido.
 (backport from rev. 55802)
2007-06-07 13:23:28 +00:00
Georg Brandl c98da3d811 Backport rev. 55783:
Patch by Tim Delany (missing DECREF). SF #1731330.
2007-06-05 22:06:28 +00:00
Hye-Shik Chang fc41f199ba Fix for Windows: close a temporary file before trying to delete it. 2007-06-05 19:28:15 +00:00
Hye-Shik Chang 60111e09a9 (Backport from r55770)
Bug #1728403: Fix a bug that CJKCodecs StreamReader hangs when it
reads a file that ends with incomplete sequence and sizehint argument
for .read() is specified.
2007-06-05 19:14:33 +00:00
Brett Cannon c9490e2fe9 Backport of r55752: make time.strptime() behave better when whitespace is in
the format arguments.
2007-06-04 00:14:06 +00:00
Neal Norwitz 2413e038c4 Backport 55731:
SF 1668596/1720897: distutils now copies data files
even if package_dir is empty.
2007-06-02 18:53:07 +00:00
Georg Brandl 2e23bb7545 Fix wrong issue number.
(backport from rev. 55735)
2007-06-01 19:20:52 +00:00
Georg Brandl ba871a06fb Bug #1722484: remove docstrings again when running with -OO.
(backport from rev. 55732)
2007-06-01 11:33:45 +00:00
Thomas Heller b40092bf98 Merged revisions 55677 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk/Lib/ctypes

........
  r55677 | thomas.heller | 2007-05-30 09:01:25 +0200 (Mi, 30 Mai 2007) | 2 lines

  Correct the name of a field in the WIN32_FIND_DATAA and WIN32_FIND_DATAW structures.
  Closes bug #1726026.
........
2007-05-30 07:07:34 +00:00
Vinay Sajip 8c6ec81ac8 Updated docstring for SysLogHandler (#1720726). 2007-05-25 07:27:30 +00:00
Vinay Sajip 425c614b6e Updated documentation for SysLogHandler (#1720726). 2007-05-25 07:21:19 +00:00
Neal Norwitz 35cff5ff75 Document "new" params to HTTPConnection/HTTPSConnection 2007-05-22 06:09:24 +00:00
Georg Brandl 13703087ba Backport rev 55465 by Nick Coghlan. 2007-05-20 15:03:06 +00:00
Neal Norwitz df73802131 Backout the original 'fix' to 1721309 which had no effect.
Different versions of Berkeley DB handle this differently.
The comments and bug report should have the details.  Memory is allocated
in 4.4 (and presumably earlier), but not in 4.5.  Thus
4.5 has the free error, but not earlier versions.

Mostly update comments, plus make the free conditional.
2007-05-20 02:14:48 +00:00
Neal Norwitz 73bf1018d6 Backport rev 55452:
Whoops, need to pay attention to those test failures.
Move the clear to *before* the first use, not after.
2007-05-19 04:37:31 +00:00
Neal Norwitz f86ae691d3 Backport rev 55450:
SF bug #1721309: Clear data so random memory does not get freed.
2007-05-19 03:53:33 +00:00
Neal Norwitz cf0fab2686 Verify neither dumps or loads overflow the stack and segfault. 2007-05-18 05:45:33 +00:00
Neal Norwitz ce15dce421 Drop the max stack depth to something that works in 2.6 2007-05-18 05:12:22 +00:00
Fred Drake 2cb077a8c1 fix argument name in documentation; match the implementation 2007-05-17 19:29:43 +00:00
Neal Norwitz dc78cc6f7c Fix bug in marshal where bad data would cause a segfault due to
lack of an infinite recursion check.

Contributed by Damien Miller at Google.
2007-05-16 20:09:36 +00:00
Georg Brandl 4043a6bbd6 Bug #1719995: don't use deprecated method in sets example.
(backport from rev. 55383)
2007-05-16 13:44:25 +00:00
Neal Norwitz 5ece2fb0d1 Add what looks like a necessary call to PyErr_NoMemory() when PyMem_MALLOC()
fails.
2007-05-16 04:35:11 +00:00
Georg Brandl 4c87581c32 HTML-escape the plain traceback in cgitb's HTML output, to prevent
the traceback inadvertently or maliciously closing the comment and
injecting HTML into the error page.
 (backport from rev. 55348)
2007-05-15 20:19:39 +00:00
Georg Brandl 0d338e4bc6 Bug #1046945: document SWIG options of distutils.
(backport from rev. 55287)
2007-05-12 21:06:51 +00:00
Georg Brandl 39d8cc7422 Update DDJ link.
(backport from rev. 55259)
2007-05-11 11:44:00 +00:00
Georg Brandl 5a25e45d3a Patch #1714700: clarify os.linesep vs. tfiles opened in text mode.
(backport)
2007-05-11 11:03:46 +00:00
Neal Norwitz 914c98bfe3 Fix typo in docstring (the module is popen2, not 3). 2007-05-11 06:23:43 +00:00
Thomas Heller e4b5c331fc Mark blocked revisions. 2007-05-10 07:19:16 +00:00
Thomas Heller 455c4b377b Mark already merged revisions. 2007-05-10 06:53:40 +00:00
Walter Dörwald 0ac60611fe Backport checkin:
Fix a segfault when b"" was passed to b2a_qp() -- it was using strchr()
instead of memchr().
2007-05-09 18:13:53 +00:00
Neal Norwitz 6ca6f1472c Backport r55070: Stop using PyMem_FREE while the GIL is not held. 2007-05-09 06:45:53 +00:00
Neal Norwitz 27803cee9a Backport: Add markup for True/False. 2007-05-09 06:44:23 +00:00
Kristján Valur Jónsson a01d6609b9 Merge change 54983 from the trunk: Add the locale "English" to test_locale.py for a windows run, since "En" isn't legal for the Visual C 8 runtime. This update restores full testsuite compliance to VisualStudio 2005 builds, apart from unavailible external modules. 2007-05-07 19:31:41 +00:00
Kristján Valur Jónsson a1392d5ace Merge change 54982 from the trunk. This fixes the test_subprocess test in the testsuite for VisualStudio2005 builds, by "sanitizing" the "mode" that is used in the posixmodule's fdopen(). In particular the non-standard "U" mode character is removed. 2007-05-07 19:25:38 +00:00
Kristján Valur Jónsson dffe9a214b the nb_long slot on classobject instances now defaults to call the nb_int slot member if there is no __long__ attribute found. This is in accordance with a suggestion from Armin Rigo, and allows the test_getargs2.py test in the testsuite for x64 2007-05-07 18:36:39 +00:00
Kristján Valur Jónsson f4601d874f Fix two problems that emerged when the testsuite was run with an x64 build: PyLong_FromSSize_t incorrectly assumed an unsigned object, and itertools.count() had the wrong upper limit for the iterator. 2007-05-07 18:30:48 +00:00
Kristján Valur Jónsson b4c285a25b Fix NonRecursiveMutex on x64. The signature of the faux-InterlockedCompareExchange function was wrong: It works with LONG and not PVOID objects, and it needs to have the target marked as volatile. Further, it is not needed at all for x64 targets, since that platform always has the real McCoy. 2007-05-07 18:28:12 +00:00
Kristján Valur Jónsson 7bca027f64 Merging change 55102 from the trunk:
Fix those parts in the testsuite that assumed that sys.maxint would cause overflow on x64.  Now the testsuite is well behaved on that platform.
2007-05-07 13:33:39 +00:00
Georg Brandl 4e6b5e9ead Bug #1713535 backport. 2007-05-05 18:57:09 +00:00
Kristján Valur Jónsson b4c0bea528 Merging changes 55092, 55101,55120 from trunk, making PCBuild8 solution up to date. 2007-05-05 08:32:03 +00:00
Thomas Heller a982bb114e Blocked revisions 54357 via svnmerge
........
  r54357 | thomas.heller | 2007-03-13 21:42:52 +0100 (Tue, 13 Mar 2007) | 1 line

  Patch #1649190: Adding support for _Bool to ctypes as c_bool, by David Remahl.
........
2007-05-04 22:08:22 +00:00
Walter Dörwald f8f68fbe0e Backport checkin:
Clarify the behaviour of PyUnicode_DecodeUTF16(): A BOM is only skipped
in native order mode, and only if it's the first two bytes.
2007-05-03 15:16:16 +00:00
Thomas Heller 412b20bd31 Merged revisions 55027 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk/Modules/_ctypes

........
  r55027 | thomas.heller | 2007-04-30 18:04:57 +0200 (Mo, 30 Apr 2007) | 8 lines

  When accessing the .value attribute of a c_wchar_p instance, and the
  instance does not point to a valid wchar_t zero-terminated string,
  raise a ValueError.  c_char_p does this already.

  The ValueError message now contains the correct pointer address.

  Will backport to release25-maint.
........
2007-05-02 19:41:16 +00:00
Kristján Valur Jónsson e5ebbecae3 Additional changes to the property sheets in PCBuild8. Visual Studio doesn's save those when it builds, unlike the .vcproj files, so I chekced in out-of-date versions. 2007-05-02 16:08:51 +00:00
Kristján Valur Jónsson 00b0a9e5b2 Undefine the Yield macro after including Python_ast.h where it may cause conflicts with winbase.h on Windows. 2007-05-02 16:02:48 +00:00
Kristján Valur Jónsson 55d53f0367 Merging of change 55024 from the truk to release25-maint branch.
Complete revamp of PCBuild8 directory.  Use subdirectories for each project under the main pcbuild solution.  Now make extensive use of property sheets to simplify project configuration. x64 build fully supported, and the process for building PGO version (Profiler Guided Optimization) simplified. All projects are now present, except _ssl, which needs to be reimplemented.  Also, some of the projects that require external libraries need extra work to fully compile on x64.
2007-05-02 15:55:14 +00:00
Georg Brandl 9aa62ff4a1 Patch #1710352: add missing public functions to locale.__all__.
(backport from rev. 55038)
2007-05-01 06:08:20 +00:00
Georg Brandl be69a0acc4 Bug #1710295: exceptions are now new-style classes.
(backport from rev. 55036)
2007-05-01 06:04:20 +00:00
Thomas Heller f69fa1756f Merged revisions 55025 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk/Modules/_ctypes

........
  r55025 | thomas.heller | 2007-04-30 17:44:17 +0200 (Mo, 30 Apr 2007) | 4 lines

  Make sure to call PyErr_NoMemory() in several places where
  PyMem_Malloc() could potentially fail.

  Will backport to the release25-maint branch.
........
2007-04-30 15:58:51 +00:00
Neal Norwitz 80a42c079f Update with the version that has been running for a while. Most of
the changes are to support multiple versions (ie, trunk and 2.5).
Also check for conflicts in the .tex file when a release is cut.
2007-04-29 23:56:19 +00:00