From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Andreas_R=c3=b6hler?= Newsgroups: gmane.emacs.help Subject: Python, syntax-ppss Date: Mon, 6 Feb 2023 11:54:34 +0100 Message-ID: <3cd4eda0-a795-073a-81fd-b128d4871aee@easy-emacs.de> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4089"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1 To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Feb 06 11:55:23 2023 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pOz9e-0000x4-Tu for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 06 Feb 2023 11:55:22 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pOz8z-0006Db-FP; Mon, 06 Feb 2023 05:54:41 -0500 Original-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 1pOz8x-0006DK-S1 for help-gnu-emacs@gnu.org; Mon, 06 Feb 2023 05:54:40 -0500 Original-Received: from mout.kundenserver.de ([212.227.126.130]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pOz8w-0006r7-BT for help-gnu-emacs@gnu.org; Mon, 06 Feb 2023 05:54:39 -0500 Original-Received: from [192.168.178.61] ([89.247.171.254]) by mrelayeu.kundenserver.de (mreue009 [212.227.15.167]) with ESMTPSA (Nemesis) id 1MStKw-1p2OJA2XKY-00UJZU for ; Mon, 06 Feb 2023 11:54:34 +0100 Content-Language: en-US X-Provags-ID: V03:K1:Euv4SWpKNqMLqfdus46akKcuuLjYofW68qLljeT8tl6GExx7wen oEPOsgP/oNGhbZ4ASWmxc4Qv0XKlnjz6ZGOcgndGbzMzGYyamFksxw2mDFfR/0zxX0pMjAv mtuLfhrlJoywBUbO/xw5McGU00iKIDMsd31kPPMTERFyTb4Z698tXZZWkMEqLtLJ0ZjnRCV 1fQBGB0R2x1Wu/84C/mqA== UI-OutboundReport: notjunk:1;M01:P0:MZ7IRw7ZPqQ=;baUw+OlqpeBjaV8MuqoNL01X7kn RyTWXYk/ep7lynGiJxpqHFIGTh8/tUKEn5DNInzZqgYGjlVO6dXNIthLfH+Xb64WCJ4CZ64x1 TVN0401kClFf2aybBSyKqBfaWisHzAT71tCaApPKiATPO7+Fkc/ebeZfJtlgWzeJgtqg0wAOB gpq1F7so2idRyaOWCDUmhGMbpn0XRHE1jszPyn9rQWBpbIC1TnggPbmDfb4G4NT4cu3bz0/fh kwhpVrO2CL1LLDeLVtKx22KeahXk4KVoNqD2D6vAoSBCPIxhQT9Ji85I3/3bmjK8kw8Q3AiE+ hEvW45QCu15LX5waoM6N5tnqyiQrujgwgqkK0XlOSZ1teh0jK9GXRfz7ak4K+euWjDI7A9k0t 8V6SPuPtQ+d5tigCNPyufXh0jGFjEIFx9sF95wrJqsYHPDXPKrYl9IzzkO2qTJwfP08/wZ/hc Y3t6TXpqhCay/lrJaP5JL7mcVu/jMxM+yNheSrEKaT3WfmXZ6Inw+vi6qgeB3H5bGG20WJ2SO JyKQwkwIrFj/Zv08wzr+tjIbXRPeF8VmsUPMWQZMO8yT2yOZIz2U5YFU/lpWp3SOVO3fW3EHf LGKkFTPCRyzkk6HscUPttCKqJ+JPnsgaEpFax8hi4HqwY6ZN0NBp2DkLdEk3lEzGiP082TqbH 4x2WEvPkQGLnH2+EWIvuMR4sz3fThptk8Ku/f3ut2w== Received-SPF: none client-ip=212.227.126.130; envelope-from=andreas.roehler@easy-emacs.de; helo=mout.kundenserver.de 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, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:142617 Archived-At: Hi, when calling (syntax-ppss) at the end of the Python snippet below, it yields (1 6 7 34 nil nil 0 nil 8 (6) nil) whereas nth 1 --depth in parens--, should tell "2", as the opening curly bracket should count too: --- print(f"Addition: {m1 + m2 --- Right? Thanks, Andreas GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.33, cairo version 1.16.0) of 2023-02-01