Commit Graph

633 Commits

Author SHA1 Message Date
Alexandre Vassalotti 1aed624f7c Backport fast alternate io.BytesIO implementation.
Merged r62778, r62779, r62802, r62806, r62807, r62808, r62809, r62844,
r62846, r62952, r62956.
2008-05-09 21:49:43 +00:00
Brett Cannon 4b964f9c90 Add the 'json' package. Code taken from simplejson 1.9 and contributed by Bob
Ippolito.

Closes issue #2750.
2008-05-05 20:21:38 +00:00
Mark Hammond 7c5c8e6823 #2581: Vista UAC/elevation support for bdist_wininst 2008-05-02 12:48:15 +00:00
Christian Heimes 81ad6a185a Added new files to Windows project files
More Windows related fixes are coming soon
2008-04-18 23:40:40 +00:00
Christian Heimes 6f34109384 I finally got the time to update and merge Mark's and my trunk-math branch. The patch is collaborated work of Mark Dickinson and me. It was mostly done a few months ago. The patch fixes a lot of loose ends and edge cases related to operations with NaN, INF, very small values and complex math.
The patch also adds acosh, asinh, atanh, log1p and copysign to all platforms. Finally it fixes differences between platforms like different results or exceptions for edge cases. Have fun :)
2008-04-18 23:13:07 +00:00
Amaury Forgeot d'Arc 14d6b0f8f0 Update project files for all Windows supported compilers 2008-04-14 19:55:40 +00:00
Brett Cannon 76ca13ca2a Fix an accidental bug of an non-existent init function. 2008-04-13 00:25:15 +00:00
Brett Cannon e974689038 Re-implement the 'warnings' module in C. This allows for usage of the
'warnings' code in places where it was previously not possible (e.g., the
parser). It could also potentially lead to a speed-up in interpreter start-up
if the C version of the code (_warnings) is imported over the use of the
Python version in key places.

Closes issue #1631171.
2008-04-12 23:44:07 +00:00
Amaury Forgeot d'Arc 7adc776ea6 Issue 2408: remove the _types module
It was only used as a helper in types.py to access types (GetSetDescriptorType and MemberDescriptorType),
when they can easily be obtained with python code.
These expressions even work with Jython.

I don't know what the future of the types module is; (cf. discussion in http://bugs.python.org/issue1605 )
at least this change makes it simpler.
2008-04-08 22:07:05 +00:00
Andrew M. Kuchling eba0004198 Typographical fix: 32bit -> 32-bit, 64bit -> 64-bit 2008-04-08 01:33:10 +00:00
Mark Hammond 495cf99aaf Issue #2513: enable 64bit cross compilation on windows. 2008-04-07 01:53:39 +00:00
Mark Hammond 8a3c8716e8 From issue 1753245 - better _winreg support for x64.
Adds _winreg.DisableReflectionKey, EnableReflectionKey, QueryReflectionKey,
KEY_WOW64_64KEY and KEY_WOW64_32KEY.
2008-04-06 01:42:06 +00:00
Amaury Forgeot d'Arc 1725f2470b One #ifdef too much, and I broke all windows buildbots:
in pyconfig.h, NTDDI_WIN2KSP4 is not *yet* defined, but will be at some point on some modules.

Let this line even for older SDKs, they don't use it anyway.
2008-03-28 22:43:38 +00:00
Amaury Forgeot d'Arc 94eba715ad Repair compilation for Visual Studio 2005.
I applied the same changes manually to VS7.1 and VC6 files; completely untested.

(Christian, don't try too hard merging this change into py3k.
It will be easier to do the same work again on the branch)
2008-03-28 21:55:29 +00:00
Christian Heimes 9a960c6015 Revert commit accident 2008-03-27 01:38:47 +00:00
Christian Heimes a82e8db5e4 Hopefully added _fileio module to the Windows build system 2008-03-27 01:36:21 +00:00
Neal Norwitz 4677fbf7de Try to fix a bunch of compiler warnings on Win64. 2008-03-25 04:18:18 +00:00
Barry Warsaw 189b6d85c9 More copyright year and version number bumps 2008-03-01 03:15:20 +00:00
Christian Heimes c5f05e45cf Patch #2167 from calvin: Remove unused imports 2008-02-23 17:40:11 +00:00
Eric Smith a73fbe791d Added future_builtins, which contains PEP 3127 compatible versions of hex() and oct(). 2008-02-23 03:09:44 +00:00
Amaury Forgeot d'Arc e7fa408741 Compilation was broken on Windows since the introduction of Advanced String Formatting.
Only PCBuild (vs9) was really tested.
Changes for older compilers were done manually.
2008-02-17 20:56:31 +00:00
Martin v. Löwis e0d30ef0ca Patch #1736: Fix file name handling of _msi.FCICreate. 2008-02-12 13:47:26 +00:00
Christian Heimes 95d644708e Issue #1706: Require Windows 2000+
Added Py_BUILD_CORE_MODULES macro to set WINVER and NTDDI_VERSION to Windows 2000 for core modules, too
Added -d option to build.bat (same as -c Debug) and fixed warning about /build option
Updated Windows related readme.txt files
2008-02-09 19:55:22 +00:00
Andrew MacIntyre 52895fc39f Rename module definition file to reflect v2.6. 2008-02-03 07:01:11 +00:00
Andrew MacIntyre e6d9010b77 Update OS/2 EMX build bits for 2.6. 2008-02-03 06:58:06 +00:00
Christian Heimes 195b883bb4 vs9to8 sync 2008-01-09 14:46:10 +00:00
Christian Heimes b39a756afd Added __enter__ and __exit__ functions to HKEY object
Added ExpandEnvironmentStrings to the _winreg module.
2008-01-08 15:46:10 +00:00
Christian Heimes aee643b01f Reverted last transaction. It's the wrong branch. 2008-01-04 15:34:06 +00:00
Christian Heimes 306179b173 And here is the rest of Hirokazu Yamamoto's patch for VS6.0 support. Thanks Hiro! 2008-01-04 15:29:00 +00:00
Christian Heimes 1beea3be3e Issue #1726: Remove Python/atof.c from PCBuild/pythoncore.vcproj 2008-01-03 15:41:30 +00:00
Christian Heimes d9fbab2621 Removed PCbuild8/ directory and added a new build directory for VS 2005
based on the VS 2008 build directory to PC/VS8.0. The script
PCbuild/vs8to9.py was added to sync changes from PCbuild to PC/VS8.0.

Kristjan, the initial creator of the PCbuild8 directory is fine with the replacement. I've moved the new version of the VS 2005 build directory next to the other legacy build directories. The new sync script is based on the work of wreck and syncs changes in the project, property and solution files.
2008-01-02 17:43:40 +00:00
Christian Heimes e1c6af06ec The root of the project is two levels up from PC/VS7.1 2008-01-01 13:58:16 +00:00
Christian Heimes 44ac35519b Fixed path to _ssl.c in Windows make file, take three ... 2007-12-31 19:25:22 +00:00
Christian Heimes 340f081341 Fixed path to _ssl.c in Windows make file, take two 2007-12-31 19:23:22 +00:00
Christian Heimes 763c06f760 Fixed path to _ssl.c in Windows make file 2007-12-31 19:20:57 +00:00
Christian Heimes 34ab3db862 Fixed path 2007-12-31 19:16:56 +00:00
Christian Heimes 82552229d2 Fixed include paths of PC/VS7.1 2007-12-31 16:17:13 +00:00
Christian Heimes 656dc2adee Fix paths for build bot 2007-12-31 14:59:26 +00:00
Christian Heimes 915d5d96d8 Moved PCbuild directory to PC/VS7.1 2007-12-31 14:51:18 +00:00
Christian Heimes 0a8143f646 Applied patch #1635: Float patch for inf and nan on Windows (and other platforms).
The patch unifies float("inf") and repr(float("inf")) on all platforms.
2007-12-18 23:22:54 +00:00
Christian Heimes 61927fc049 Stupid save all didn't safe it all ... 2007-12-10 15:39:09 +00:00
Christian Heimes 7c7f6afa92 Added wide char api variants of getch and putch to msvcrt module. The wide char methods are required to fix #1578 in py3k. I figured out that they might be useful in 2.6, too. 2007-12-10 15:12:41 +00:00
Christian Heimes 3d2f564d41 Several Windows related cleanups:
* Removed a #define from pyconfig.h. The macro was already defined a few lines higher.
* Fixed path to tix in the build_tkinter.py script
* Changed make_buildinfo.c to use versions of unlink and strcat which are considered safe by Windows (as suggested by MvL).
* Removed two defines from pyproject.vsprops that are no longer required. Both are defined in pyconfig.h and make_buildinfo.c doesn't use the unsafe versions any more (as suggested by MvL).
* Added some more information about PGO and the property files to PCbuild9/readme.txt.

Are you fine with the changes, Martin?
2007-12-06 21:13:06 +00:00
Christian Heimes 9f6d4ceb43 Although pyconfig.h claims that WIN32 is obsolete it is still required for the locale module. locale.getdefaultlocale() fails silently w/o the WIN32 macro. 2007-12-01 01:03:20 +00:00
Christian Heimes 3971f6b8fb Removed or replaced some more deprecated preprocessor macros.
Moved the _DEBUG and NDEBUG macros to two new property files.
Fixed #1527 Problem with static libs on Windows
Updated README.txt
2007-11-30 19:18:08 +00:00
Martin v. Löwis d476a400b4 Bug #1216: Restore support for Visual Studio 2002.
Will backport to 2.5.
2007-10-12 08:56:52 +00:00
Mark Hammond a6a21fabbc Correct use of Py_BUILD_CORE - now make sure it is defined before it is
referenced, and also fix definition of _WIN32_WINNT.
Resolves patch 1761803.
2007-07-30 00:45:29 +00:00
Mark Hammond df7f38face Correctly detect AMD64 architecture on VC2003 2007-07-27 05:08:54 +00:00
Mark Hammond d0aabc03c6 In consultation with Kristjan Jonsson, only define WINVER and _WINNT_WIN32
if (a) we are building Python itself and (b) no one previously defined them
2007-07-27 04:52:32 +00:00
Martin v. Löwis 6819210b9e PEP 3123: Provide forward compatibility with Python 3.0, while keeping
backwards compatibility. Add Py_Refcnt, Py_Type, Py_Size, and
PyVarObject_HEAD_INIT.
2007-07-21 06:55:02 +00:00