Path: csiph.com!fu-berlin.de!news.servidellagleba.it!bofh.it!news.nic.it!robomod From: Alexandre Detiste Newsgroups: linux.debian.maint.python Subject: Re: Python2 idiosyncrasies in Python3 scripts Date: Thu, 15 Aug 2024 13:50:01 +0200 Message-ID: References: X-Original-To: Andrey Rakhmatullin , Debian Python , sphericaltriangle@rezozer.net X-Mailbox-Line: From debian-python-request@lists.debian.org Thu Aug 15 11:48:57 2024 Old-Return-Path: X-Amavis-Spam-Status: No, score=-5.209 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=2, LDO_WHITELIST=-5, RCVD_IN_DNSWL_NONE=-0.0001, T_SCC_BODY_TEXT_LINE=-0.01] autolearn=no autolearn_force=no X-Policyd-Weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 CL_IP_EQ_HELO_IP=-2 (check from: .gmail. - helo: .mail-yw1-x1131.google. - helo-domain: .google.) FROM/MX_MATCHES_HELO(DOMAIN)=-2; rate: -5.5 X-Forwarded-Encrypted: i=1; AJvYcCVc0XEf/yaan7OMTfJ3zoL2IubgpS3/Q6uPnao4QkIE5NZpiqcUW8dkKNkVvPIuPzVzdt+rho/x9/iM0OnS0scZkDdvZbjFwENCbDHGXBE= X-Gm-Message-State: AOJu0YxIlzkp4VQwgmYI+guiIAJa7PwkSrUOzNz2N+VDXrb1jb8o/mtQ wClE19y17iBSk7OISH05JVasApwzyfQWi7ga9x3RUEeCBL8TH/VgOVs8kWVGq17D+waCBgYaYcH jbEz74vqTQWZCXvG9eWiSRjAAVR0dcuGE X-Google-SMTP-Source: AGHT+IHBQa+ZATjL3uxyJcGumZUV4f9gmUqhaxtQJ/ztcOjUaBHVE8rqiXhssilMewJPr6UQoWdOOSIuZpLgXeG8ay4= X-Received: by 2002:a05:6902:1a48:b0:e0e:ccde:4a0f with SMTP id 3f1490d57ef6-e1155c03085mr6532113276.54.1723722521507; Thu, 15 Aug 2024 04:48:41 -0700 (PDT) MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000009600da061fb76c54" X-Mailing-List: archive/latest/22259 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/CADsTwjLzCu+O3rijpy2amuThQk0C1qn7y51P-g7XJCPN3sfW4Q@mail.gmail.com Approved: robomod@news.nic.it Lines: 55 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Thu, 15 Aug 2024 13:48:30 +0200 X-Original-Message-ID: X-Original-References: <0d8f77e0-597b-446f-a046-593149176d3a@rezozer.net> Xref: csiph.com linux.debian.maint.python:16213 --0000000000009600da061fb76c54 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, We should patch modernize in Debian to make --no-six the default. (otherwise it is a big pitfall) "It does not guarantee, but it attempts to spit out a codebase compatible with Python 2.6+ or Python 3. The code that it generates has a runtime dependency on six, unless the --no-six option is used. Version 1.9.0 or later of six is recommended. Some of the fixers output code that is not compatible with Python 2.5 or lower." Le jeu. 15 ao=C3=BBt 2024, 13:39, Andrey Rakhmatullin a = =C3=A9crit : > On Thu, Aug 15, 2024 at 01:11:23PM +0200, Jerome BENOIT wrote: > > > > is there a reliable way to isolate Python2 idiosyncrasies in Python= 3 > scripts ? > Try modernize or any linter. > > -- > WBR, wRAR > --0000000000009600da061fb76c54 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

We should patch=C2=A0 modernize in Debian to make --no= -six the default. (otherwise it is a big pitfall)
"It does not guarantee, but it attempts to spit out a codebase= compatible with Python 2.6+ or Python 3. The code that it generates has a = runtime dependency on six, unless the --no-six option is used. Version 1.9.= 0 or later of six is recommended. Some of the fixers output code that is no= t compatible with Python 2.5 or lower."

Le jeu. 15 ao=C3=BBt 2024, 13:39,= Andrey Rakhmatullin <wrar@debian.org> a =C3=A9crit=C2=A0:
=
On Thu, Aug 15, 2024 at 01:11:23PM +0200, Je= rome BENOIT wrote:
> > > is there a reliable way to isolate Python2 idiosyncrasies in= Python3 scripts ?
Try modernize or any linter.

--
WBR, wRAR
--0000000000009600da061fb76c54--