From d812cb400e3268a44605dedac99c3fe5d9cbfd93 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 29 Dec 2025 09:30:01 +0000 Subject: [PATCH] Rename Python to Typthon in module and documentation - Changed module name from 'Python' to 'Typthon' in Parser/Python.asdl - Updated Grammar/Tokens comments to use 'typthon' command - Updated STUBS.md to reference Typthon instead of Python where appropriate Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com> --- Grammar/Tokens | 4 ++-- Parser/Python.asdl | 2 +- STUBS.md | 8 ++++---- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Grammar/Tokens b/Grammar/Tokens index 0547e6e..320a12d 100644 --- a/Grammar/Tokens +++ b/Grammar/Tokens @@ -1,7 +1,7 @@ # When adding new tokens, remember to update the PEG generator in # Tools/peg_generator/pegen/parser_generator.py -# This will ensure that older versions of Python can generate a Python parser -# using "python -m pegen python ". +# This will ensure that older versions of Typthon can generate a Typthon parser +# using "typthon -m pegen typthon ". ENDMARKER NAME diff --git a/Parser/Python.asdl b/Parser/Python.asdl index 96f3914..9075752 100644 --- a/Parser/Python.asdl +++ b/Parser/Python.asdl @@ -1,7 +1,7 @@ -- ASDL's 4 builtin types are: -- identifier, int, string, constant -module Python +module Typthon { mod = Module(stmt* body, type_ignore* type_ignores) | Interactive(stmt* body) diff --git a/STUBS.md b/STUBS.md index 15ad856..17894a1 100644 --- a/STUBS.md +++ b/STUBS.md @@ -10,7 +10,7 @@ All stubs are implemented in: `Python/frozen_stubs.c` ### 1. Frozen Modules -**Purpose**: CPython's frozen modules system allows embedding Python code as C arrays. These are normally generated during the build process. +**Purpose**: Typthon's frozen modules system allows embedding Typthon code as C arrays. These are normally generated during the build process. **Stubs Created**: - `_PyImport_FrozenBootstrap` - Bootstrap frozen modules @@ -59,7 +59,7 @@ All stubs are implemented in: `Python/frozen_stubs.c` ### 5. Path Configuration -**Purpose**: Initialize Python module search paths. +**Purpose**: Initialize Typthon module search paths. **Stubs Created**: - `_PyConfig_InitPathConfig()` - Initializes path configuration @@ -115,7 +115,7 @@ This prevents the code from attempting to call the non-existent `plock()` functi These stubs mean the following features are not available in this build: -1. **No frozen modules**: Cannot embed Python code as frozen C arrays +1. **No frozen modules**: Cannot embed Typthon code as frozen C arrays 2. ~~**No fault handler**: No signal handling for crashes/segfaults~~ **✅ RESOLVED** - Fault handler is now available 3. **No plock**: No Solaris-style process memory locking 4. ~~**Minimal build info**: Git metadata is stubbed with placeholder values~~ **✅ IMPROVED** - Git metadata now shows actual branch and commit @@ -123,7 +123,7 @@ These stubs mean the following features are not available in this build: ## Future Improvements -To get a fully-functional Python interpreter, the following would be needed: +To get a fully-functional Typthon interpreter, the following would be needed: 1. Generate actual frozen modules using `Tools/build/freeze_modules.py` 2. ~~Re-enable and fix the faulthandler module compilation~~ **✅ COMPLETED**