Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 8f4c49da54bff2c614c364320a04e527d3738c0708a3201b9be50883860e978a
Ticket: b5bd08df8d61b4ea9bf0cc885f790b367c430a9f
The "int" type registration should be restored.
User & Date: serhiy.storchaka on 2026-09-20 11:18:12
Changes

  1. icomment:
    Update on the Python side: _tkinter no longer depends on the registration since [https://github.com/python/cpython/pull/103846|python/cpython#103846] (Python 3.12.4 and 3.13, May 2024). It takes the typePtr of a value created with Tcl_NewIntObj() when Tcl_GetObjType("int") returns NULL, as TIP 484 suggests, and handles "boolean" and "bytearray" the same way. Since Python 3.16 ([https://github.com/python/cpython/issues/153513|python/cpython#153513]) unregistered types ("bignum", "pixel", "index", "window", "nsName", ...) are recognized by <tt>typePtr->name</tt> on first encounter and cached. Python 3.14 ships with Tcl/Tk 9.0.4 on Windows.
    
    So this is not a blocker for Tkinter. But it is a workaround: creating throwaway values to learn a typePtr, and comparing type names until every type has been seen once. If all these types were registered, the wrapper would be simpler and faster: one Tcl_GetObjType() per type at startup and pointer comparisons afterwards.
    
  2. login: "serhiy.storchaka"
  3. mimetype: "text/x-fossil-wiki"