diff options
| author | Omar Rizwan <omar@omar.website> | 2026-02-08 21:07:06 +0000 |
|---|---|---|
| committer | Omar Rizwan <omar@omar.website> | 2026-02-08 21:07:06 +0000 |
| commit | 40b1ceafd2671d685d294b7603ce3dca29c01f85 (patch) | |
| tree | 1708b0d6da4d275c548177ff951d950a4b5e29dd /lib/python.tcl | |
| parent | python: WIP: Let any thread call Python (diff) | |
| download | folk-40b1ceafd2671d685d294b7603ce3dca29c01f85.tar.gz folk-40b1ceafd2671d685d294b7603ce3dca29c01f85.zip | |
python: Fix zmq calls in unknown; craft works!
Diffstat (limited to 'lib/python.tcl')
| -rw-r--r-- | lib/python.tcl | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/python.tcl b/lib/python.tcl index ed68aeb0..b927f059 100644 --- a/lib/python.tcl +++ b/lib/python.tcl @@ -281,6 +281,11 @@ proc registerArgtype {typeName serializer} { proc unknown {fnName args} { variable zmq; variable socket + # We need normal `unknown` to call methods on $zmq, so need to + # pass it through to ::unknown. + if {$fnName eq $zmq} { + tailcall ::unknown $fnName {*}$args + } # Send function name first $zmq zmqSendMore $socket $fnName |
