From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Augusto Stoffel Newsgroups: gmane.emacs.devel Subject: Re: ELPA submission: python-import Date: Sun, 31 Jul 2022 11:08:37 +0200 Message-ID: <87a68pr6ne.fsf@gmail.com> References: <87v8rguhry.fsf@gmail.com> <83k07w6j87.fsf@gnu.org> <87r124ue1w.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38031"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: Stefan Monnier , eliz@gnu.org, emacs-devel@gnu.org To: Richard Stallman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Jul 31 11:11:09 2022 Return-path: Envelope-to: ged-emacs-devel@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 1oI4ya-0009mN-Pm for ged-emacs-devel@m.gmane-mx.org; Sun, 31 Jul 2022 11:11:08 +0200 Original-Received: from localhost ([::1]:54914 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oI4yZ-0004X0-75 for ged-emacs-devel@m.gmane-mx.org; Sun, 31 Jul 2022 05:11:07 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40014) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oI4wF-0003g8-IU for emacs-devel@gnu.org; Sun, 31 Jul 2022 05:08:43 -0400 Original-Received: from mail-ej1-x62b.google.com ([2a00:1450:4864:20::62b]:36603) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oI4wD-0004BQ-SX; Sun, 31 Jul 2022 05:08:43 -0400 Original-Received: by mail-ej1-x62b.google.com with SMTP id f5so2513958eje.3; Sun, 31 Jul 2022 02:08:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :user-agent:mime-version:content-transfer-encoding; bh=DZqGlvFGhf1Hi8OwvanIam+dXWlqYeDYqAUmA5lG24Y=; b=gUt6lJQA8CXKsbGWN0inj1LF3E3s+pZRThORpbEUFXp3IXPTeVpJvFRB/xrbuokNRL krlyfoWaLLgl7KiLY5RPxUdvjhugJBaYP+xa33EWoKlcj2QRy6QUnIT8O558fJ7J9Tvw R51cIoxUZo5gT654CsuK++Y9OJUkKze7PjFCgP+JBQ/37zzzqkJSz7ZG9ng3SpvFhvTn IyEq7v1l0w3KrVJta//fVl50JvTHAIozM2bMMxNdBGZw17DgG/hh94mUhUVMtQFDKvkQ LWL8TfOD3gtUNhscMkrdvs6SHbzLguM6jHf7gu3KN6Po28KbCgCChDq0BJmI/qMSKto+ jRsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:user-agent:mime-version:content-transfer-encoding; bh=DZqGlvFGhf1Hi8OwvanIam+dXWlqYeDYqAUmA5lG24Y=; b=VjRCXgyihTd5thvdjYPTjQm0dfzmD+DfSrzUWL+cOIV/qZgF98yquICI4fFb1zm0oi s6elzPAtMhVZAYxgNUXL3Q84ia7dL52U60JJ9Ek2l5GWJgA8yZP0UlO/MlBAPQuPlEOp /GvrDsZA/MqqXcf57PHv7li5ckE05SwKo9yy1gfhoJSw1/dMLbbW+9/Bvlmo8KDsCAiG XgT/QQg/EOifoge+N3jZle7l0Co/I+EdlBq0FMz+B6AAK2dl1jhqi6CE0G92w7GjvY22 a0JwmPCyMUtKmlAN6k2e/TMoK19I0g+GSjYedf5DHi80UUKwoT69dQbZaVx6kxG6gFJc a1mQ== X-Gm-Message-State: ACgBeo0JtOhi7o9ah23qpq3xD98BT761pVogy1yKSjlvier/JEUGgEZI fXH3HSuZLhlJjAV9bIvzIX+FQfaDU0Ztyg== X-Google-Smtp-Source: AA6agR5faoC49jnJ+If86gUgPJbSghO64+xIU7pip+sOiSh/ylSvQkuYgpYJb1Bruy63msAQ6JsDtA== X-Received: by 2002:a17:907:75cb:b0:730:77e1:2e70 with SMTP id jl11-20020a17090775cb00b0073077e12e70mr845414ejc.394.1659258519515; Sun, 31 Jul 2022 02:08:39 -0700 (PDT) Original-Received: from ars3 ([2a02:8109:8ac0:56d0::11cf]) by smtp.gmail.com with ESMTPSA id kw7-20020a170907770700b00722e31fcf42sm3777615ejc.184.2022.07.31.02.08.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 31 Jul 2022 02:08:38 -0700 (PDT) In-Reply-To: (Richard Stallman's message of "Sat, 30 Jul 2022 23:28:09 -0400") Received-SPF: pass client-ip=2a00:1450:4864:20::62b; envelope-from=arstoffel@gmail.com; helo=mail-ej1-x62b.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-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:292907 Archived-At: On Sat, 30 Jul 2022 at 23:28, Richard Stallman wrote: > I don't use Python, and I don't know what isort or pyflakes do, > but if they are not extremely complicated we could write Lisp code > to do the job this facility needs. I've been using a similar package from MELPA (pyimport) that does exactly that, i.e., parsing the Python code from Lisp. Unfortunately, the parsing is a bit naive and fails for certain code formatting styles. Of course the said package could be improved (the task couldn't be regarded as =E2=80=9Cextremely complicated=E2=80=9D), but I don't see the m= otivation of doing so when the effort can be offloaded to an external tool that already exists and is free and pretty reliable. > Putting this feature in a separate package would have two disadvantages: > * It would make Emacs more complex. > * It would discourage users from finding out about the feature. Yes, I agree now.