Skip to content
Tcl Source Code Artifact [c3199eae96]
Login

Artifact [c3199eae96]

Artifact c3199eae967a5cb6edd4ab09774859861e95d6a0bd1b6bd80e2d6c1d7a6851a4:

Ticket change [c3199eae96] - Ticket [3bb3bcf2da5bfe20|3bb3bcf2da] <i>Adding support for 8.7/9.0 to Tcl.pm</i> status still Open with 3 other changes by chrstphrchvz on 2023-03-29 10:55:32.
D 2023-03-29T10:55:32.059
J icomment <blockquote>…I\swould\sstill\slike\sto\srequest\sthat\s"booleanString"\splease\snot\sbe\srenamed\sto\s"boolean"\sto\savoid/reduce\sconfusion\sfor\smaintainers\sof\sexisting\scode.</blockquote>\r\n\r\nTkinter\sbeing\sone\saffected\sexample\s(although\schanging\stheir\scode\sto\suse\sthe\sidiom\ssuggested\shere\sis\slikely\sstill\san\soption):\s[https://github.com/python/cpython/blob/7559f5fda94a/Modules/_tkinter.c#L1201]\r\n\r\nI\swant\sto\smake\ssure\sI\sunderstand\sthe\srelevance\sof\sTIP\s568\sto\sa\swrapper.\sTIP\s568\swarns:\s“Most\scallers\sof\s<tt>Tcl_GetByteArrayFromObj</tt>\sare\sprobably\sbuggy”.\sBut\smaybe\sthe\suse\scase\sof\sa\swrapper\sis\san\sexception:\sit\sonly\sever\swants\sto\suse\s<tt>Tcl_GetByteArrayFromObj()</tt>\sto\sretrieve\svalues\swhich\sare\salready\sof\s"bytearray"\stype.\sIs\sit\strue\sthat\sif\sa\sTcl\svalue\sis\salready\sof\stype\s"bytearray",\sthen\sboth\s<tt>Tcl_GetByteArrayFromObj()</tt>\sand\s<tt>Tcl_GetBytesFromObj()</tt>\sbehave\sthe\ssame\sand\sdo\snot\sreturn\s<tt>NULL</tt>?\sIt\swould\sbe\spreferable\sto\scontinue\susing\s<tt>Tcl_GetByteArrayFromObj()</tt>\sto\smaintain\scompatibility\swith\s8.6\sand\searlier.
J login chrstphrchvz
J mimetype text/x-fossil-wiki
K 3bb3bcf2da5bfe20b1ab863fd2de940bd04f4aaf
U chrstphrchvz
Z f845c1a1ac5915d90dfc75bd980ca8d9