Segev Finer
c40ad03bf2
bpo-30731: python.manifest fix ( #2328 )
...
bpo-30731: python.manifest fix
2017-07-13 21:34:42 +02:00
Serhiy Storchaka
6969eaf468
bpo-29464: Rename METH_FASTCALL to METH_FASTCALL|METH_KEYWORDS and make ( #1955 )
...
the bare METH_FASTCALL be used for functions with positional-only
parameters.
2017-07-03 21:20:15 +03:00
INADA Naoki
6b42eb1764
bpo-29585: Fix sysconfig.get_config_var("PYTHONFRAMEWORK") (GH-2483)
...
`PYTHONFRAMEWORK` is defined in `Makefile` and it shoulnd't be used
in `pyconfig.h`.
`sysconfig.py --generate-posix-vars` reads config vars from Makefile
and `pyconfig.h`. Conflicting variables should be avoided.
Especially, string config variables in Makefile are unquoted, but
in `pyconfig.h` are keep quoted. So it should be private (starts with
underscore).
2017-06-29 15:31:38 +09:00
Segev Finer
9f3bdcb643
bpo-23451: Fix socket deprecation warnings in socketmodule.c ( #2318 )
...
* bpo-23451: Fix WSASocket and WSADuplicateSocket deprecation warnings
* bpo-23451: Add backwards compatibility note about socket share/fromshare
* bpo-23451: Fixed `WSAAddressToString`/`WSAStringToAddress` deprecation warnings
* bpo-23451: Use `inet_pton`/`inet_ntop` instead of `WSAAddressToString`/`WSAStringToAddress`
* bpo-23451: Move `HAVE_INET_PTON` from _socket.vcxproj to pyconfig.h
* bpo-23451: Add SUPPRESS_DEPRECATED_CALL to socketmodule.c
* bpo-23451: Add a NEWS.d entry
* bpo-23451: Corrected NEWS.d entry
2017-06-28 13:51:00 -07:00
Steve (Gadget) Barnes
5b8f972e09
bpo-30362 : Add list options to launcher. ( #1578 )
...
* bpo-30362 Add list options to launcher.
* bpo-30362 Add list options to help message.
* To avoid possible later conflict with python replaced flags with --launcher-list and --launcher-list-paths
* bpo-30362 Changed flag to -0 as suggested on review.
* bpo-30362: Modified to default to not path for -0, -0p to dispaly path and append * to default
* bpo-30362: Modified to display list on required version not found.
* bpo-30362 add --list and --list-paths added back in following review by paul.moore
* bpo-30362 Cleaner handing of -0 & -0p by not calling exit directly per review by @zooba
* bpo-30362: Tidy up and add news & what's new
Removed commented out line of code in PC/launcher.c.
Added the results of using blurb to add details of bpo-30362 & bpo-30291.
Updated Doc/whatsnew/3.7.rst to add a Windows only section covering both tickets.
* bpo-30362 Resolve conflict in Doc/whatsnew/3.7.rst
* bpo-30362:Address Whitespace Issue in Doc\whatsnew\3.7.rst
* Shorten NEWS message for bpo-30362
* Shorten NEWS item for bpo-30291
2017-06-28 12:14:52 -07:00
Victor Stinner
b01c574ad6
bpo-29585: Define PYTHONFRAMEWORK in PC/pyconfig.h ( #2477 )
...
* bpo-29585: Fix PC/pyconfig.h whitespaces
Run "make patchcheck".
* bpo-29585: Define PYTHONFRAMEWORK in PC/pyconfig.h
* site: Fix path separator in _get_path() on Windows
2017-06-28 18:34:42 +02:00
Serhiy Storchaka
ccdc09ed1e
Fix compiler warnings on Windows introduced in bpo-13617. ( #2464 )
2017-06-28 09:55:22 +03:00
Serhiy Storchaka
f7eae0adfc
[security] bpo-13617: Reject embedded null characters in wchar* strings. ( #2302 )
...
Based on patch by Victor Stinner.
Add private C API function _PyUnicode_AsUnicode() which is similar to
PyUnicode_AsUnicode(), but checks for null characters.
2017-06-28 08:30:06 +03:00
Steve Dower
40a23e8899
bpo-30687: Fixes build scripts to find msbuild.exe and stop relying on vcvarsall.bat ( #2252 )
...
* Fixes build scripts to find msbuild.exe and stop relying on vcvarsall.bat
Also fixes bdist_wininst.vcxproj to use correct version in generated name.
2017-06-19 10:34:25 -07:00
Zachary Ware
6b6e687766
bpo-27425: Be more explicit in .gitattributes (GH-840)
...
Updates checked-in line endings on several files.
2017-06-10 14:58:42 -05:00
Sylvain
7445381c60
bpo-30600: Fix error messages (condition order in Argument Clinic) ( #2051 )
...
The function '_PyArg_ParseStack()' and
'_PyArg_UnpackStack' were failing (with error
"XXX() takes Y argument (Z given)") before
the function '_PyArg_NoStackKeywords()' was called.
Thus, the latter did not raise its more meaningful
error : "XXX() takes no keyword arguments".
2017-06-10 07:51:48 +03:00
Eric Snow
e377416c10
bpo-29102: Add a unique ID to PyInterpreterState. ( #1639 )
2017-05-22 19:46:40 -07:00
Steve (Gadget) Barnes
870f6a11dd
bpo-30291 Changes to launcher so as to allow py -3-32, -2.7-64, 3.10, etc.
...
bpo-30291 Changes to launcher so as to allow py -3-32, -2.7-64, 3.10, etc.
2017-05-12 16:21:26 -07:00
Serhiy Storchaka
55fe1ae970
bpo-30022: Get rid of using EnvironmentError and IOError (except test… ( #1051 )
2017-04-16 10:46:38 +03:00
Serhiy Storchaka
0b3ec19225
Use NULL rather than 0. ( #778 )
...
There was few cases of using literal 0 instead of NULL in the context of
pointers. While this was a legitimate C code, using NULL rather than 0 makes
the code clearer.
2017-03-23 17:53:47 +02:00
Serhiy Storchaka
4dadcd4ed7
bpo-26121: Use C library implementation for math functions erf() and erfc() on Windows. ( #632 )
2017-03-12 13:39:22 +02:00
Xiang Zhang
0710d75425
bpo-29770: remove outdated PYO related info (GH-590)
2017-03-11 13:02:52 +08:00
Steve Dower
824c6fdfaa
Issue #29326 : Ignores blank lines in ._pth files (Patch by Alexey Izbyshev)
2017-02-04 15:19:46 -08:00
Steve Dower
5f9193a6ed
Issue #29326 : Ignores blank lines in ._pth files (Patch by Alexey Izbyshev)
2017-02-04 15:19:29 -08:00
Steve Dower
38dbaced03
Issue #29392 : Prevent crash when passing invalid arguments into msvcrt module.
2017-02-04 15:05:50 -08:00
Steve Dower
bf0fc39edb
Issue #29392 : Prevent crash when passing invalid arguments into msvcrt module.
2017-02-04 15:05:40 -08:00
Steve Dower
21fae03e16
Issue #29392 : Prevent crash when passing invalid arguments into msvcrt module.
2017-02-04 15:05:13 -08:00
Serhiy Storchaka
6e08baf12d
Issue #27867 : Function PySlice_GetIndicesEx() is deprecated and replaced with
...
a macro if Py_LIMITED_API is not set or set to the value between 0x03050400
and 0x03060000 (not including) or 0x03060100 or higher. Added functions
PySlice_Unpack() and PySlice_AdjustIndices().
2017-01-25 13:27:44 +02:00
Serhiy Storchaka
512c57cb72
Issue #27867 : Function PySlice_GetIndicesEx() is replaced with a macro if
...
Py_LIMITED_API is not set or set to the value between 0x03050400
and 0x03060000 (not including) or 0x03060100 or higher.
2017-01-25 13:25:52 +02:00
Serhiy Storchaka
b2a5be0763
Issue #27867 : Function PySlice_GetIndicesEx() is replaced with a macro if
...
Py_LIMITED_API is not set or set to the value between 0x03050400
and 0x03060000 (not including) or 0x03060100 or higher.
2017-01-25 13:23:05 +02:00
Serhiy Storchaka
228b12edcc
Issue #28999 : Use Py_RETURN_NONE, Py_RETURN_TRUE and Py_RETURN_FALSE wherever
...
possible. Patch is writen with Coccinelle.
2017-01-23 09:47:21 +02:00
Victor Stinner
259f0e4437
Run Argument Clinic: METH_VARARGS=>METH_FASTCALL
...
Issue #29286 . Run Argument Clinic to get the new faster METH_FASTCALL calling
convention for functions using only positional arguments.
2017-01-17 01:35:17 +01:00
Victor Stinner
3e1fad6913
Rename _PyArg_ParseStack to _PyArg_ParseStackAndKeywords
...
Issue #29286 .
2017-01-17 01:29:01 +01:00
Serhiy Storchaka
683cb8347a
Issue #23903 : Added missed Windows-specific names to PC/python3.def.
2016-12-27 17:44:18 +02:00
Serhiy Storchaka
32665009c3
Issue #23903 : Added missed Windows-specific names to PC/python3.def.
2016-12-27 17:41:07 +02:00
Serhiy Storchaka
e721be1faa
Issue #23903 : Added missed Windows-specific names to PC/python3.def.
2016-12-27 17:38:16 +02:00
Serhiy Storchaka
fd54a74539
Issue #23903 : Added missed names to PC/python3.def.
2016-12-27 12:17:41 +02:00
Serhiy Storchaka
c70081cfc1
Issue #23903 : Added missed names to PC/python3.def.
2016-12-27 12:13:05 +02:00
Serhiy Storchaka
6664e8c741
Issue #23903 : Added missed names to PC/python3.def.
2016-12-27 12:10:58 +02:00
Serhiy Storchaka
b6dc37e88d
Issue #23903 : Fixed errors and remove non-existing names in python3.def.
2016-12-27 11:51:56 +02:00
Serhiy Storchaka
26f15a430f
Issue #23903 : Fixed errors and remove non-existing names in python3.def.
2016-12-27 11:51:15 +02:00
Serhiy Storchaka
d54d3d3d90
Issue #23903 : Fixed errors and remove non-existing names in python3.def.
2016-12-27 11:49:53 +02:00
Serhiy Storchaka
1dd81012e9
Sort and remove duplicates from PC/python3.def (issue #23903 ).
2016-12-23 22:13:29 +02:00
Serhiy Storchaka
0dc1fa6d22
Sort and remove duplicates from PC/python3.def (issue #23903 ).
2016-12-23 22:11:57 +02:00
Serhiy Storchaka
ab23347916
Sort and remove duplicates from PC/python3.def (issue #23903 ).
2016-12-23 22:09:48 +02:00
Steve Dower
bbc5877427
Issue #25778 : winreg does not truncase string correctly (Patch by Eryk Sun)
2016-12-17 13:31:58 -08:00
Steve Dower
40fa26606d
Issue #25778 : winreg does not truncase string correctly (Patch by Eryk Sun)
2016-12-17 13:30:27 -08:00
Yury Selivanov
f2392133eb
Issue #26110 : Add LOAD_METHOD/CALL_METHOD opcodes.
...
Special thanks to INADA Naoki for pushing the patch through
the last mile, Serhiy Storchaka for reviewing the code, and to
Victor Stinner for suggesting the idea (originally implemented
in the PyPy project).
2016-12-13 19:03:51 -05:00
Steve Dower
e6bb53bf61
Issue #26071 : Fixes preprocessor definition and rebuilds wininst-14.0[-amd64].exe
2016-12-13 09:06:55 -08:00
Steve Dower
7262b42fd1
Issue #26071 : Fixes preprocessor definition and rebuilds wininst-14.0[-amd64].exe
2016-12-13 09:06:42 -08:00
Steve Dower
4347881414
Issue #26071 : Fixes preprocessor definition and rebuilds wininst-14.0[-amd64].exe
2016-12-13 09:06:24 -08:00
Steve Dower
06ba3d34b4
Issue #28522 : Fixes mishandled buffer reallocation in getpathp.c
2016-10-27 14:29:13 -07:00
Steve Dower
c6dd415252
Issue #28522 : Fixes mishandled buffer reallocation in getpathp.c
2016-10-27 14:28:07 -07:00
Steve Dower
4a8ff9ef60
Issue #28217 : Adds _testconsole module to test console input.
2016-10-03 09:12:42 -07:00
Steve Dower
312cef7452
Issue #28217 : Adds _testconsole module to test console input. Fixes some issues found by the tests.
2016-10-03 09:04:58 -07:00
Steve Dower
64566db065
Merge with 3.6
2016-09-17 12:57:03 -07:00
Steve Dower
ed51b26858
Issue #28137 : Renames Windows path file to ._pth
...
Issue #28138 : Windows ._pth file should allow import site
2016-09-17 12:54:06 -07:00
Martin Panter
369052bb05
Issue #28139 : Merge indentation fixes from 3.6
2016-09-17 07:59:32 +00:00
Martin Panter
d508d00919
Issue #28139 : Merge indentation fixes from 3.5 into 3.6
2016-09-17 07:59:14 +00:00
Martin Panter
6d57fe1c23
Issue #28139 : Fix messed up indentation
...
Also update the classmethod and staticmethod doc strings and comments to
match the RST documentation.
2016-09-17 03:26:16 +00:00
Ned Deily
4829bc6619
Bump to 3.7.0a0
2016-09-12 17:29:04 -04:00
Nick Coghlan
944368e1cc
Issue #23722 : Initialize __class__ from type.__new__()
...
The __class__ cell used by zero-argument super() is now initialized
from type.__new__ rather than __build_class__, so class methods
relying on that will now work correctly when called from metaclass
methods during class creation.
Patch by Martin Teichmann.
2016-09-11 14:45:49 +10:00
Martin Panter
fd13c0fa01
One more spelling fix
2016-09-10 10:45:28 +00:00
Victor Stinner
37e4ef7b17
Issue #27810 : Rerun Argument Clinic on all modules
2016-09-09 20:00:13 -07:00
Steve Dower
f2bdb6b8ca
Issue #27705 : Update message in validate_ucrtbase.py
2016-09-09 18:21:15 -07:00
Steve Dower
2e82bf824e
Issue #27705 : Update message in validate_ucrtbase.py
2016-09-09 18:25:29 -07:00
Zachary Ware
c4b53afce4
Issue #28046 : Remove platform-specific directories from sys.path
2016-09-09 17:59:49 -07:00
Steve Dower
3ceb573a72
Fix call to PathCombineW.
2016-09-09 15:53:58 -07:00
Steve Dower
502893896a
Issue #27874 : Allows use of pythonXX.zip file as landmark on Windows
2016-09-09 14:22:43 -07:00
Steve Dower
6ceda631af
Issue #24594 : Validates persist parameter when opening MSI database
2016-09-09 11:56:34 -07:00
Steve Dower
2a2becc1d1
Merge with 3.5
2016-09-09 12:09:07 -07:00
Steve Dower
4db86bc1b4
Changes pyvenv.cfg trick into an actual sys.path file.
2016-09-09 09:17:35 -07:00
Yury Selivanov
f8cb8a16a3
Issue #27985 : Implement PEP 526 -- Syntax for Variable Annotations.
...
Patch by Ivan Levkivskyi.
2016-09-08 20:50:03 -07:00
Steve Dower
940f33a50f
Issue #23524 : Finish removing _PyVerify_fd from sources
2016-09-08 11:21:54 -07:00
Benjamin Peterson
cc854499e4
clinic: PY_LONG_LONG -> long long
2016-09-08 09:29:11 -07:00
Benjamin Peterson
123374463b
hardcode sizeof(_Bool) on windows
2016-09-07 11:39:46 -07:00
Christian Heimes
6fe2a75b64
Issue #16113 : Add SHA-3 and SHAKE support to hashlib module.
2016-09-07 11:58:24 +02:00
Steve Dower
19ab0fd456
Issue #27731 : Opt-out of MAX_PATH on Windows 10
2016-09-06 20:40:11 -07:00
Christian Heimes
7ba8337562
Issue #26798 : Hello Winndows, my old friend. I've come to fix blake2 for you again.
2016-09-07 01:45:22 +02:00
Zachary Ware
c401881d68
Closes #27982 : Allow keyword arguments to winsound functions
2016-09-06 16:32:43 -05:00
Benjamin Peterson
ca47063998
replace Py_(u)intptr_t with the c99 standard types
2016-09-06 13:47:26 -07:00
Serhiy Storchaka
ea525a2d1a
Issue #27078 : Added BUILD_STRING opcode. Optimized f-strings evaluation.
2016-09-06 22:07:53 +03:00
Benjamin Peterson
4fe55106d1
require standard int types to be defined ( #17884 )
2016-09-06 11:58:01 -07:00
Benjamin Peterson
af580dff4a
replace PY_LONG_LONG with long long
2016-09-06 10:46:49 -07:00
Zachary Ware
625cb379f7
Issue #25387 : Check return value of winsound.MessageBeep
2016-09-05 17:32:28 -05:00
Larry Hastings
10108a7b9a
Issue #27355 : Removed support for Windows CE. It was never finished,
...
and Windows CE is no longer a relevant platform for Python.
2016-09-05 15:11:23 -07:00
Zachary Ware
ae8298bfb7
Closes #11620 : Fix support for SND_MEMORY in winsound.PlaySound.
...
Based on a patch by Tim Lesher.
2016-09-05 16:31:21 -05:00
Steve Dower
c7d1cf4de9
Issue #27756 : Adds new icons for Python files and processes on Windows. Designs by Cherry Wang.
2016-09-05 14:05:17 -07:00
Serhiy Storchaka
9171a8b4ce
Issue #27574 : Decreased an overhead of parsing keyword arguments in functions
...
implemented with using Argument Clinic.
2016-08-14 10:52:18 +03:00
Steve Dower
edddc2704c
Issue #27469 : Adds a shell extension to the launcher so that drag and drop works correctly.
2016-07-23 08:02:02 -07:00
Steve Dower
5e24b98fc3
Merge from 3.5
2016-07-17 21:58:11 -07:00
Steve Dower
5852fa3f72
Removes unused files from PC folder.
2016-07-17 21:58:01 -07:00
Steve Dower
b6467902aa
Issue #27309 : Enables proper Windows styles in python[w].exe manifest.
2016-07-17 21:40:06 -07:00
Steve Dower
25f9cf479f
Issue #27309 : Enables proper Windows styles in python[w].exe manifest.
2016-07-17 21:39:13 -07:00
Steve Dower
df450d1a18
Issue #27469 : Adds a shell extension to the launcher so that drag and drop works correctly.
2016-07-16 16:17:33 -07:00
Serhiy Storchaka
2954f83999
- Issue #27332 : Fixed the type of the first argument of module-level functions
...
generated by Argument Clinic. Patch by Petr Viktorin.
2016-07-07 18:20:03 +03:00
Serhiy Storchaka
1a2b24f02d
Issue #27332 : Fixed the type of the first argument of module-level functions
...
generated by Argument Clinic. Patch by Petr Viktorin.
2016-07-07 17:35:15 +03:00
Serhiy Storchaka
cf2ad55511
Issue #27286 : Fixed compiling BUILD_MAP_UNPACK_WITH_CALL opcode. Calling
...
function with generalized unpacking (PEP 448) and conflicting keyword names
could cause undefined behavior.
2016-06-12 09:35:13 +03:00
Serhiy Storchaka
3c317e76a2
Issue #27286 : Fixed compiling BUILD_MAP_UNPACK_WITH_CALL opcode. Calling
...
function with generalized unpacking (PEP 448) and conflicting keyword names
could cause undefined behavior.
2016-06-12 09:22:01 +03:00
Serhiy Storchaka
6a7506a77f
Issue #27140 : Added BUILD_CONST_KEY_MAP opcode.
2016-06-12 00:39:41 +03:00
doko@ubuntu.com
87a8bcc221
- Issue #17500 , and https://github.com/python/pythondotorg/issues/945 : Remove
...
unused and outdated icons.
2016-06-10 18:23:35 +02:00
doko@ubuntu.com
339880809a
- Issue #17500 , and https://github.com/python/pythondotorg/issues/945 : Remove
...
unused and outdated icons.
2016-06-10 18:25:42 +02:00
Serhiy Storchaka
5dee6551e2
Issue #26305 : Argument Clinic now uses braces in C code as required by PEP 7.
2016-06-09 16:16:06 +03:00
Serhiy Storchaka
877826ad3d
Regenerate Argument Clinic code for issue #23026 .
2016-06-09 16:01:19 +03:00
Steve Dower
4d4bc42c8b
Closes #23026 : Documentation improvements and code formatting
2016-05-25 11:26:07 -07:00