Register all of the Tcl object types created by the core.
Closed / Duplicate2df1c31b535eb74868df00fa0bdb4f63d6037993Created 2 years agoUpdated 2 years ago
Descriptionplain2024-07-01 15:25:49
There are 13 Tcl_ObjTypes defined in the Tcl core, and declared in tclInt.h. Of these 13, only 8 are registered in TclinitObjSubsystem. In particular, the "int" object type, which was registered in Tcl 8, is no longer being registered in Tcl 9. This breaks the code in the Python _tkinter extension, which needs to convert "int" Tcl objects into Python integers. If all of the core types were registered the existing _tkinter code would work with Tcl 9. I will create a bugfix branch which adds the 5 missing calls to Tcl_RegisterObjType.
marc_culler (claiming to be Marc Culler)plain2024-07-01 15:52:21
I now realize that this is essentially a duplicate of [b5bd08df8d]. Its contribution is to exhibit an important failure caused by not registering the "int" type. But since it is a duplicate, I will close it and mark it as a duplicate.
Log in (anonymous is fine) to add a comment.