From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id sJ0zBlpxzmFRyQAAgWs5BA (envelope-from ) for ; Fri, 31 Dec 2021 03:56:26 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id GIfCAlpxzmG8sQAAauVa8A (envelope-from ) for ; Fri, 31 Dec 2021 03:56:26 +0100 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 37A5216CF1 for ; Fri, 31 Dec 2021 03:56:25 +0100 (CET) Received: from localhost ([::1]:51312 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n385f-0005o6-Mg for larch@yhetil.org; Thu, 30 Dec 2021 21:56:23 -0500 Received: from eggs.gnu.org ([209.51.188.92]:32802) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n385E-0005lS-J2 for emacs-orgmode@gnu.org; Thu, 30 Dec 2021 21:55:56 -0500 Received: from mail-db8eur05olkn2010.outbound.protection.outlook.com ([40.92.89.10]:54656 helo=EUR05-DB8-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n385B-0001Rm-Ky for emacs-orgmode@gnu.org; Thu, 30 Dec 2021 21:55:56 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BPGkTUNQUWVXyHSCTlJO3FF8tS+26di8RrPhJoywiB+Pw0VohgmuqsLLy7lRjF19aAWcRbYGnFu3prxOZLPttBb0M44pRZDk8p0Qdgolzg4d0LXp5NVpKIHe0chR6juw9GnS72iI+5dFBWlcuFEBfTUpET4Xlx81wH8QsGWsKk6nbssLTe6ayz0++4RUqPZyaAFU71rN7pufCqtMkiJM+NtjYXSRqEhN4xCTr8EKI8r0PyQHfg54MlpwcHXKXRRRkBn8CzQTvJyn8KaKMW1CXre61nIAe6ZNykqmB6OcWVVMrEvU2hQWBvinl4VreTB0YJ87gsnaU1ddGo585EJHUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=ktHvLORjSDyDGb2+bU56zi2+h8atrCErQjfecZWIv/w=; b=cFFs7jnR2/i/Xrb7zEKZPLk+uyuiDsZZSsio721nRzNY29Q0yXob79+fQ3j6yv6PhxATpoOqZFdS/XpL3xgAC08Dh23i4G+hlhVlweJtx1ik9Bhz0ZU/0P0rRt+X6TUlj2eYTROCUmbnTntpnIKDc3VnGtQJP4aFthrBzrUI2v3cHmYY8hpiR4NYIbXGJhlcSZWtQ8p6NXF+lF2jb5ukvp80udog8ZhDcb9548Cc82T/rsdwvnPFUFI3sAMj/eZyHKsM0Evjk8ix5GNdMHOtQnhyRpXa4d8fgBL0rz9Tf/SXktTHQ0HoEtT4q6YHS4k6feRyRxkGqMh0xYO/sXNllw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ktHvLORjSDyDGb2+bU56zi2+h8atrCErQjfecZWIv/w=; b=KyKfcJTGJG/baJs7MmjkeslmMz+Xxz2eGa9eYKRUXSD+TbII2caiD6dBQyaTW1irvesXCKHq+I1p8bnylr6oF7TyKzPvwl/dLe9ah4tHfSq1ivILeptCFBAnom9ggImbSRo1beItrGtb/qrOBFHL9C+/w+SRwH0Y37/LOyr8Jvx9yJWhgDlOCeIC7ARd+Ec3TODDfqpO/Ln7MDNRdw2EPMLOkT+32Nee7cszfYOSIyBBZ1mZwaagsmjbaOa0TTQyJcFNCzlDiiB0eXeb//0MWC5wbzAJ7//CKFun2nQVcEDIv1Powg6c3TiVY97/RMgSJxZEO36feNMfyujzlJWdzw== Received: from PAXPR08MB6640.eurprd08.prod.outlook.com (2603:10a6:102:dd::5) by PA4PR08MB6207.eurprd08.prod.outlook.com (2603:10a6:102:f2::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4844.14; Fri, 31 Dec 2021 02:34:53 +0000 Received: from PAXPR08MB6640.eurprd08.prod.outlook.com ([fe80::30ca:c8bc:8796:adbd]) by PAXPR08MB6640.eurprd08.prod.outlook.com ([fe80::30ca:c8bc:8796:adbd%4]) with mapi id 15.20.4844.013; Fri, 31 Dec 2021 02:34:53 +0000 References: <87czleyq4h.fsf@gmail.com> User-agent: mu4e 1.7.0; emacs 29.0.50 From: "Christopher M. Miles" To: Jack Kamm Subject: Re: [BUG] ob-python :results value pp does not working Date: Fri, 31 Dec 2021 10:33:27 +0800 In-reply-to: <87czleyq4h.fsf@gmail.com> Message-ID: Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-TMN: [edi4WMCzDB4jBaA2/w4pxj9N1YCeLOMH] X-ClientProxiedBy: HK2PR02CA0155.apcprd02.prod.outlook.com (2603:1096:201:1f::15) To PAXPR08MB6640.eurprd08.prod.outlook.com (2603:10a6:102:dd::5) X-Microsoft-Original-Message-ID: MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 2 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 02a548e8-738e-4452-21bb-08d9cc06200b X-MS-TrafficTypeDiagnostic: PA4PR08MB6207:EE_ X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: CYnvkURT3uWisXDUGxjjliVTYIFGCWg5mTNwjaVVWFhqxjNIJ/bFwSbeAyi9tET7Fybrm2jGV6oD6Qm//nJkIFqWnX8Oj23DeXWEzz46PpB4yI1GxqBw8Ofjkbr0kaWet34JTlNK5QSIY4cfzaiLL+nAuHSAI0/0pE4ulwfUGidvua24oxHucjlJEKeb9GHOQRE2BS9XYnbGefiSJ+B1mudcgQr4ddoTtbZc9qeVSbeegO61zz3rtuSeT8SHOpZ6kUT44y1bXp8KBZuRoiuWcD5jgZqD1V1bm4l+kjyi3m+BtP8A1Xy8iFAWTq6XV5aHf2qLz9+wNnsPqa+OXb8bgTESh+T/cFVllRsWyaUSvz7TkLsXpCgjP1PW02XR2c/t6iRee7Kfd9Om8KDhKPl1q//3w3uvCGZkAzkq5CqCfGMTg8ku+xWuoKWAwQm5PjlrmYkQK758oBjQxulFrt5krZpZHbNq2+oQVExbgIdAaLN4cK2uGB6EHBIKDqRpIJI8OhRkmd0vhDY4LGFJnXZPIMB5FAieG4uICM/q3UojjCvCWiLzIdZpmc0ZX8Z50da/eMs7LupscxCxczG4lWoMN1e2fpM/1L8+rB2aD9fKXgzVGdbEovmQh7WHpmGi0hh4 X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?Fk47LB/7ajQsKJgijjrgLLeCfb8RH6qUrqRQeHZmkVWlTnRoDCxemYrVBVbY?= =?us-ascii?Q?BGKLVflxnUnw3FY4CFzLe+o+UepBlZDJULbpucF2e/uI5HsbxI7QnnczBd8t?= =?us-ascii?Q?VQhruBr3kit834VyLIACJhG3QfrSW8vpnKIVrxKBFLuMl1OzA2mNG9Qaei2s?= =?us-ascii?Q?Y89bjEArNBGYUP30zon9LoauB6T8mfPAUBe7LGNgnC7zz9nXUDS2WjuDOTY0?= =?us-ascii?Q?vAi/9cIHew2h6Fpc/Nf6cKXiOhk9HGjfBsNoYvER/52/gcC4slF9XUbQu9jL?= =?us-ascii?Q?uDzQXv8a8QiErK2e2o7r2tJdcFxlI1MmvrmWO5JOkICEYMY30LE2ycSLYiq6?= =?us-ascii?Q?3i3W7OW6N4ObZwotr+5cWeMd5b5/Q7fAZBgnuVPdUWy7iMVCt8zrXC0bB0Lm?= =?us-ascii?Q?q/qZO7e6U+iTWGInl9UWiDAj0O1SwUq0gwa+5O0yVMDgL08EfgBQoyT0fusA?= =?us-ascii?Q?c1HrcXBZsAPBKWcxs87CLK0l7flYz9SzHUx0fd+5CMfrs6QEE0XnOdVTEMoQ?= =?us-ascii?Q?RqWMF+mRLGizu6x0nJ2eO7P74gv0y+3+sfPw8m3+2naGX+j6MPSfIOgaQCFf?= =?us-ascii?Q?P2khEgXdn9iQqqU/eVCcSqkAWteCrxlWY+TeobcDqtgz/uKW/vptz82ls1du?= =?us-ascii?Q?DbVi7/FqHhDoqiBhdtwwgwj5D2rxSzwVsoJxn+TYmiic8yQ6CoLo57UqZsMa?= =?us-ascii?Q?2dQFOEW+2y1voIQzfNpTEopYAj/FP6S3e/cJWNGiA1YngSQBHoqZV3kzYWO/?= =?us-ascii?Q?HhE1g83ke9cp0rL7U6WVxrRje6l1/cJhI77MFZYr+7GT+JexIYfi9TIiIsAC?= =?us-ascii?Q?63pd6agCsdju1zZsAFvpAW2ErUJaIoHhO5Hv9/9hYm5gqIt7sE0oV5aPueAl?= =?us-ascii?Q?pUpM15P5ATxdQGyuVRlmceUVnlG5hINXcTjJtCzGHSOD+4ptzauDXcWE/EAn?= =?us-ascii?Q?sRvpuB1j5tBhJVWzUIe5vg=3D=3D?= X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 02a548e8-738e-4452-21bb-08d9cc06200b X-MS-Exchange-CrossTenant-AuthSource: PAXPR08MB6640.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Dec 2021 02:34:53.2023 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR08MB6207 Received-SPF: pass client-ip=40.92.89.10; envelope-from=stardiviner@outlook.com; helo=EUR05-DB8-obe.outbound.protection.outlook.com X-Spam_score_int: 23 X-Spam_score: 2.3 X-Spam_bar: ++ X-Spam_report: (2.3 / 5.0 requ) DKIM_ADSP_CUSTOM_MED=0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FORGED_GMAIL_RCVD=1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, NML_ADSP_CUSTOM_MED=0.9, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no 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: , Reply-To: numbchild@gmail.com Cc: Org Mode Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1640919385; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=ktHvLORjSDyDGb2+bU56zi2+h8atrCErQjfecZWIv/w=; b=ZfWLNDriyRdMUaFA4vb22J3a3Li+7hBAIMfX+d2FLHPAck8ubWmSsuzRoveULFzA+ucV7C //jAKSsmZr85Y7YWzGkDju36P8sSFgHhnMgmAC7w9/NgtKWhHHp+6jdwTnUzF5Uab2ASkD 4GGJZfDQRjVbiirOLgU2vB4QNuwK1s3gCBXHdQxrAdH6A1EzsWiuRMJNAyOR2h5uSqWi8E LACaCmJl+VbvRygDWEt+eXs9WKJRE04rm0rPCCpObPIIvbslWYHfeTbBqHEsxtvtE34lNd iFIF82WGrvjhCVJmlN1W4tG6fPpXQssCkvVA/m4XHbvuIxwqmAsgm+DqmFgcYw== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1640919385; a=rsa-sha256; cv=pass; b=Bd/9pkkY50OP1Ctb94V+fA6y20Qrvp1/HeIsR3Q3Rn9gEd9LHyrw8h7sk1HpY1m2uHXpsM 8kifwQkhQeJ5wA0L2DC0SbGKtkVzWGGLv8uPtTnC2ubzBcEMGK+cU91ETt7DxbtJYs4N0j qQHzwmw5bk90qBB6VJrlhyVu5lAbPd7jPbg968++J+lKgAG/lOap+iFva50epMJgl7mXPF 78YozfuecjrRl5FzbX/mYkGNZOT3l4dnqhcrCPspEeiXHSvFSvnLK4BrrOITXR9XA3vKqU jaSM5haro9Fnr7Gp8OANUDzlVf6hiSppRB34q41zoGAMWQdvlWoUrF8F/z1z+Q== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=outlook.com header.s=selector1 header.b=KyKfcJTG; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=gmail.com (policy=none); 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" X-Migadu-Spam-Score: -11.57 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=outlook.com header.s=selector1 header.b=KyKfcJTG; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=gmail.com (policy=none); 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" X-Migadu-Queue-Id: 37A5216CF1 X-Spam-Score: -11.57 X-Migadu-Scanner: scn0.migadu.com X-TUID: Jm/HxFXmdGZm --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Thanks Jack. Confirmed works. This might need to mentioned in Org manual an= d in ob-python.el source code with comment. WDYT? Jack Kamm writes: > For non-session Python blocks, you need to use "return" on the value, as > if you are in a function. > > The following works for me: > > #+begin_src python :results value pp > dic =3D {'key1': 1, 'b': 2} > return dic > #+end_src > > #+RESULTS: > : {'b': 2, 'key1': 1} =2D-=20 [ stardiviner ] I try to make every word tell the meaning that I want to express. Blog: https://stardiviner.github.io/ IRC(freenode): stardiviner, Matrix: stardiviner GPG: F09F650D7D674819892591401B5DF1C95AE89AC3 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEE8J9lDX1nSBmJJZFAG13xyVromsMFAmHObEMACgkQG13xyVro msP5OggAxhDV2sH0tpIOTEkd74mW7EbLGbN94urSeKr6UGghxprdlGBkZH0eCgBj H4JWKb84/1GQlTvLIYU2F4uKFAt1dRShguqo0+Y0nb4SN4itDephPBSTxat+epXt 5L3M0KrxMvUY5fy0BlfRl7RnPD6/AoLvv3TlYoRmM1/Kan87tuiOkdsiX4xLplTC 8p88DNgUGA/oU6520rO6+i2lAzr8v/ov181Yi4CG/JCgLSOXg0HuOShauX3j6Yfa zetjm3nQzgvCwJYFt0CBTPyESiybyuwXylQ5qaAXe8mLfTDpm96MNhhYR7ZkQ+Tt CV5BBT+/FEJkWOwoKD3RQDrTE2/xkw== =yz2F -----END PGP SIGNATURE----- --=-=-=--