Overview
| Artifact ID: | 36a7c9f358afee533b58a7d28493dc21c596b9e917990243194a0da6d1c3795a |
|---|---|
| Ticket: | 3bb3bcf2da5bfe20b1ab863fd2de940bd04f4aaf
Adding support for 8.7/9.0 to Tcl.pm, Tkinter |
| User & Date: | serhiy.storchaka on 2026-09-20 11:18:12 |
Changes
- icomment:
For the record: Tkinter was adapted in [https://github.com/python/cpython/pull/103846|python/cpython#103846] (Python 3.12.4 and 3.13), using the approach suggested here: the "boolean", "bytearray" and "int" types are taken from the typePtr of a freshly created value when Tcl_GetObjType() returns NULL. Python 3.16 ([https://github.com/python/cpython/issues/153513|python/cpython#153513]) goes further and recognizes types which are not registered at all ("bignum", "pixel", "index", "window", "nsName", "parsedVarName", ...) by <tt>typePtr->name</tt> on first encounter, caching the pointer. This works without registration, but the wrapper would be simpler and faster if these types were registered (see [b5bd08df8d]). Python 3.14 ships with Tcl/Tk 9.0.4 on Windows. Tcl.pm 1.50 also supports Tcl 9. - login: "serhiy.storchaka"
- mimetype: "text/x-fossil-wiki"