Commit Graph

1028 Commits

Author SHA1 Message Date
Steve Dower
11d7b1423f Issue #24268: Adds PyModuleDef_Init and PyModuleDef_Type to python3.def (stable ABI) 2015-05-23 14:44:37 -07:00
Nick Coghlan
d5cacbb1d9 PEP 489: Multi-phase extension module initialization
Known limitations of the current implementation:

- documentation changes are incomplete
- there's a reference leak I haven't tracked down yet

The leak is most visible by running:

  ./python -m test -R3:3 test_importlib

However, you can also see it by running:

  ./python -X showrefcount

Importing the array or _testmultiphase modules, and
then deleting them from both sys.modules and the local
namespace shows significant increases in the total
number of active references each cycle. By contrast,
with _testcapi (which continues to use single-phase
initialisation) the global refcounts stabilise after
a couple of cycles.
2015-05-23 22:24:10 +10:00
Steve Dower
4a7fe7e397 Issue #23955: Add pyvenv.cfg option to suppress registry/environment lookup for generating sys.path.
Also cleans up and secures getpathp.c
2015-05-22 15:10:10 -07:00
Zachary Ware
f4e6030542 Closes #21931: Merge with 3.4 2015-05-18 00:49:15 -05:00
Zachary Ware
0a29e898cd Issue #21931: Fix error handling in msilib.FCICreate().
Patch by Jeffrey Armstrong.
2015-05-18 00:47:15 -05:00
Steve Dower
71f574f707 Issue #23995: Removes _WCONIO_DEFINED check as the wchar_t console functions are always available. 2015-05-13 19:35:49 -07:00
Zachary Ware
77772c0e7b Issue #20172: Update clinicizations to current clinic. 2015-05-13 10:58:35 -05:00
Zachary Ware
4552089617 Issue #20172: Convert the msvcrt module to Argument Clinic. 2015-05-13 01:22:32 -05:00
Zachary Ware
fd2d482272 Issue #20172: Convert the winreg module to Argument Clinic. 2015-05-13 01:21:57 -05:00
Zachary Ware
73f8cfb040 Issue #20172: Convert the winsound module to Argument Clinic. 2015-05-13 01:21:21 -05:00
Zachary Ware
774ac377da Closes #17202: Merge with 3.4 2015-04-13 12:11:40 -05:00
Steve Dower
8fc8980c96 Issue #23524: Replace _PyVerify_fd function with calls to _set_thread_local_invalid_parameter_handler. 2015-04-12 00:26:27 -04:00
Serhiy Storchaka
bfbfc8deb2 Removed unintentional trailing spaces in text files. 2015-03-29 19:12:58 +03:00
Serhiy Storchaka
009b811d67 Removed unintentional trailing spaces in non-external and non-generated C files. 2015-03-18 21:53:15 +02:00
Steve Dower
6dd20c2d52 Removes unused format string insertion in launcher.c. 2015-03-10 19:40:37 -07:00
Steve Dower
13be8c2691 Removes unused format string insertion in launcher.c. 2015-03-10 19:38:25 -07:00
Steve Dower
d81431f587 Issue #23524: Replace _PyVerify_fd function with calling _set_thread_local_invalid_parameter_handler on every thread. 2015-03-06 14:47:02 -08:00
Steve Dower
3e96f324dc Issue #23451: Update pyconfig.h for Windows to require Vista headers and remove unnecessary version checks. 2015-03-02 08:01:10 -08:00
Steve Dower
76998fef2c Issue #23465: Implement PEP 486 - Make the Python Launcher aware of virtual environments (patch by Paul Moore) 2015-02-26 14:25:33 -08:00
Steve Dower
f63dab5a84 Back-out wcstok deprecation suppression and updates calls to use wcstok_s. 2015-02-25 20:48:01 -08:00
Steve Dower
d671213744 Closes #23018: Replace copyright symbol with escape. 2015-02-20 09:08:48 -08:00
Serhiy Storchaka
4d0d982985 Issue #23446: Use PyMem_New instead of PyMem_Malloc to avoid possible integer
overflows.  Added few missed PyErr_NoMemory().
2015-02-16 13:33:32 +02:00
Serhiy Storchaka
1a1ff29659 Issue #23446: Use PyMem_New instead of PyMem_Malloc to avoid possible integer
overflows.  Added few missed PyErr_NoMemory().
2015-02-16 13:28:22 +02:00
Steve Dower
bb24087a2c Issue #23260: Update Windows installer 2015-02-05 22:08:48 -08:00
Steve Dower
9c13bd9ac2 Updated copyright year (after my patch from last year reverted it) 2015-01-17 14:29:01 -08:00
Steve Dower
ab04064756 Issue 23018: Add version info to python[w].exe 2015-01-15 09:10:43 -08:00
Steve Dower
2587952f2f Fixes sys.winver generation and removes dependency on user32.dll 2015-01-15 09:10:16 -08:00
Steve Dower
84bcfb35da Changes %s to %ls in wprintf in launcher.c for C99 compatibility. 2015-01-02 18:07:46 -08:00
Benjamin Peterson
52074ac866 merge 3.4 2014-12-31 18:11:34 -06:00
Benjamin Peterson
a453749a78 merge 3.3 2014-12-31 18:11:22 -06:00
Benjamin Peterson
7919acb920 merge 3.2 2014-12-31 18:10:13 -06:00
Benjamin Peterson
47e782a67a update for copyright for 2015 2014-12-31 18:09:36 -06:00
Steve Dower
03a144bb6a #22980 Adds platform and version tags to .pyd files 2014-12-15 20:45:23 -08:00
Steve Dower
89fc3caedb Make bdist_wininst build only on demand 2014-12-15 17:19:27 -08:00
Steve Dower
1f6c29a914 Removes bdist_wininst dependency on MFC. 2014-12-15 15:03:44 -08:00
Benjamin Peterson
25c7d3fb21 give a nice message when installer is launched w/o admin rights (closes #16561) 2014-11-27 20:39:02 -06:00
Steve Dower
65e4cb10d9 Issue #22919: Windows build updated to support VC 14.0 (Visual Studio 2015), which will be used for the official 3.5 release. 2014-11-22 12:54:57 -08:00
Benjamin Peterson
2292defb3d merge 3.4 (#16561) 2014-11-27 20:41:36 -06:00
Victor Stinner
f427a14156 Issue #22592: Drop support of the Borland C compiler to build Python
The distutils module still supports it to build extensions.
2014-10-22 12:33:23 +02:00
Georg Brandl
edc3cbaaba Copyright year update, add version to licenses. 2014-10-04 14:16:59 +02:00
Antoine Pitrou
0676a406bf Issue #18711: Add a new PyErr_FormatV function, similar to PyErr_Format but accepting a va_list argument. 2014-09-30 21:16:27 +02:00
Zachary Ware
54701f303f Issue #21958: Merge with 3.4 2014-07-25 14:47:29 -05:00
Zachary Ware
64ba60aa57 Issue #21958: Define HAVE_ROUND when building with VS 2013 and above.
Patch by Zachary Turner.
2014-07-25 14:34:19 -05:00
Zachary Ware
d8b129f279 Closes #21151: Merge with 3.4 2014-07-03 11:03:46 -05:00
Zachary Ware
ad4690fcca Issue #21151: Fixed a segfault in the winreg module.
When ``None`` was passed as a ``REG_BINARY`` value to SetValueEx,
PyMem_DEL was called on an uninitialized buffer.  Patch by John Ehresman.

(Also an incidental typo fix in a comment in test_winreg)
2014-07-03 10:58:06 -05:00
Zachary Ware
dbb7aa5bd1 Closes #21713: Merge with 3.4 2014-06-11 15:28:31 -05:00
Zachary Ware
732ac3214b Issue #21713: Fix typo in a comment. Found by Joseph Shen. 2014-06-11 15:27:04 -05:00
Martin v. Löwis
b9e71d4a55 Merge with 3.4 2014-05-01 15:18:43 +02:00
Martin v. Löwis
3d5c9e2c67 Update to 1.0.1g 2014-05-01 14:28:48 +02:00
Brett Cannon
be9acefc6b Finish up signal -> _signal change 2014-04-04 10:36:43 -04:00