From unknown Sat Sep 13 16:36:56 2025 X-Loop: help-debbugs@gnu.org Subject: bug#55557: 29.0.50; Typos in comments of python.el Resent-From: kobarity Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 21 May 2022 14:59:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 55557 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 55557@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16531451159772 (code B ref -1); Sat, 21 May 2022 14:59:01 +0000 Received: (at submit) by debbugs.gnu.org; 21 May 2022 14:58:35 +0000 Received: from localhost ([127.0.0.1]:42800 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nsQYs-0002XY-Hz for submit@debbugs.gnu.org; Sat, 21 May 2022 10:58:34 -0400 Received: from lists.gnu.org ([209.51.188.17]:43076) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nsQYr-0002XQ-1g for submit@debbugs.gnu.org; Sat, 21 May 2022 10:58:33 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43244) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nsQYq-0006H3-QP for bug-gnu-emacs@gnu.org; Sat, 21 May 2022 10:58:32 -0400 Received: from mail-ed1-x536.google.com ([2a00:1450:4864:20::536]:35723) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nsQYp-0002Sv-4U for bug-gnu-emacs@gnu.org; Sat, 21 May 2022 10:58:32 -0400 Received: by mail-ed1-x536.google.com with SMTP id c10so13925843edr.2 for ; Sat, 21 May 2022 07:58:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=qr8h0LUtIU8F4HQQ91sjrKjgUb9dyq7YC8PzdzTDJ8g=; b=cJcegDWUb/NQR6/eipfpQcn8pL3Mp8DGUSamZgsPHJFMafh1sgDopzHT/fTuBwuPvg FlEtkLsWhDpY4jP6W9BQG6cyO6VGI6FFsJJKLPXvQZXXT3Qo8VTflSxnoATuA/KJOEkI 0C50AyIyHKln9RopIrhbZCrjop60V33oUAlLo8/CVk+XGcOgvJ6yXc0NsXBm5fBf8qJJ eOJuEWdGyE996Rf1H55CmUyOh2odoXU2Y0fiFf9SClW5NpMPPCQg+H4uEz/acH1v6ic7 IVrk7jpJSjf8Vsu9sP+BeBV3RCu34xTpVJlznTo0kGuQwFn4oTIh5Y+vPVhraVp/8wmR qZdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=qr8h0LUtIU8F4HQQ91sjrKjgUb9dyq7YC8PzdzTDJ8g=; b=Lrpf7XiZCBFCAH4VAQ5hOgFQDiRGoiqduYZ+szhbS/x77+h+oLAhs0JLmSojreopk/ 68j07SySoF9DhNtaMw6QuFN81iD5RlSaJ5scd4Tt/uHyJp/RX5Tc/jYvzFZcnQF9adZ3 pvvbxAvDc/dWFFeFidn4d0nOBNZ31y/NSGIBJpOVWYoOYrhJVo3jdYGVoHmMBnVDfrVd /fLuyodXLIdH9LDHerPbdQ0Ts1EY6tEFgPoONB7y0Ix60+XtWolaH2Cb8B/jK/p9bC+v gD01eziY58l6488G6E1e+FXH8QuF/6JPYlK/JK7kgPCnuDZjhQrKr49k4mhMvadQ3bYs 8S4g== X-Gm-Message-State: AOAM531ysmjifGLa41rV3mQ2EF5jp2tBSHMYtPQTK93Lq+rlBs7mQXdA esJR3z4+h5GiTPJPBCpujvXBd1C9+fWd1TXCjRMYry/nC90= X-Google-Smtp-Source: ABdhPJy3S1b5t0EWVS8qxf3fD7Hg83OR1q785C6P3/s/OjZYx409CAIG5T0qZN/JSwAV2iw045/UohgqQzdBMbOfPyY= X-Received: by 2002:a05:6402:d0e:b0:413:3d99:f2d6 with SMTP id eb14-20020a0564020d0e00b004133d99f2d6mr15967931edb.189.1653145104985; Sat, 21 May 2022 07:58:24 -0700 (PDT) MIME-Version: 1.0 From: kobarity Date: Sat, 21 May 2022 23:58:11 +0900 Message-ID: Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2a00:1450:4864:20::536; envelope-from=kobarity@gmail.com; helo=mail-ed1-x536.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_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-Spam-Score: -1.3 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) There are typos in comments of python.el. TypeError occurs when the example Python codes shown in comments are executed. Here is a fix to avoid TypeError. diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 0761aaebdc..fdf5d48c5c 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el @@ -676,7 +676,7 @@ python-font-lock-keywords-maximum-decoration ;; and variants thereof ;; the cases ;; (a) = 5 - ;; [a] = 5 + ;; [a] = 5, ;; [*a] = 5, 6 ;; are handled separately below (,(python-font-lock-assignment-matcher @@ -706,7 +706,7 @@ python-font-lock-keywords-maximum-decoration (1 font-lock-variable-name-face)) ;; special cases ;; (a) = 5 - ;; [a] = 5 + ;; [a] = 5, ;; [*a] = 5, 6 (,(python-font-lock-assignment-matcher (python-rx (or line-start ?\; ?=) (* space) In GNU Emacs 29.0.50 (build 4, x86_64-pc-linux-gnu) of 2022-05-21 built on ubuntu Repository revision: 208102fa470e3417320062cdb48a9967d80bf092 Repository branch: master System Description: Ubuntu 22.04 LTS Configured using: 'configure --without-x --with-gnutls=ifavailable' Configured features: ACL LIBXML2 MODULES NOTIFY INOTIFY PDUMPER SECCOMP SOUND SQLITE3 THREADS XIM ZLIB Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t show-paren-mode: t electric-indent-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Load-path shadows: None found. Features: (shadow regexp-opt sort mail-extr emacsbug message mailcap yank-media rmc puny dired dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068 epg-config gnus-util text-property-search time-date seq mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader cl-loaddefs cl-lib sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils term/screen term/xterm xterm gv subr-x byte-opt bytecomp byte-compile cconv iso-transl tooltip eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice simple cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads inotify multi-tty make-network-process emacs) Memory information: ((conses 16 45150 7237) (symbols 48 5658 1) (strings 32 15646 1590) (string-bytes 1 499411) (vectors 16 8629) (vector-slots 8 104908 6774) (floats 8 24 363) (intervals 56 202 0) (buffers 992 11)) From unknown Sat Sep 13 16:36:56 2025 X-Loop: help-debbugs@gnu.org Subject: bug#55557: 29.0.50; Typos in comments of python.el Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 22 May 2022 11:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55557 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: kobarity Cc: 55557@debbugs.gnu.org Received: via spool by 55557-submit@debbugs.gnu.org id=B55557.165321881827983 (code B ref 55557); Sun, 22 May 2022 11:27:02 +0000 Received: (at 55557) by debbugs.gnu.org; 22 May 2022 11:26:58 +0000 Received: from localhost ([127.0.0.1]:43792 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nsjjd-0007HH-OO for submit@debbugs.gnu.org; Sun, 22 May 2022 07:26:57 -0400 Received: from quimby.gnus.org ([95.216.78.240]:39370) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nsjja-0007H1-Od for 55557@debbugs.gnu.org; Sun, 22 May 2022 07:26:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=Pfo4ELmFS+f3FUeVvv3DH9uXhmIZZc+Ch9EH5spV9As=; b=e7UAXy8/jM8JWa6lBPLumjXek8 x7owbiVMLJWfsDiQM2KIDI/lvU+ye1NBjXXitKEzIsXNvcErcYPJhSBf/tp/smds6MsVGShhBd/0D 0pPdpSuBc6TOhUJBII018mEKoyzOZLhZF82LlSDuH7wJUSuT3wJwMbscWwbCGUbfeCes=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nsjjS-0005cK-IZ; Sun, 22 May 2022 13:26:48 +0200 From: Lars Ingebrigtsen References: X-Now-Playing: The Names's _Swimming_: "White Shadow" Date: Sun, 22 May 2022 13:26:46 +0200 In-Reply-To: (kobarity@gmail.com's message of "Sat, 21 May 2022 23:58:11 +0900") Message-ID: <87tu9hvmdl.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: kobarity writes: > There are typos in comments of python.el. TypeError occurs when the > example Python codes shown in comments are executed. Here is a fix to > avoid TypeError. Thanks; pushed to Emacs 29. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) kobarity writes: > There are typos in comments of python.el. TypeError occurs when the > example Python codes shown in comments are executed. Here is a fix to > avoid TypeError. Thanks; pushed to Emacs 29. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sun May 22 07:27:01 2022 Received: (at control) by debbugs.gnu.org; 22 May 2022 11:27:01 +0000 Received: from localhost ([127.0.0.1]:43795 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nsjjg-0007HW-UR for submit@debbugs.gnu.org; Sun, 22 May 2022 07:27:01 -0400 Received: from quimby.gnus.org ([95.216.78.240]:39384) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nsjje-0007H7-V4 for control@debbugs.gnu.org; Sun, 22 May 2022 07:26:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=bANKeEu4YobQZYk3wk1w7P1GSqHMY4BAmnSHWtVv708=; b=nFNs7TW8trGVcqX3FETy85QZpR kF11+uC+xfoJp/nHdS1zlYQ4pB8EK2K5GwTJ/q66W/IBJbWeXZodMJmO1DqBdIzKh+6MX+N3mTCUw GZsIAyzO8N49K0HaCsCE5SH9J+zS34iqvKFSF30hDiWcmLIezhhWSykGHEZ+rWDU82r8=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nsjjX-0005cR-Jn for control@debbugs.gnu.org; Sun, 22 May 2022 13:26:53 +0200 Date: Sun, 22 May 2022 13:26:50 +0200 Message-Id: <87sfp1vmdh.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #55557 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 55557 29.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) close 55557 29.1 quit