Path: csiph.com!aioe.org!bofh.it!news.nic.it!robomod From: Julian Gilbey Newsgroups: linux.debian.maint.python Subject: Python 3.11, bytecode and new internals Date: Mon, 21 Nov 2022 08:30:01 +0100 Message-ID: X-Original-To: debian-python@lists.debian.org X-Mailbox-Line: From debian-python-request@lists.debian.org Mon Nov 21 07:29:36 2022 Old-Return-Path: X-Amavis-Spam-Status: No, score=-7.2 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, LDO_WHITELIST=-5] autolearn=ham autolearn_force=no X-Policyd-Weight: using cached result; rate: -4.6 X-Greylist: delayed 1240 seconds by postgrey-1.36 at bendel; Mon, 21 Nov 2022 07:29:19 UTC MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Mailing-List: archive/latest/20487 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/Y3sj9J0AYpYZoV0u@d-and-j.net Approved: robomod@news.nic.it Lines: 27 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Mon, 21 Nov 2022 07:08:36 +0000 X-Original-Message-ID: Xref: csiph.com linux.debian.maint.python:14628 I've been having a somewhat interesting time with the python3.11-add transition. Python 3.11 has made some significant changes to its bytecode representation, and also changed some of it's internal data structures related to frames quite significantly. In my corner of the Python world, several important packages use this information, including Spyder, IPython and Jupyter (which all (recursively) depend on python3-parso and/or python3-bytecode), but these low-level packages are not really ready for 3.11 yet (parso claims "basic support for Python 3.11 and 3.12", so it's unlikely it will actually yet work with 3.11, though I haven't tested this, and bytecode makes no claims to yet be ready for 3.11). Several packages have tests which now fail on 3.11, preventing migration to testing (spyder-kernels is one). In pydevd (which does not yet support 3.11, because it depends on python3-bytecode), I've just disabled all the failing tests and put a note in README.Debian, but this is not a great solution. I could add X-Python3-Version: << 3.11 to debian/control, but that is surely not that desirable either. I'm just flagging this up here, with a question about how we should proceed. Certainly we are not ready to make Python 3.11 the default Python version!! Best wishes, Julian