Repository navigation
YPSH v10.0
This v10.0 release represents a significant internal refactoring, focusing exclusively on standardizing and cleaning up the PyYPSH built-in module system. Following the v9.0 update, which modernized the build process (NABS), this release streamlines the runtime environment, leading to a cleaner, more predictable core.
NOTE: This is a major update and contains breaking changes due to module restructuring.
Key Feature: Built-in Module Normalization
The process for enabling built-in modules has been completely standardized and made significantly more flexible:
- Flexible Naming: All module identifiers are now automatically normalized to be case-insensitive and agnostic to spaces or hyphens.
- Example: Enabling the "system extra" module can now be done with
module_enable("system_extra"),module_enable("System-Extra"), or evenmodule_enable("system extra").
- Example: Enabling the "system extra" module can now be done with
- Simplified Enablement: The module loading logic is now cleaner and more robust, allowing for easier future expansion.
Module Structure Overhaul (Breaking Changes)
To achieve the new level of standardization, the existing built-in modules have been restructured. Developers should check their scripts for calls referencing the old module names.
| Old Module Name(s) | New Status / Location | Change Type | Notes |
|---|---|---|---|
minimal, default |
Grouping remains | Re-grouping | New contents based on the modules below. |
ypsh |
Consolidated | Deprecated | Functions split into system and system_extra. |
standard |
Consolidated | Deprecated | Functions split into system and system_extra. |
type |
Renamed | Renamed | Now called types. |
stdmath, conv, exstr, exec, file |
Consolidated | Deprecated | Core utility functions moved to system_extra. |
import |
Refactored | Improvement | The Python import logic is now more deeply integrated into the main import module, deprecating separate python.import concepts. |
Core Utility Consolidation
Key built-in functions that were scattered across multiple modules have been centralized:
system(Minimal Core): Contains essentials likeprint,cprint,show,ask, basic truth values (True,False), exception objects (Error,Exception), andexit.system_extra(Extended Utilities): Now hosts general-purpose functions such asmin,max,mod,range,count, and theexecfunction. It also exposesypsh.defandypsh.undef, and all runtime metadata (ypsh.version,ypsh.options, etc.).types: Hosts direct access to the built-in type constructors (str,int,list,dict, etc.).
Other Improvements
- Exception Handling Cleanup: Minor internal cleanup was performed on the exception definition blocks, removing outdated comments.
- Environment Exposure: The interpreter's internal environment getter functions (
ypsh.localsandypsh.globals) are now correctly exposed via thesystem_extramodule, aiding in runtime debugging.
Writed by AI
These release notes were created by submitting a git-generated diff to Gemini Flash Latest.