summaryrefslogtreecommitdiffstats
path: root/PC/launcher.c
Commit message (Collapse)AuthorAgeFilesLines
* bpo-40222: "Zero cost" exception handling (GH-25729)Mark Shannon2021-05-071-1/+2
| | | | | | | | "Zero cost" exception handling. * Uses a lookup table to determine how to handle exceptions. * Removes SETUP_FINALLY and POP_TOP block instructions, eliminating (most of) the runtime overhead of try statements. * Reduces the size of the frame object by about 60%.
* Fix typo in launcher.c (GH-24497)Ikko Ashimine2021-02-201-2/+2
|
* bpo-38506: Fix the Windows py.exe launcher's misordering of 3.10 (GH-18307)Zackery Spytz2020-11-161-5/+15
|
* Bump magic number. (GH-23245)Mark Shannon2020-11-121-0/+1
|
* bpo-37556 Extend help to include latest overrides (GH-14701)Steve (Gadget) Barnes2020-06-121-1/+10
| | | | | Modify the help in cpython/PC/launcher.c to show users that "latest" can be overridden by shebang, PY_PYTHON[n] or py.ini files. Also show that script [args] is optional by enclosing in square brackets. Automerge-Triggered-By: @zooba
* bpo-39156: Break up COMPARE_OP into four logically distinct opcodes. (GH-17754)Mark Shannon2020-01-141-1/+2
| | | | | | | | Break up COMPARE_OP into four logically distinct opcodes: * COMPARE_OP for rich comparisons * IS_OP for 'is' and 'is not' tests * CONTAINS_OP for 'in' and 'is not' tests * JUMP_IF_NOT_EXC_MATCH for checking exceptions in 'try-except' statements.
* bpo-38359: Ensures pyw.exe launcher reads correct registry key (GH-16561)Steve Dower2019-10-031-1/+9
|
* bpo-38133: Allow py.exe launcher to locate installations from the Microsoft ↵Steve Dower2019-09-121-101/+209
| | | | Store (GH-16025)
* bpo-37830: Fix compilation of break and continue in finally. (GH-15320)Serhiy Storchaka2019-08-241-1/+1
| | | | | | Fix compilation of "break" and "continue" in the "finally" block when the corresponding "try" block contains "return" with a non-constant value.
* bpo-36540: PEP 570 -- Implementation (GH-12701)Pablo Galindo2019-04-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit contains the implementation of PEP570: Python positional-only parameters. * Update Grammar/Grammar with new typedarglist and varargslist * Regenerate grammar files * Update and regenerate AST related files * Update code object * Update marshal.c * Update compiler and symtable * Regenerate importlib files * Update callable objects * Implement positional-only args logic in ceval.c * Regenerate frozen data * Update standard library to account for positional-only args * Add test file for positional-only args * Update other test files to account for positional-only args * Add News entry * Update inspect module and related tests
* bpo-36254: Fix invalid uses of %d in format strings in C. (GH-12264)Serhiy Storchaka2019-03-131-3/+3
|
* bpo-32560: inherit the py launcher's STARTUPINFO (GH-9000)Shiva Saxena2019-02-021-1/+1
| | | https://bugs.python.org/issue32560
* bpo-35811: Avoid propagating venv settings when launching via py.exe (GH-11677)Steve Dower2019-01-251-0/+11
|
* bpo-34977: Use venv redirector instead of original python.exe on Windows ↵Steve Dower2018-12-101-15/+208
| | | | (GH-11029)
* Revert "bpo-34977: Add Windows App Store package (GH-10245)" (GH-11019)Victor Stinner2018-12-071-208/+15
| | | This reverts commit 468a15aaf9206448a744fc5eab3fc21f51966aad.
* bpo-35436: Add missing PyErr_NoMemory() calls and other minor bug fixes. ↵Zackery Spytz2018-12-071-0/+3
| | | | | | (GH-11015) Set MemoryError when appropriate, add missing failure checks, and fix some potential leaks.
* bpo-34977: Add Windows App Store package (GH-10245)Steve Dower2018-12-071-15/+205
|
* bpo-34532: Fixed exit code for py.exe list versions arg (GH-9039)Brendan Gerrity2018-11-201-4/+5
|
* bpo-34565: Change a PC/launcher.c comment to accurately describe valid major ↵Brendan Gerrity2018-09-041-2/+2
| | | | versions. (GH-9037)
* bpo-34062: Add missing launcher argument and make behavior consistent ↵Brendan Gerrity2018-08-311-8/+11
| | | | | | between short and long arguments (GH-8827) Added previously missing "--list" argument. Made "--list" and "--list-paths" behavior consistent with the corresponding "-0" and "-0p" arguments.
* Add missing va_end() calls in PC/launcher.c (GH-7690)Zackery Spytz2018-06-151-0/+2
|
* bpo-17611. Move unwinding of stack for "pseudo exceptions" from interpreter ↵Serhiy Storchaka2018-02-221-0/+1
| | | | | | | | | to compiler. (GH-5006) Co-authored-by: Mark Shannon <mark@hotpy.org> Co-authored-by: Antoine Pitrou <antoine@python.org>
* bpo-31569: correct PCBuild/ case to PCbuild/ in build scripts and docs (GH-3711)Stefan Grönke2017-09-251-4/+4
|
* bpo-30362 : Add list options to launcher. (#1578)Steve (Gadget) Barnes2017-06-281-43/+115
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* bpo-30291 Changes to launcher so as to allow py -3-32, -2.7-64, 3.10, etc.Steve (Gadget) Barnes2017-05-121-40/+70
| | | bpo-30291 Changes to launcher so as to allow py -3-32, -2.7-64, 3.10, etc.
* Issue #26110: Add LOAD_METHOD/CALL_METHOD opcodes.Yury Selivanov2016-12-141-0/+1
| | | | | | | 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).
* Issue #23722: Initialize __class__ from type.__new__()Nick Coghlan2016-09-111-1/+1
| | | | | | | | | 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.
* Issue #27985: Implement PEP 526 -- Syntax for Variable Annotations.Yury Selivanov2016-09-091-1/+1
| | | | Patch by Ivan Levkivskyi.
* Issue #27078: Added BUILD_STRING opcode. Optimized f-strings evaluation.Serhiy Storchaka2016-09-061-1/+1
|
* Issue #27286: Fixed compiling BUILD_MAP_UNPACK_WITH_CALL opcode. CallingSerhiy Storchaka2016-06-121-1/+1
|\ | | | | | | | | function with generalized unpacking (PEP 448) and conflicting keyword names could cause undefined behavior.
| * Issue #27286: Fixed compiling BUILD_MAP_UNPACK_WITH_CALL opcode. CallingSerhiy Storchaka2016-06-121-1/+1
| | | | | | | | | | function with generalized unpacking (PEP 448) and conflicting keyword names could cause undefined behavior.
* | Issue #27140: Added BUILD_CONST_KEY_MAP opcode.Serhiy Storchaka2016-06-111-1/+1
| |
* | Issue #26647: Python interpreter now uses 16-bit wordcode instead of bytecode.Serhiy Storchaka2016-05-241-1/+1
| | | | | | | | Patch by Demur Rumed.
* | Issue #27064: The py.exe launcher now defaults to Python 3.Paul Moore2016-05-221-7/+14
| | | | | | | | | | The Windows launcher ``py.exe`` no longer prefers an installed Python 2 version over Python 3 by default when used interactively.
* | Merge with 3.5Steve Dower2016-05-161-1/+1
|\ \ | |/
| * Fixes magic numbers for 3.6.Steve Dower2016-05-161-1/+1
| |
* | Issue #26073: Updates magic number comment in _bootstrap_external.py and ↵Steve Dower2016-05-161-15/+15
|\ \ | |/ | | | | changes numbers in launcher.py to decimal to match official table.
| * Issue #26073: Updates magic number comment in _bootstrap_external.py and ↵Steve Dower2016-05-161-15/+15
| | | | | | | | changes numbers in launcher.py to decimal to match official table.
* | Issue #26073: Update the list of magic numbers in launcherSteve Dower2016-01-161-1/+4
|\ \ | |/
| * Issue #26073: Update the list of magic numbers in launcherSteve Dower2016-01-161-1/+4
| |
| * Issue #26070: py.exe launcher fails to find in-place built binaries from ↵Mark Hammond2016-01-111-0/+3
| | | | | | | | earlier Python versions.
* | Issue #26070: py.exe launcher fails to find in-place built binaries from ↵Mark Hammond2016-01-111-0/+3
| | | | | | | | earlier Python versions.
* | Closes #25360: Merged fix from 3.5.Vinay Sajip2015-12-261-1/+1
|\ \ | |/
| * Fixes #25360: Search for pythonw.exe when in pyw.exe.Vinay Sajip2015-12-261-1/+1
| |
* | Closes #25789: Improved buffering behaviour in launcher.Vinay Sajip2015-12-261-2/+3
| |
* | Test UTF-32LE before UTF-16LE since UTF-16LE BOM is a prefix of UTF-32LE BOM.Serhiy Storchaka2015-12-181-2/+4
|\ \ | |/
| * Test UTF-32LE before UTF-16LE since UTF-16LE BOM is a prefix of UTF-32LE BOM.Serhiy Storchaka2015-12-181-2/+4
| |
* | Issue #25889: Got rid of warning about mixing signed/unsigned char pointers.Serhiy Storchaka2015-12-181-2/+3
|/
* Fixes #25844: Corrected =/== typo potentially leading to crash in launcher.Vinay Sajip2015-12-131-1/+1
|\
| * Fixes #25844: Corrected =/== typo potentially leading to crash in launcher.Vinay Sajip2015-12-131-2/+2
| |