From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id AJAQI3nPrGQfmAAASxT56A (envelope-from ) for ; Tue, 11 Jul 2023 05:41:45 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id OFW+InnPrGQZEQAAauVa8A (envelope-from ) for ; Tue, 11 Jul 2023 05:41:45 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 01356573F0 for ; Tue, 11 Jul 2023 05:41:44 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=WmSM8Ghk; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1689046905; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=KGjLzSEM1PowcXQ/MfiFlmq2YGGD8Es5ef70FrJYX/Q=; b=YnZpGfk0jSFURMlmjkoPJuZQWLvIAht7WymRXH7kmaB546ZiohacFUIOZFWh7QwpcccpsK OIeEbbkvGB1HjA7dBkgbVYhQbHDNsuHYvtLmHdeiWs5sW72uNQak9Wypk+A053EfMlyRWT zj2k6/vTIV/hD1r1lKl3Qpl3X48xe53d4pqKjWpfSNgf+LlOjsW++lzQuhzKBmwki/gyHS SfosB+AlIb8b98ML1rDXL31kiMxagob6pkV/ijzVwt8QGMgFkF0Iv0Gt9PaauMA7oaJf3/ +U36LPit2a/b9nB76r9mQCEDfg+CRnV55bWiDxM77ywtMIKV3AapmUCk9Ek/0g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1689046905; a=rsa-sha256; cv=none; b=V5e3aSJ3sXejHaVESjFC/FHYWwVVn+5u54SIw9rOlnQradzvb6D3Ha8kp3klGJEh4F770L 3UimCFF3hwv5fZcIol5vJ2yrjFP5G2Ich7xigYT/IrrixHaLrUBXBLguz5D+XOiZdAdBdo ji0uwVmpPbqxVyPGx9timG4cRVlWdRS2TPqudOfNnOv/7j092g/oMUJDykYELu7MrimvuZ P1VAUtIVxOiPWl4cD1Eb2J5Bw1/d5oGDsYePm2yKjZmh6zsF0jGmsOS+PRoQZ5LSSdiQS3 op5uE1ICSRQvM2YQDoyc/wLJqeP/s+CXBUPfk/V7bOwQXKWgtJ/fChoPckyVqA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=WmSM8Ghk; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qJ4FD-00021D-7d; Mon, 10 Jul 2023 23:40:55 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qJ4FC-000214-KE for emacs-orgmode@gnu.org; Mon, 10 Jul 2023 23:40:54 -0400 Received: from mail-oa1-x29.google.com ([2001:4860:4864:20::29]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qJ4FB-0007jR-7x for emacs-orgmode@gnu.org; Mon, 10 Jul 2023 23:40:54 -0400 Received: by mail-oa1-x29.google.com with SMTP id 586e51a60fabf-1b055510c9dso3217697fac.0 for ; Mon, 10 Jul 2023 20:40:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689046851; x=1691638851; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=KGjLzSEM1PowcXQ/MfiFlmq2YGGD8Es5ef70FrJYX/Q=; b=WmSM8GhkTmegR0m5jzUHvNYAjKiLGc2ZqPDxbljSNAsXFJ1hMK94u5BvAzx6VEqFJv IXehTpPNhU/MxkhjmmuW9IRYtztsKjYS0aDWwB9U4T6KHRENDZS8GxDoA8jh3WcfSfuq kWi4vuzadtCSHi9tCmgYLI8JbO2OGsW9KRcNG3Pbnobd8xjrcpj3lYjRvjNlxVqyZ5+C 8qKnmoeO0lBu2zk/mHTokQzjNYn6BfxusxxZCSrcT0urxmK0QTZr4dUe8WoIEhYbuis2 mYNb9Zw7wjDU+Wpfm2vjpCA/1OISbShqhgqv5V153prANXimr2a2tM9gfpgGSQN48ks7 Y8Lg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689046851; x=1691638851; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=KGjLzSEM1PowcXQ/MfiFlmq2YGGD8Es5ef70FrJYX/Q=; b=DR1AqnJRD8tCezT1LKo/ESUjPLHmVdSQAtI8dXmmTUUi4ZokJVlLvzNe9Ju7PoEzHz EJQMOeZaIzT3jfee249VcYSf7DgICrOMO+N40QKX8zhxTHjPJoZLkF9U+FMK3j2Ifemo 3jDng8emUyD1rn5t9Pv8bhrLnJ+OTSpULWEwTN8PlxTsZuo88HMWmD9ttQmYeAtGmubW YiIH4GCHQywo2F3wh4xOtAqzO3uWo82ORwM7oUZlNcnA4Uzls57NxMUmNAKuqCEBjCEp wLkKncHVYIgB+dKAPDZMZprjRVmyRM2nCZ5cA9c2IhTPGMvDcS7CR6k1hzoQ1jagSCfd fp2A== X-Gm-Message-State: ABy/qLZLoV5KUROmBiBPex/vEQTJrjZELw1k+iOwRCcOlGETGcpzcpcj 2Cg/SFsE6uyVolOtho9i/r13TidyggBjf4mcTBkNp6vFrtI= X-Google-Smtp-Source: APBJJlHZr77URJnyAj3BcLPDbdIiEPzQAqnf0Odg0mRVV4fQBh2JJJBT/oka6lmQhqVZ3ZcUoVPZtxssUVfJ5/Z4/m0= X-Received: by 2002:a05:6870:f698:b0:1b0:6bc9:6f9b with SMTP id el24-20020a056870f69800b001b06bc96f9bmr13217745oab.34.1689046851362; Mon, 10 Jul 2023 20:40:51 -0700 (PDT) MIME-Version: 1.0 From: Liu Hui Date: Tue, 11 Jul 2023 11:40:39 +0800 Message-ID: Subject: [PATCH] ob-python: Fix async evaluation To: emacs-orgmode@gnu.org Content-Type: multipart/mixed; boundary="00000000000095f92c06002ddd1f" Received-SPF: pass client-ip=2001:4860:4864:20::29; envelope-from=liuhui1610@gmail.com; helo=mail-oa1-x29.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx0.migadu.com X-Migadu-Queue-Id: 01356573F0 X-Migadu-Spam-Score: -8.37 X-Spam-Score: -8.37 X-TUID: ALzYRXEzmV++ --00000000000095f92c06002ddd1f Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: base64 SGksDQoNClRvIHJlcHJvZHVjZSB0aGUgYnVnOg0KDQoxLiBjcmVhdGUgdGVzdC5vcmc6DQrilIDi lIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDinIDilIDi lIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIANCiMrYmVn aW5fc3JjIHB5dGhvbiA6c2Vzc2lvbiAiKlB5dGhvbiAzKiIgOmFzeW5jIHQNCjENCiMrZW5kX3Ny Yw0KDQojIExvY2FsIFZhcmlhYmxlczoNCiMgcHl0aG9uLXNoZWxsLWJ1ZmZlci1uYW1lOiAiUHl0 aG9uIDMiDQojIEVuZDoNCuKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKU gOKUgOKUgOKUgOKUgOKcgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKU gOKUgOKUgOKUgOKUgA0KDQoyLiBlbWFjcyAtUSAtTCA8cGF0aF90b19sYXRlc3Rfb3JnPiAtLWV2 YWwgIihyZXF1aXJlICdvYi1weXRob24pIg0KDQozLiBPcGVuIHRlc3Qub3JnLCB0aGVuIHN0YXJ0 IGEgcHl0aG9uIHNoZWxsIHdpdGggTS14IHJ1bi1weXRob24sIHdoaWNoDQpzaG91bGQgY3JlYXRl IGEgYnVmZmVyIG5hbWVkICIqUHl0aG9uIDMqIg0KDQo0LiBQcmVzcyBDLWMgQy1jIG9uIHRoZSBz cmMgYmxvY2suIFRoZW4gYW4gZXJyb3IgIk5vIGluZmVyaW9yIFB5dGhvbg0KcHJvY2VzcyBydW5u aW5nIiBpcyBzaG93bi4NCg== --00000000000095f92c06002ddd1f Content-Type: text/x-patch; charset="US-ASCII"; name="0001-ob-python-Fix-async-evaluation.patch" Content-Disposition: attachment; filename="0001-ob-python-Fix-async-evaluation.patch" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_ljxqv29b0 RnJvbSA3NWNhMTZhMjFmZTQwOWFlYjM3YjliZjBkOTc4OTVjMDBmMzhkNDY2IE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBMaXUgSHVpIDxsaXVodWkxNjEwQGdtYWlsLmNvbT4KRGF0ZTog VHVlLCAxMSBKdWwgMjAyMyAxMDo0OTowNyArMDgwMApTdWJqZWN0OiBbUEFUQ0hdIG9iLXB5dGhv bjogRml4IGFzeW5jIGV2YWx1YXRpb24KCiogbGlzcC9vYi1weXRob24uZWwgKG9yZy1iYWJlbC1w eXRob24tYXN5bmMtZXZhbHVhdGUtc2Vzc2lvbik6IEJpbmQKYHB5dGhvbi1zaGVsbC1idWZmZXIt bmFtZScgaW5zaWRlIHRoZSB0ZW1wIGJ1ZmZlci4KLS0tCiBsaXNwL29iLXB5dGhvbi5lbCB8IDQ3 ICsrKysrKysrKysrKysrKysrKysrKysrKystLS0tLS0tLS0tLS0tLS0tLS0tLS0tCiAxIGZpbGUg Y2hhbmdlZCwgMjUgaW5zZXJ0aW9ucygrKSwgMjIgZGVsZXRpb25zKC0pCgpkaWZmIC0tZ2l0IGEv bGlzcC9vYi1weXRob24uZWwgYi9saXNwL29iLXB5dGhvbi5lbAppbmRleCAwZTA1MzlkN2EuLmMx NWQ0NWI5NiAxMDA2NDQKLS0tIGEvbGlzcC9vYi1weXRob24uZWwKKysrIGIvbGlzcC9vYi1weXRo b24uZWwKQEAgLTQwMCwyOCArNDAwLDMxIEBAIChkZWZ1biBvcmctYmFiZWwtcHl0aG9uLWFzeW5j LWV2YWx1YXRlLXNlc3Npb24KICAgIHNlc3Npb24gKGN1cnJlbnQtYnVmZmVyKQogICAgIm9iX2Nv bWludF9hc3luY19weXRob25fXFwoLitcXClfXFwoLitcXCkiCiAgICAnb3JnLWJhYmVsLWNob21w ICdvcmctYmFiZWwtcHl0aG9uLWFzeW5jLXZhbHVlLWNhbGxiYWNrKQotICAobGV0ICgocHl0aG9u LXNoZWxsLWJ1ZmZlci1uYW1lIChvcmctYmFiZWwtcHl0aG9uLXdpdGhvdXQtZWFybXVmZnMgc2Vz c2lvbikpKQotICAgIChwY2FzZSByZXN1bHQtdHlwZQotICAgICAgKGBvdXRwdXQKLSAgICAgICAo bGV0ICgodXVpZCAob3JnLWlkLXV1aWQpKSkKLSAgICAgICAgICh3aXRoLXRlbXAtYnVmZmVyCi0g ICAgICAgICAgIChpbnNlcnQgKGZvcm1hdCBvcmctYmFiZWwtcHl0aG9uLWFzeW5jLWluZGljYXRv ciAic3RhcnQiIHV1aWQpKQotICAgICAgICAgICAoaW5zZXJ0ICJcbiIpCi0gICAgICAgICAgIChp bnNlcnQgYm9keSkKLSAgICAgICAgICAgKGluc2VydCAiXG4iKQotICAgICAgICAgICAoaW5zZXJ0 IChmb3JtYXQgb3JnLWJhYmVsLXB5dGhvbi1hc3luYy1pbmRpY2F0b3IgImVuZCIgdXVpZCkpCi0g ICAgICAgICAgIChweXRob24tc2hlbGwtc2VuZC1idWZmZXIpKQotICAgICAgICAgdXVpZCkpCi0g ICAgICAoYHZhbHVlCi0gICAgICAgKGxldCAoKHRtcC1yZXN1bHRzLWZpbGUgKG9yZy1iYWJlbC10 ZW1wLWZpbGUgInB5dGhvbi0iKSkKLSAgICAgICAgICAgICAodG1wLXNyYy1maWxlIChvcmctYmFi ZWwtdGVtcC1maWxlICJweXRob24tIikpKQotICAgICAgICAgKHdpdGgtdGVtcC1maWxlIHRtcC1z cmMtZmlsZSAoaW5zZXJ0IGJvZHkpKQotICAgICAgICAgKHdpdGgtdGVtcC1idWZmZXIKLSAgICAg ICAgICAgKGluc2VydCAob3JnLWJhYmVsLXB5dGhvbi1mb3JtYXQtc2Vzc2lvbi12YWx1ZSB0bXAt c3JjLWZpbGUgdG1wLXJlc3VsdHMtZmlsZSByZXN1bHQtcGFyYW1zKSkKLSAgICAgICAgICAgKGlu c2VydCAiXG4iKQotICAgICAgICAgICAoaW5zZXJ0IChmb3JtYXQgb3JnLWJhYmVsLXB5dGhvbi1h c3luYy1pbmRpY2F0b3IgImZpbGUiIHRtcC1yZXN1bHRzLWZpbGUpKQotICAgICAgICAgICAocHl0 aG9uLXNoZWxsLXNlbmQtYnVmZmVyKSkKLSAgICAgICAgIHRtcC1yZXN1bHRzLWZpbGUpKSkpKQor ICAocGNhc2UgcmVzdWx0LXR5cGUKKyAgICAoYG91dHB1dAorICAgICAobGV0ICgodXVpZCAob3Jn LWlkLXV1aWQpKSkKKyAgICAgICAod2l0aC10ZW1wLWJ1ZmZlcgorICAgICAgICAgKGluc2VydCAo Zm9ybWF0IG9yZy1iYWJlbC1weXRob24tYXN5bmMtaW5kaWNhdG9yICJzdGFydCIgdXVpZCkpCisg ICAgICAgICAoaW5zZXJ0ICJcbiIpCisgICAgICAgICAoaW5zZXJ0IGJvZHkpCisgICAgICAgICAo aW5zZXJ0ICJcbiIpCisgICAgICAgICAoaW5zZXJ0IChmb3JtYXQgb3JnLWJhYmVsLXB5dGhvbi1h c3luYy1pbmRpY2F0b3IgImVuZCIgdXVpZCkpCisgICAgICAgICAobGV0ICgocHl0aG9uLXNoZWxs LWJ1ZmZlci1uYW1lCisgICAgICAgICAgICAgICAgKG9yZy1iYWJlbC1weXRob24td2l0aG91dC1l YXJtdWZmcyBzZXNzaW9uKSkpCisgICAgICAgICAgIChweXRob24tc2hlbGwtc2VuZC1idWZmZXIp KSkKKyAgICAgICB1dWlkKSkKKyAgICAoYHZhbHVlCisgICAgIChsZXQgKCh0bXAtcmVzdWx0cy1m aWxlIChvcmctYmFiZWwtdGVtcC1maWxlICJweXRob24tIikpCisgICAgICAgICAgICh0bXAtc3Jj LWZpbGUgKG9yZy1iYWJlbC10ZW1wLWZpbGUgInB5dGhvbi0iKSkpCisgICAgICAgKHdpdGgtdGVt cC1maWxlIHRtcC1zcmMtZmlsZSAoaW5zZXJ0IGJvZHkpKQorICAgICAgICh3aXRoLXRlbXAtYnVm ZmVyCisgICAgICAgICAoaW5zZXJ0IChvcmctYmFiZWwtcHl0aG9uLWZvcm1hdC1zZXNzaW9uLXZh bHVlIHRtcC1zcmMtZmlsZSB0bXAtcmVzdWx0cy1maWxlIHJlc3VsdC1wYXJhbXMpKQorICAgICAg ICAgKGluc2VydCAiXG4iKQorICAgICAgICAgKGluc2VydCAoZm9ybWF0IG9yZy1iYWJlbC1weXRo b24tYXN5bmMtaW5kaWNhdG9yICJmaWxlIiB0bXAtcmVzdWx0cy1maWxlKSkKKyAgICAgICAgIChs ZXQgKChweXRob24tc2hlbGwtYnVmZmVyLW5hbWUKKyAgICAgICAgICAgICAgICAob3JnLWJhYmVs LXB5dGhvbi13aXRob3V0LWVhcm11ZmZzIHNlc3Npb24pKSkKKyAgICAgICAgICAgKHB5dGhvbi1z aGVsbC1zZW5kLWJ1ZmZlcikpKQorICAgICAgIHRtcC1yZXN1bHRzLWZpbGUpKSkpCiAKIChwcm92 aWRlICdvYi1weXRob24pCiAKLS0gCjIuMjUuMQoK --00000000000095f92c06002ddd1f--