Overview
| Artifact ID: | 6d120a5b05e3fc942c8545a4e069e74b3c360b6bbbb2b290b42d9185e1d4f6f6 |
|---|---|
| Ticket: | 2bf9fbcb990c3f9639039ad8e4e4b9912e80438f
Tcl 9 docs outdated regarding tcl_platform(threaded) (TIP 599) |
| User & Date: | EricBrunel on 2025-06-06 13:09:02 |
Changes
- assignee changed to: "nobody"
- closer changed to: "nobody"
- cmimetype changed to: "text/x-markdown"
- comment changed to:
According to [](https://www.tcl-lang.org/software/tcltk/9.0.html ""), section "Notable incompatibilities", tcl 9 is always thread-enabled, and the build options `--enable-threads` / `--disable-threads` have disappeared. Now in the "tclvars" manual page, it says for the documentation of the array "`tcl_platform`" that if the variable "`threaded`" exists in the array, then the interpreter was compiled with threads enabled. So one would suppose that this variable always exists in tcl 9, since it is always thread-enabled. But it doesn't: with a build of tcl 9.0.1 from the sources, there is no variable "`threaded`" in the array "`tcl_platform`". This is a problem, since some interfaces with other languages (namely tkinter for Python) rely on the presence of this variable to know if tcl is thread-enabled or not. If tcl is misidentified as not thread-enabled when it actually is, it causes a lot of issues, and sometimes even crashes.
- foundin changed to: "v9.0.1"
- is_private changed to: "0"
- login: "EricBrunel"
- priority changed to: "5 Medium"
- private_contact changed to: "f6d4a0ab6bf27b9d6f6630658854c2945ae98b10"
- resolution changed to: "None"
- severity changed to: "Important"
- status changed to: "Open"
- submitter changed to: "EricBrunel"
- subsystem changed to: "49. Threading"
- title changed to:
Array "tcl_platform" should always contain entry "threaded" in tcl 9, but doesn't
- type changed to: "Bug"