Commit Graph

883 Commits

Author SHA1 Message Date
Victor Stinner 9e30aa52fd Fix misuse of PyUnicode_GET_SIZE() => PyUnicode_GET_LENGTH()
And PyUnicode_GetSize() => PyUnicode_GetLength()
2011-11-21 02:49:52 +01:00
Victor Stinner dcbbd9ea21 Fix a typo in PC/_subprocess.c 2011-11-21 02:17:08 +01:00
Victor Stinner 3335447646 Check for PyUnicode_AS_UNICODE() failure 2011-11-21 02:01:41 +01:00
Nadeem Vawda 2b9f36cdb6 Merge #13194: zlib.compressobj().copy() and zlib.decompressobj().copy() are now available on Windows. 2011-10-17 19:40:47 +02:00
Nadeem Vawda bcb86c5246 Issue #13194: zlib.compressobj().copy() and zlib.decompressobj().copy() are now available on Windows. 2011-10-17 19:34:22 +02:00
Martin v. Löwis bd928fef42 Rename _Py_identifier to _Py_IDENTIFIER. 2011-10-14 10:20:37 +02:00
Martin v. Löwis afe55bba33 Add API for static strings, primarily good for identifiers.
Thanks to Konrad Schöbel and Jasper Schulz for helping with the mass-editing.
2011-10-09 10:38:36 +02:00
Antoine Pitrou 789e7ad918 Issue #13063: the Windows error ERROR_NO_DATA (numbered 232 and described
as "The pipe is being closed") is now mapped to POSIX errno EPIPE
(previously EINVAL).
2011-10-07 16:17:50 +02:00
Antoine Pitrou 586bfe4500 Issue #13063: the Windows error ERROR_NO_DATA (numbered 232 and described
as "The pipe is being closed") is now mapped to POSIX errno EPIPE
(previously EINVAL).
2011-10-07 16:16:31 +02:00
Antoine Pitrou c61c8d7a5e Issue #12911: Fix memory consumption when calculating the repr() of huge tuples or lists.
This introduces a small private API for this common pattern.
The issue has been discovered thanks to Martin's huge-mem buildbot.
2011-10-06 19:04:12 +02:00
Antoine Pitrou eeb7eea1f9 Issue #12911: Fix memory consumption when calculating the repr() of huge tuples or lists.
This introduces a small private API for this common pattern.
The issue has been discovered thanks to Martin's huge-mem buildbot.
2011-10-06 18:57:27 +02:00
Victor Stinner 639418812f Use the new Py_ARRAY_LENGTH macro 2011-09-29 00:42:28 +02:00
Martin v. Löwis d63a3b8beb Implement PEP 393. 2011-09-28 07:41:54 +02:00
Antoine Pitrou 5edbaf295e Issue #12802: the Windows error ERROR_DIRECTORY (numbered 267) is now
mapped to POSIX errno ENOTDIR (previously EINVAL).
2011-09-01 21:38:37 +02:00
Antoine Pitrou a762285831 Issue #12802: the Windows error ERROR_DIRECTORY (numbered 267) is now
mapped to POSIX errno ENOTDIR (previously EINVAL).
2011-09-01 21:37:43 +02:00
Antoine Pitrou 370092071b Issue #11863: Remove support for legacy systems deprecated in Python 3.2
(following PEP 11).  These systems are systems using Mach C Threads,
SunOS lightweight processes, GNU pth threads and IRIX threads.
2011-07-08 23:47:50 +02:00
Antoine Pitrou 87cf220972 Issue #11743: Rewrite multiprocessing connection classes in pure Python. 2011-05-09 17:04:27 +02:00
Victor Stinner b90db4caf0 Issue #11918: OS/2 and VMS are no more supported because of the lack of
maintainer.
2011-04-26 22:48:24 +02:00
Victor Stinner 024e37adcc Issue #11393: Add the new faulthandler module 2011-03-31 01:31:06 +02:00
Ezio Melotti 3b3499ba69 #11565: Merge with 3.1. 2011-03-16 11:35:38 +02:00
Ezio Melotti 13925008dc #11565: Fix several typos. Patch by Piotr Kasprzyk. 2011-03-16 11:05:33 +02:00
Ezio Melotti 4969f709cc #11515: Merge with 3.1. 2011-03-15 05:59:46 +02:00
Ezio Melotti 42da663e6f #11515: fix several typos. Patch by Piotr Kasprzyk. 2011-03-15 05:18:48 +02:00
Victor Stinner 4d6c1c476a Issue #3080: _PyWin_FindRegisteredModule() returns the path as Unicode
* Document the function
 * Use RegQueryValueW() instead of RegQueryValueA()
 * Use _Py_fopen() instead of fopen()
 * Allocate registry key on the heap, not on the stack, and handle memory
   allocation failure
 * Handle Python exception in find_module()
2011-03-08 23:49:04 +01:00
Ezio Melotti b88ed1549e #11565: Merge with 3.2. 2011-03-16 11:38:59 +02:00
Ezio Melotti 373089239b #11515: Merge with 3.2. 2011-03-15 06:03:08 +02:00
Reid Kleckner 31aa7dd141 Add a 'timeout' argument to subprocess.Popen.
If the timeout expires before the subprocess exits, the wait method and the
communicate method will raise a subprocess.TimeoutExpired exception.  When used
with communicate, it is possible to catch the exception, kill the process, and
retry the communicate and receive any output written to stdout or stderr.
2011-03-14 12:02:10 -04:00
Martin v. Löwis c142389218 Convert DOS files to CRLF. This doesn't touch the .hgeol settings, so that the files
will have the right line ending even if the extension is not active.
2011-03-06 12:24:49 +01:00
Martin v. Löwis bb3e937a18 Convert DOS files to CRLF. This doesn't touch the .hgeol settings, so that the files
will have the right line ending even if the extension is not active.
2011-03-06 12:23:39 +01:00
Martin v. Löwis 21967d0b4d Convert DOS files to CRLF. This doesn't touch the .hgeol settings, so that the files
will have the right line ending even if the extension is not active.
2011-03-06 11:28:23 +01:00
Georg Brandl 49857f8a93 Add updated .hgeol file and fix newlines in the 3.2 branch. 2011-03-05 15:11:35 +01:00
Georg Brandl 5537d298ea Add updated .hgeol file and fix newlines in the 3.1 branch. 2011-03-05 15:10:38 +01:00
Antoine Pitrou 71219dad3e More eol-style's 2011-02-25 14:31:09 +00:00
Antoine Pitrou 7f1e174c7a Make svn:eol-style's more consistent 2011-02-25 14:19:48 +00:00
Victor Stinner 9b99b448f7 Issue #3080: Mark PyWin_FindRegisteredModule() as private
This function was not declared in Python public API (in any .h file) and not
documented. Mark it as private to prepare a change of its API.
2011-02-22 23:12:28 +00:00
Georg Brandl fa2c61a222 More automated version replacement. 2011-02-20 10:41:31 +00:00
Martin v. Löwis 738236dbd6 Issue #11067: Add PyType_GetFlags, to support PyUnicode_Check
in the limited ABI
2011-02-05 20:35:29 +00:00
Martin v. Löwis d77520a426 Issue #11118: Fix bogus export of None in python3.dll. 2011-02-04 19:09:02 +00:00
Martin v. Löwis c83bc3c1fb Remove buffer API from stable ABI for now, see #10181. 2011-01-06 19:15:47 +00:00
Georg Brandl ed13853e5d Happy New Year! (CET edition) 2010-12-31 23:00:03 +00:00
Hirokazu Yamamoto ba466cd208 Merged revisions 85071-85072,85894,87132 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r85071 | hirokazu.yamamoto | 2010-09-29 03:29:57 +0900 (水, 29 9 2010) | 1 line

  Now perl path with spaces can be used.
........
  r85072 | hirokazu.yamamoto | 2010-09-29 03:36:04 +0900 (水, 29 9 2010) | 1 line

  Updated PC/VC6 openssl build script. (for openssl-1.0.0a)
........
  r85894 | hirokazu.yamamoto | 2010-10-29 02:57:25 +0900 (金, 29 10 2010) | 1 line

  Updated readme.txt about OpenSSL.
........
  r87132 | hirokazu.yamamoto | 2010-12-08 23:47:07 +0900 (水, 08 12 2010) | 3 lines

  Mention NASM which is needed to build openssl-1.0.0a original source.
  (PC/VC6/readme.txt)
........
2010-12-09 09:25:38 +00:00
Hirokazu Yamamoto 3405de03a6 Mention NASM which is needed to build openssl-1.0.0a original source.
(PC/VC6/readme.txt)
2010-12-08 14:47:07 +00:00
Martin v. Löwis d53ee5dd12 Automate build for python3.dll.
Package missing files.
2010-12-05 23:07:58 +00:00
Martin v. Löwis 0d012f284b Expose CompileString, not CompileStringFlags under the
limited API.
2010-12-04 12:00:49 +00:00
Martin v. Löwis 4d0d471a80 Merge branches/pep-0384. 2010-12-03 20:14:31 +00:00
Hirokazu Yamamoto 4ae5f138da Issue #6317: Now winsound.PlaySound only accepts unicode with MvL's approval. 2010-11-07 14:29:26 +00:00
Hirokazu Yamamoto 339293a372 Merged revisions 86283 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r86283 | hirokazu.yamamoto | 2010-11-07 18:23:15 +0900 | 1 line

  Issue #6317: Now winsound.PlaySound can accept non ascii filename.
........
2010-11-07 11:53:57 +00:00
Hirokazu Yamamoto c661015141 Merged revisions 86281,86285 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r86281 | hirokazu.yamamoto | 2010-11-07 11:45:19 +0900 | 1 line

  Formatted code. (Tabify, etc)
........
  r86285 | hirokazu.yamamoto | 2010-11-07 20:07:44 +0900 | 1 line

  Reformatted code a bit.
........
2010-11-07 11:41:07 +00:00
Hirokazu Yamamoto cdc8cdd215 Reformatted code a bit. 2010-11-07 11:07:44 +00:00
Hirokazu Yamamoto c08c9bccfc Issue #6317: Now winsound.PlaySound can accept non ascii filename. 2010-11-07 09:23:15 +00:00
Hirokazu Yamamoto 62fbdd9b7b Formatted code. (Tabify, etc) 2010-11-07 02:45:19 +00:00
Hirokazu Yamamoto 5ee89cf13e Updated PC/VS8.0. (mainly to follow r86137: use temporary dir in make_buildinfo.c) 2010-11-04 15:21:59 +00:00
Hirokazu Yamamoto de5919dca7 Can build older OpenSSL in http://svn.python.org/projects/externals/
without Perl again.
2010-11-04 14:11:32 +00:00
Hirokazu Yamamoto 59b7c70d58 Recorded merge of revisions 86117 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r86117 | hirokazu.yamamoto | 2010-11-02 23:06:03 +0900 | 2 lines

  Defined Py_BUILD_CORE_MODULE also on VC7.1.
  # I don't have this compiler, so I couldn't test it.
........
2010-11-02 15:44:18 +00:00
Hirokazu Yamamoto 54b6903a08 Recorded merge of revisions 86113 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r86113 | hirokazu.yamamoto | 2010-11-02 22:21:31 +0900 | 1 line

  Defined Py_BUILD_CORE_MODULE also on VC6.
........
2010-11-02 15:11:47 +00:00
Hirokazu Yamamoto f74ed2ea4c Defined Py_BUILD_CORE_MODULE also on VC7.1.
# I don't have this compiler, so I couldn't test it.
2010-11-02 14:06:03 +00:00
Hirokazu Yamamoto 4285f9446a Py_BUILD_CORE_MODULE was not needed in python.dsp and pythonw.dsp. 2010-11-02 13:48:13 +00:00
Hirokazu Yamamoto a2c9770bae Defined Py_BUILD_CORE_MODULE also on VC6. 2010-11-02 13:21:31 +00:00
Hirokazu Yamamoto 7c3d709377 Updated readme.txt about OpenSSL. 2010-10-28 17:57:25 +00:00
Antoine Pitrou fbb1c6191c Follow up to #9778: fix regressions on 64-bit Windows builds 2010-10-23 17:37:54 +00:00
Georg Brandl 66c221e993 #9418: first step of moving private string methods to _string module. 2010-10-14 07:04:07 +00:00
Hirokazu Yamamoto beae8efb1b Merged revisions 84763,85135 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r84763 | hirokazu.yamamoto | 2010-09-13 15:21:54 +0900 | 1 line

  Cosmetic fix to project files.
........
  r85135 | hirokazu.yamamoto | 2010-10-01 19:40:49 +0900 | 1 line

  Cosmetic fix for PCBuild/readme.txt.
........
2010-10-08 09:32:13 +00:00
Hirokazu Yamamoto e75bc2c6f9 Follows Python/fileutils.c addition. 2010-10-08 08:46:30 +00:00
Hirokazu Yamamoto 7405c200bb Updated PC/VC6 openssl build script. (for openssl-1.0.0a) 2010-09-28 18:36:04 +00:00
Hirokazu Yamamoto 313dab43fe Now perl path with spaces can be used. 2010-09-28 18:29:57 +00:00
Hirokazu Yamamoto d057cd62f7 Updated VS8.0 bz2.vcproj with PCBuild/vs9to8.py. 2010-09-28 07:03:40 +00:00
Brian Curtin 1771b54bed Implement #8521. Added named argument handling to winreg's CreateKeyEx,
DeleteKeyEx, and OpenKeyEx.

Note that CKE and DKE are new functions for 3.2 so I didn't give them a
versionchanged because of the existing versionadded. OpenKeyEx already
existed so it gets a versionchanged tag.
2010-09-27 17:56:36 +00:00
Kristján Valur Jónsson 3b69db27d7 issue 9910
Add a Py_SetPath api to override magic path computations when starting up python.
2010-09-27 05:32:54 +00:00
Hirokazu Yamamoto 5e83da3d08 Issue #9552: Avoid unnecessary rebuild of OpenSSL. (Windows) 2010-09-24 16:36:34 +00:00
Hirokazu Yamamoto 2c36c3cc06 Updated VS8.0 project files with PCBuild/vs9to8.py. 2010-09-21 18:59:41 +00:00
Hirokazu Yamamoto 2f816e6a10 Issue #9552: Avoid unnecessary rebuild of OpenSSL. (Windows) 2010-09-21 18:23:05 +00:00
Hirokazu Yamamoto e31f7d9e2e Revert r84902 before committing better solution. 2010-09-21 16:05:47 +00:00
Hirokazu Yamamoto ba45c2b6a7 Issue #9552: Avoid unnecessary rebuild of OpenSSL. (Windows) 2010-09-19 09:24:20 +00:00
Hirokazu Yamamoto 35aa08376b Applied r84870 to older compilers. 2010-09-18 04:02:52 +00:00
Hirokazu Yamamoto 4cc96a16da Cosmetic fix to project files. 2010-09-13 06:21:54 +00:00
Hirokazu Yamamoto 6095435664 Updated PC/VS8.0 with PCBuild/vs9to8.py. 2010-09-13 05:59:38 +00:00
Hirokazu Yamamoto 13bba43e25 Merged revisions 84644 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r84644 | hirokazu.yamamoto | 2010-09-09 15:14:23 +0900 | 1 line

  Updated VS7.1 project file. (I cannot test this file because I don't have VS7.1)
........
2010-09-10 02:59:55 +00:00
Hirokazu Yamamoto d72461a7ed Updated VS7.1 project file. (I cannot test this file because I don't have VS7.1) 2010-09-09 06:14:23 +00:00
Hirokazu Yamamoto 50e7cdb6b6 Updated VC6 files.
* pythoncore.dsp: updated project file
* readme.txt: removed dead link
* tcl852.patch: fixed patch. it was doubled.
2010-09-09 06:08:36 +00:00
Antoine Pitrou 0bb502dcac Merged revisions 84506 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r84506 | antoine.pitrou | 2010-09-04 22:53:29 +0200 (sam., 04 sept. 2010) | 5 lines

  Issue #8734: Avoid crash in msvcrt.get_osfhandle() when an invalid file
  descriptor is provided.  Patch by Pascal Chambon.
........
2010-09-04 21:02:41 +00:00
Antoine Pitrou 0049249d63 Issue #8734: Avoid crash in msvcrt.get_osfhandle() when an invalid file
descriptor is provided.  Patch by Pascal Chambon.
2010-09-04 20:53:29 +00:00
Florent Xicluna c934f32e0a Welcome to the UTF-8 world. 2010-09-03 23:47:32 +00:00
Daniel Stutzbach 864078a5dd Issue 8781: Define SIZEOF_WCHAR_T on Windows 2010-08-25 19:18:59 +00:00
Brian Curtin 8790a07927 Fix #7579. Add docstrings to msvcrt and adjust some wording for bytes. 2010-08-24 05:20:30 +00:00
Tim Golden 0ceb671aff Remove long-redundant plat-win from sys.path on Windows 2010-08-20 08:31:26 +00:00
Brian Curtin 852823d731 Cleanup and correct a few ints to be Py_ssize_t. 2010-08-17 20:49:09 +00:00
Brian Curtin abb3351785 Properly downcast from size_t/Py_ssize_t in a few places. 2010-08-17 20:08:40 +00:00
Amaury Forgeot d'Arc f2b69df023 Fix compilation warning on Windows 2010-08-16 22:11:29 +00:00
Tim Golden 10215de1ba Issue #3210: Revert C module changes and apply patch from Hirokazu Yamamoto instead 2010-08-08 11:18:34 +00:00
Tim Golden ad537f23e2 Issue #3210: Revert C module changes and apply patch from Hirokazu Yamamoto instead 2010-08-08 11:18:16 +00:00
Tim Golden 40b3744efa Issue #3210: Ensure stdio handles are closed if CreateProcess fails 2010-08-06 13:20:12 +00:00
Tim Golden af5ac3974b Issue #3210: Ensure stdio handles are closed if CreateProcess fails 2010-08-06 13:03:56 +00:00
Raymond Hettinger 373e78c6f5 Fix the VS8.0 build 2010-08-06 09:22:46 +00:00
Raymond Hettinger da6401dab8 Fix VS8.0 build by adding _time.h and _time.c to the project file. 2010-08-01 21:50:38 +00:00
Raymond Hettinger f0f2e65a54 Fix build on VS8. 2010-07-31 23:33:22 +00:00
Georg Brandl fff9021f75 Update copyright years and add releases to release list. Also update Sphinx version number. 2010-07-31 09:01:16 +00:00
Alexander Belopolsky cf86e368eb Issue #7989: Added pure python implementation of the datetime module. 2010-07-23 19:25:47 +00:00
Mark Dickinson 7ab54e4252 Issue #9089: Remove intobject.h from MSVC project files. 2010-06-27 18:18:01 +00:00
Brian Curtin 7f99f092eb Merged revisions 81843 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r81843 | brian.curtin | 2010-06-08 15:57:52 -0500 (Tue, 08 Jun 2010) | 3 lines

  Fix a compile warning missed during porting (wchar_t/char) and move a
  variable declaration outside of a loop. #2810 was when this first went in.
........
2010-06-08 21:00:35 +00:00
Brian Curtin 9b7e2d1e54 Fix a compile warning missed during porting (wchar_t/char) and move a
variable declaration outside of a loop. #2810 was when this first went in.
2010-06-08 20:57:52 +00:00