Skip to content
This repository was archived by the owner on Oct 4, 2026. It is now read-only.

YPSH v10.0

Choose a tag to compare

@nercone-dev nercone-dev released this 17 Oct 01:10
· 63 commits to main since this release

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 even module_enable("system extra").
  • 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 like print, cprint, show, ask, basic truth values (True, False), exception objects (Error, Exception), and exit.
  • system_extra (Extended Utilities): Now hosts general-purpose functions such as min, max, mod, range, count, and the exec function. It also exposes ypsh.def and ypsh.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.locals and ypsh.globals) are now correctly exposed via the system_extra module, aiding in runtime debugging.

Writed by AI
These release notes were created by submitting a git-generated diff to Gemini Flash Latest.