Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: c3199eae967a5cb6edd4ab09774859861e95d6a0bd1b6bd80e2d6c1d7a6851a4
Ticket: 3bb3bcf2da5bfe20b1ab863fd2de940bd04f4aaf
Adding support for 8.7/9.0 to Tcl.pm, Tkinter
User & Date: chrstphrchvz on 2023-03-29 10:55:32
Changes

  1. icomment:
    <blockquote>…I would still like to request that "booleanString" please not be renamed to "boolean" to avoid/reduce confusion for maintainers of existing code.</blockquote>
    
    Tkinter being one affected example (although changing their code to use the idiom suggested here is likely still an option): [https://github.com/python/cpython/blob/7559f5fda94a/Modules/_tkinter.c#L1201]
    
    I want to make sure I understand the relevance of TIP 568 to a wrapper. TIP 568 warns: “Most callers of <tt>Tcl_GetByteArrayFromObj</tt> are probably buggy”. But maybe the use case of a wrapper is an exception: it only ever wants to use <tt>Tcl_GetByteArrayFromObj()</tt> to retrieve values which are already of "bytearray" type. Is it true that if a Tcl value is already of type "bytearray", then both <tt>Tcl_GetByteArrayFromObj()</tt> and <tt>Tcl_GetBytesFromObj()</tt> behave the same and do not return <tt>NULL</tt>? It would be preferable to continue using <tt>Tcl_GetByteArrayFromObj()</tt> to maintain compatibility with 8.6 and earlier.
    
  2. login: "chrstphrchvz"
  3. mimetype: "text/x-fossil-wiki"