Commit Graph

36246 Commits

Author SHA1 Message Date
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
Georg Brandl 104377b2de Backport r54762: exceptions are no longer old-style instances. 2007-04-21 07:28:26 +00:00
Georg Brandl 82966e57e8 Backport r54763: repair missing spaces after \UNIX. 2007-04-21 07:25:39 +00:00
Georg Brandl 6cf5abfd66 Backport r54787 - better error messages in rexec and bastion 2007-04-21 07:23:36 +00:00
Georg Brandl 1dfa8ac6f1 Backport r54757 - missing NULL checks. 2007-04-21 07:22:57 +00:00
Lars Gustäbel 9319e43c67 Patch #1695229: Fix a regression with tarfile.open() and a missing name
argument.
2007-04-20 20:10:59 +00:00
Lars Gustäbel d220144a84 Fix directory names to have only one trailing slash.
A regression from rev. 52525.
2007-04-20 14:49:02 +00:00
Anthony Baxter 9701832161 Tagging for release of Python 2.5.1 2007-04-18 03:53:15 +00:00
Anthony Baxter ef57abdb60 2.5.1 final 2007-04-18 03:35:45 +00:00
Raymond Hettinger 87b5d9196e Revert 53667 2007-04-18 02:02:15 +00:00
Neal Norwitz e6e383f498 Revert SF #1615701 (rev 53655): dict.update() does *not* call __getitem__() or
keys() if subclassed.  This is to remain consistent with 2.5.

See discussion here:
  http://mail.python.org/pipermail/python-dev/2007-April/072565.html
2007-04-16 06:59:13 +00:00
Neal Norwitz 8d61db5a00 Revert 54805 for 2.5.1 release. Can be applied after 2.5 branch is unfrozen. 2007-04-16 06:20:14 +00:00
Neal Norwitz 03c566a268 Revert 54813 for 2.5.1 release. Can be applied after 2.5 branch is unfrozen. 2007-04-16 06:19:52 +00:00
Neal Norwitz a4ff44aa26 Revert 54815 for 2.5.1 release. Can be applied after 2.5 branch is unfrozen. 2007-04-16 06:19:32 +00:00
Neal Norwitz 16b7b53ad0 SF #1701207: svnversion_init assertion failed
Revert bogus asserts (added to the wrong place) from rev 52501.

Approved by Anthony.
2007-04-16 06:12:02 +00:00
Kristján Valur Jónsson a30d8bd653 Fix potential crash in path manipulation on windows 2007-04-13 22:21:07 +00:00
Kristján Valur Jónsson 9d9fbb4359 Fix a bug when using the __lltrace__ opcode tracer, and a problem sith signed chars in frameobject.c which can occur with opcodes > 127 2007-04-13 22:09:59 +00:00
Barry Warsaw 9bd522d7d1 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-13 16:12:02 +00:00
Andrew M. Kuchling 9df5fa0d91 Describe undocumented third argument to touchline() 2007-04-11 13:47:58 +00:00
Anthony Baxter 2ae2f7549a Tagging for release of Python 2.5.1c1 2007-04-05 06:37:33 +00:00
Neal Norwitz ef4364f3b8 Fix unpack so it works on 64-bit platforms. 2007-04-05 05:06:49 +00:00