Commit Graph

703 Commits

Author SHA1 Message Date
Tim Golden 431774f32a Issue #3210: Revert C module changes and apply patch from Hirokazu Yamamoto instead 2010-08-08 11:17:56 +00:00
Tim Golden 90374f5102 Issue #3210: Ensure stdio handles are closed if CreateProcess fails 2010-08-06 13:14:33 +00:00
Brian Curtin d7afd31a9b Move a variable declration outside of a loop to match what was
done in r81843 for py3k.
2010-06-08 21:15:06 +00:00
Brian Curtin b64c89bd7a Fix #2810 - handle the case where some registry calls return
ERROR_MORE_DATA, requiring another call to get the remaining data.

Patch by Daniel Stutzbach
2010-05-25 15:06:15 +00:00
Antoine Pitrou 8617161a2a Fixup indentation of PC/_msi.c 2010-05-09 15:15:11 +00:00
Antoine Pitrou c83ea137d7 Untabify C files. Will watch buildbots. 2010-05-09 14:46:46 +00:00
Brian Curtin a2936cfa09 Fix #7838. Add docstrings and privatize _subprocess implementation details.
Since CREATE_NEW_* are used for the creation flags of a subprocess, they
were added to __all__. The rest of the previously exposed attributes are
now qualified by _subprocess.ATTR rather than importing *.
2010-04-24 15:40:11 +00:00
Brian Curtin e5aa886b44 Implement #1220212. Add os.kill support for Windows.
os.kill takes one of two newly added signals, CTRL_C_EVENT and
CTRL_BREAK_EVENT, or any integer value. The events are a special case
which work with subprocess console applications which implement a
special console control handler. Any other value but those two will
cause os.kill to use TerminateProcess, outright killing the process.

This change adds win_console_handler.py, which is a script to implement
SetConsoleCtrlHandler and applicable handler function, using ctypes.

subprocess also gets another attribute which is a necessary flag to
creationflags in Popen in order to send the CTRL events.
2010-04-02 23:26:06 +00:00
Brian Curtin e33fa887d3 Implement #7347. Add CreateKeyEx, DeleteKeyEx, and update _winreg tests.
*ReflectionKey functions used to not be documented or tested, but they are
now sufficiently documented and tested on platforms where they apply.
Additionally, fixed a bug in QueryReflectionKey which was returning an
incorrect value.

All tests pass from XP through Windows 7, on 32 and 64-bit platforms.
2010-04-02 21:18:14 +00:00
Larry Hastings 5ac006dfd3 Capsule-related changes:
* PyCObject_AsVoidPtr() can now open capsules.  This addresses
  most of the remaining backwards-compatibility concerns about
  the conversion of Python 2.7 from CObjects to capsules.
* CObjects were marked Pending Deprecation.
* Documentation about this pending deprecation was added to
  cobject.h.
* The capsule source files were added to the legacy PC build
  processes.
2010-04-02 11:01:35 +00:00
Larry Hastings 402b73fb8d Backported PyCapsule from 3.1, and converted most uses of
CObject to PyCapsule.
2010-03-25 00:54:54 +00:00
Amaury Forgeot d'Arc adfc80bd81 #4852: Remove dead code in every thread implementation, unused for many years. 2010-02-23 23:19:39 +00:00
Martin v. Löwis 413fabc070 Stop providing crtassem.h symbols when compiling with
Visual Studio 2010, as msvcr100.dll is not a platform
assembly anymore.
2010-02-18 09:22:20 +00:00
Antoine Pitrou 6467213bfd Issue #7622: Improve the split(), rsplit(), splitlines() and replace()
methods of bytes, bytearray and unicode objects by using a common
implementation based on stringlib's fast search.  Patch by Florent Xicluna.
2010-01-13 07:55:48 +00:00
Georg Brandl b7953f00b1 We only support Windows NT derivatives now. 2009-12-30 19:03:00 +00:00
Amaury Forgeot d'Arc c8a2ce7670 #7579: Add docstrings to the msvcrt module 2009-12-29 23:06:17 +00:00
Mark Dickinson 9cae178f21 Issue #3366: Add expm1 function to math module. Thanks Eric Smith for
testing on Windows.
2009-12-16 20:13:40 +00:00
Mark Dickinson 117a899e4d Add dtoa.c and dtoa.h to the relevant project files. 2009-11-30 21:51:30 +00:00
Raymond Hettinger 2ef9e8ce00 Update project file for new file: dtoa.c 2009-11-30 21:14:25 +00:00
Eric Smith 8c3fb39440 Removed unused function PyFloat_AsStringEx. It is unused in floatobject.c, and it's not declared in any .h file. 2009-10-24 19:50:44 +00:00
Mark Dickinson 1d6e2e1833 Issue #7117 (backport py3k float repr) continued:
- add double endianness detection to configure script
 - add configure-time check to see whether we can use inline
   assembly to get and set x87 control word in configure script
 - add functions to get and set x87 control word in Python/pymath.c
 - add pyport.h logic to determine whether it's safe to use the
   short float repr or not
2009-10-24 13:28:38 +00:00
Amaury Forgeot d'Arc f31fd0179e Set svn:eol-style=CRLF on all Visual Studio solution files.
This should allow direct compilation from a downloaded source tar ball.
2009-07-13 19:14:17 +00:00
Hirokazu Yamamoto a3c5609079 Issue #4856: Remove checks for win NT. 2009-06-28 10:23:00 +00:00
Hirokazu Yamamoto e69041db56 Updated MSVC files to follow r73394. 2009-06-14 03:05:54 +00:00
Amaury Forgeot d'Arc 901f200c81 #6201: Fix test_winreg on Windows:
since the introduction of the SETUP_WITH opcode,
__enter__ and __exit__ methods must belong to the type,
and are not retrieved at the instance level (__dict__ or __getattr__).

Add a note in whatsnew about this incompatibility;
old style classes are not affected.
2009-06-09 23:08:13 +00:00
Hirokazu Yamamoto b24bb27d22 Issue #3527: Removed Py_WIN_WIDE_FILENAMES which is not used any more. 2009-05-17 02:52:09 +00:00
Eric Smith cac7af6863 Issue #5793: rationalize isdigit / isalpha / tolower, etc. Will port to py3k. Should fix Windows buildbot errors. 2009-04-27 19:04:37 +00:00
Hirokazu Yamamoto 957320a08a Fixed compile error on windows. 2009-04-03 03:54:08 +00:00
Mark Dickinson efc82f7e8e Issue #4258: Use 30-bit digits for Python longs, on 64-bit platforms.
Backport of r70459.
2009-03-20 15:51:55 +00:00
Hirokazu Yamamoto eb15863a97 Updated openssl support on VC6. (openssl-0.9.6g is old, cannot compile with _ssl.c)
If you use http://svn.python.org/projects/external/openssl-0.9.8g, Perl is not needed.
This scheme was ported from PCBuild.
2009-03-18 10:17:26 +00:00
Hirokazu Yamamoto eacbbdfb73 Issue #5179: Fixed subprocess handle leak on failure on windows. 2009-03-03 22:18:14 +00:00
Mark Dickinson 3e4caeb3bf Issue #5341: Fix a variety of spelling errors. 2009-02-21 20:27:01 +00:00
Hirokazu Yamamoto e71fc87112 Fixed svn:eol-style. 2009-02-10 13:31:28 +00:00
Martin v. Löwis fee1c7f4c9 Issue #4494: Fix build with Py_NO_ENABLE_SHARED on Windows. 2009-02-02 14:23:16 +00:00
Mark Hammond 6ed1cb0014 Fix issue5075: bdist_wininst should not depend on the vc runtime? 2009-01-29 12:13:31 +00:00
Mark Hammond 9f4f56d4e8 On Windows, use the Python 'Activation Context' when loading extensions
to avoid problems loading the CRT from a private assembly.  Via bug 4566.
2009-01-27 23:12:23 +00:00
Amaury Forgeot d'Arc a18392a324 #4807: Remove a wrong usage of wsprintf in the winreg module
("windows sprintf", different than swprintf)

Needed for the windows CE port.
2009-01-13 23:19:08 +00:00
Martin v. Löwis eefda27e97 Issue #4895: Use _strdup on Windows CE. 2009-01-11 09:43:55 +00:00
Hirokazu Yamamoto 14aa4599ed Fixed version number in build_ssl.bat. 2009-01-11 03:28:13 +00:00
Hirokazu Yamamoto dbf558888e Added helper script to build Tcl/Tk. 2009-01-10 09:18:16 +00:00
Hirokazu Yamamoto 420ab8a84f Link to debug version of Tcl/Tk when python is built as debug version. 2009-01-10 08:12:09 +00:00
Hirokazu Yamamoto e0f8b3d528 Bump up Tcl/Tk version on VC6. (tcl8.4.12 -> tcl8.5.2, tk8.4.12 -> tk8.5.2, tix8.4.0 -> tix8.4.3) 2009-01-10 08:09:43 +00:00
Hirokazu Yamamoto 343b970da9 Bump up bsddb version on VC6. (db-4.4.20 -> db-4.7.25) 2009-01-09 04:10:40 +00:00
Hirokazu Yamamoto eaec6b6d19 Bump up bzip2 version on VC6. (bzip2-1.0.3 -> bzip2-1.0.5) 2009-01-09 03:32:46 +00:00
Mark Dickinson d181e3a246 isinf and isnan are macros, not functions; fix configure script
to use AC_CHECK_DECLS instead of AC_CHECK_FUNCS for these.
(See discussion in issue #4506)
2009-01-04 13:57:26 +00:00
Martin v. Löwis 0fa10b3cd5 Issue #4817: Remove unused function PyOS_GetLastModificationTime. 2009-01-03 17:19:26 +00:00
Christian Heimes ed2f423775 Bumped up 2.6 to 2.7 2008-12-04 14:34:40 +00:00
Martin v. Löwis bcb017f353 Issue #4365: Add crtassem.h constants to the msvcrt module. 2008-11-30 19:28:27 +00:00
Amaury Forgeot d'Arc 98adb5ca65 yuvconvert.c is a part of the "sv" module, an old IRIX thing
and certainly not useful for any Windows build.
2008-11-22 19:39:38 +00:00
Hirokazu Yamamoto ea00ed30df Follows to python's version change (VC6) 2008-10-03 16:07:28 +00:00