Commit Graph

36366 Commits

Author SHA1 Message Date
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
Brett Cannon daa2e58104 Backport fix for r54646-7: properly clear locale cache in time.strptime when
the locale changes between calls.
2007-04-27 23:17:43 +00:00
Brett Cannon a801b6a1fd Backport r54712: document that calling file.next() on a file open for writing
leads to undefined behaviour.
2007-04-27 22:35:57 +00:00
Georg Brandl c22aee03c6 Version fix (bug #1708710) 2007-04-27 19:19:29 +00:00
Fred Drake 12c295040c fix some markup errors 2007-04-26 04:43:58 +00:00
Barry Warsaw ca3b7b5ea1 bump email package version to 4.0.2 2007-04-25 19:26:37 +00:00
Neal Norwitz 44dab0ab2f Whitespace normalization 2007-04-25 06:42:41 +00:00
Georg Brandl eeff493426 Markup fix.
(backport from rev. 54951)
2007-04-25 06:25:57 +00:00
Georg Brandl d1e3f6df38 Patch #1698768: updated the "using Python on the Mac" intro.
(backport from rev. 54949)
2007-04-25 06:25:07 +00:00
Raymond Hettinger 4db90ac485 Fix markup 2007-04-24 22:04:26 +00:00
Georg Brandl f784d91215 Bug #1706381: Specifying the SWIG option "-c++" in the setup.py file
(as opposed to the command line) will now write file names ending in
".cpp" too.
 (backport from rev. 54941)
2007-04-24 15:27:25 +00:00
Georg Brandl 22c00e08bf Bug #1705717: error in sys.argv docs.
(backport from rev. 54939)
2007-04-24 15:10:16 +00:00
Georg Brandl 46155b94ca Some new year updates. 2007-04-24 10:36:45 +00:00
Neal Norwitz 112717dd0b Fix SF #1703110, Incorrect example for add_password() (use uri, not host) 2007-04-24 04:54:24 +00:00
Collin Winter 6def78ae85 Convert PyUnit -> unittest. Backported from r54929. 2007-04-24 03:52:08 +00:00
Barry Warsaw 2f131d81e2 Recommit r54805:
Add code to read from master_fd in the parent, breaking when we get an OSError
(EIO can occur on Linux) or there's no more data to read.  Without this,
test_pty.py can hang on the waitpid() because the child is blocking on the
stdout write.  This will definitely happen on Mac OS X and could potentially
happen on other platforms.  See the comment for details.
2007-04-23 01:58:33 +00:00
Kristján Valur Jónsson b9d39916ac Properly implement Georg Brandl's Patch #1185447 to the 2.5 maintainance branch 2007-04-22 10:18:46 +00:00
Georg Brandl 15136b3669 Bug #1704790: bind name "sys" locally in __del__ method so that it is
not cleared before __del__ is run.
 (backport from rev. 54918)
2007-04-21 20:35:49 +00:00
Kristján Valur Jónsson 5e4e31f76a Fix various minor issues discovered with static analysis using Visual Studio 2005 Team System.
Removed obsolete comment, since .dll modules are no longer supported on windows, only .pyd.
2007-04-21 12:46:49 +00:00
Lars Gustäbel 8ff1f6a69e Bug #1704156: Support for unicode strings as input filenames is
neither documented nor intended but works in Python 2.4 under certain
conditions. This stopped working in 2.5 because struct.pack is used.
This small patch restores the old behaviour. A more solid solution is
planned for 2.6.
2007-04-21 12:20:09 +00:00
Walter Dörwald 93a3603c67 Backport r54786:
Fix utf-8-sig incremental decoder, which didn't recognise a BOM when the
first chunk fed to the decoder started with a BOM, but was longer than 3 bytes.
2007-04-21 10:31:43 +00:00
Georg Brandl 552ba11085 Backport r54671 - fix in python.sty. 2007-04-21 07:30:52 +00:00