<i>The "int" type registration should be restored.</i> status still Open with 3 other changes
by
.
D 2026-09-20T11:18:12.328
J icomment Update\son\sthe\sPython\sside:\s_tkinter\sno\slonger\sdepends\son\sthe\sregistration\ssince\s[https://github.com/python/cpython/pull/103846|python/cpython#103846]\s(Python\s3.12.4\sand\s3.13,\sMay\s2024).\sIt\stakes\sthe\stypePtr\sof\sa\svalue\screated\swith\sTcl_NewIntObj()\swhen\sTcl_GetObjType("int")\sreturns\sNULL,\sas\sTIP\s484\ssuggests,\sand\shandles\s"boolean"\sand\s"bytearray"\sthe\ssame\sway.\sSince\sPython\s3.16\s([https://github.com/python/cpython/issues/153513|python/cpython#153513])\sunregistered\stypes\s("bignum",\s"pixel",\s"index",\s"window",\s"nsName",\s...)\sare\srecognized\sby\s<tt>typePtr->name</tt>\son\sfirst\sencounter\sand\scached.\sPython\s3.14\sships\swith\sTcl/Tk\s9.0.4\son\sWindows.\n\nSo\sthis\sis\snot\sa\sblocker\sfor\sTkinter.\sBut\sit\sis\sa\sworkaround:\screating\sthrowaway\svalues\sto\slearn\sa\stypePtr,\sand\scomparing\stype\snames\suntil\severy\stype\shas\sbeen\sseen\sonce.\sIf\sall\sthese\stypes\swere\sregistered,\sthe\swrapper\swould\sbe\ssimpler\sand\sfaster:\sone\sTcl_GetObjType()\sper\stype\sat\sstartup\sand\spointer\scomparisons\safterwards.
J login serhiy.storchaka
J mimetype text/x-fossil-wiki
K b5bd08df8d61b4ea9bf0cc885f790b367c430a9f
U serhiy.storchaka
Z d1f158232efe10bd1b425c6e9d68ef66