[{"id":3681895,"web_url":"http://patchwork.ozlabs.org/comment/3681895/","msgid":"<CAMRc=MdrisR4_Wmd+1S3JGHMPkiZTvC1ucNpGq_j5N1pD0xdHQ@mail.gmail.com>","list_archive_url":null,"date":"2026-04-24T09:03:28","subject":"Re: [libgpiod][PATCH v2 7/8] bindings: python: tests: migrate the\n system module to multi-phase init","submitter":{"id":92191,"url":"http://patchwork.ozlabs.org/api/people/92191/","name":"Bartosz Golaszewski","email":"brgl@kernel.org"},"content":"On Fri, Apr 24, 2026 at 12:21 AM Vincent Fazio <vfazio@gmail.com> wrote:\n>\n> Single-phase initialization has been classified as legacy within CPython\n> documentation [0] with multi-phase being its successor [1].\n>\n> As such, switch to the new methodology.\n>\n> [0]: https://docs.python.org/3/c-api/extension-modules.html#legacy-single-phase-initialization\n> [1]: https://docs.python.org/3/c-api/extension-modules.html#multi-phase-initialization\n>\n> Signed-off-by: Vincent Fazio <vfazio@gmail.com>\n> ---\n>  bindings/python/tests/system/ext.c | 7 ++++++-\n>  1 file changed, 6 insertions(+), 1 deletion(-)\n>\n> diff --git a/bindings/python/tests/system/ext.c b/bindings/python/tests/system/ext.c\n> index c982fa6..800648e 100644\n> --- a/bindings/python/tests/system/ext.c\n> +++ b/bindings/python/tests/system/ext.c\n> @@ -67,13 +67,18 @@ static PyMethodDef module_methods[] = {\n>         { }\n>  };\n>\n> +static struct PyModuleDef_Slot module_slots[] = {\n> +       {0, NULL},\n> +};\n\nJust an inconsistency I noticed while I was about to pick it up, why\ndo we have a NULL sentinel in the gpiod extension but not here?\n\nBart\n\n> +\n>  static PyModuleDef module_def = {\n>         PyModuleDef_HEAD_INIT,\n>         .m_name = \"system._ext\",\n>         .m_methods = module_methods,\n> +       .m_slots = module_slots,\n>  };\n>\n>  PyMODINIT_FUNC PyInit__ext(void)\n>  {\n> -       return PyModule_Create(&module_def);\n> +       return PyModuleDef_Init(&module_def);\n>  }\n> --\n> 2.43.0\n>","headers":{"Return-Path":"\n <linux-gpio+bounces-35470-incoming=patchwork.ozlabs.org@vger.kernel.org>","X-Original-To":["incoming@patchwork.ozlabs.org","linux-gpio@vger.kernel.org"],"Delivered-To":"patchwork-incoming@legolas.ozlabs.org","Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256\n header.s=k20201202 header.b=uBTxwnBZ;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2600:3c0a:e001:db::12fc:5321; helo=sea.lore.kernel.org;\n envelope-from=linux-gpio+bounces-35470-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)","smtp.subspace.kernel.org;\n\tdkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org\n header.b=\"uBTxwnBZ\"","smtp.subspace.kernel.org;\n arc=none smtp.client-ip=10.30.226.201"],"Received":["from sea.lore.kernel.org (sea.lore.kernel.org\n [IPv6:2600:3c0a:e001:db::12fc:5321])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g26WB2BNHz1yD5\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 24 Apr 2026 19:05:42 +1000 (AEST)","from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby sea.lore.kernel.org (Postfix) with ESMTP id DB206300275F\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 24 Apr 2026 09:03:44 +0000 (UTC)","from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 2DD1B31F9BD;\n\tFri, 24 Apr 2026 09:03:44 +0000 (UTC)","from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org\n [10.30.226.201])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby smtp.subspace.kernel.org (Postfix) with ESMTPS id E4DD8221FCD\n\tfor <linux-gpio@vger.kernel.org>; Fri, 24 Apr 2026 09:03:43 +0000 (UTC)","by smtp.kernel.org (Postfix) with ESMTPSA id 7F26FC2BCB4\n\tfor <linux-gpio@vger.kernel.org>; Fri, 24 Apr 2026 09:03:43 +0000 (UTC)","by mail-lj1-f174.google.com with SMTP id\n 38308e7fff4ca-38eab6cf7d8so72888101fa.1\n        for <linux-gpio@vger.kernel.org>;\n Fri, 24 Apr 2026 02:03:43 -0700 (PDT)"],"ARC-Seal":"i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1777021424; cv=none;\n b=qCKWI3tpRkJ7Xr29IBCUyz4YmGjNt3mXHgk8thqJ2Fon5q+CEN3EW+st+/yHblRu2lS0dEh4F2evbt+qCvRiBFNNxT++JOW3qMcxuVzeh+2SIqnRfPWlqiVSLgogTqQOUQdRpddLOFi6oOKQrXk1vTF8DRrfkD2fsM1RXjD8DFw=","ARC-Message-Signature":"i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1777021424; c=relaxed/simple;\n\tbh=SRLhJ45lNOSkSS/hkoMS/ycSVwjW6DkLgXgSFpXrb6E=;\n\th=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject:\n\t To:Cc:Content-Type;\n b=PrPdtTyG9UkNHFcip9IN7rllnO6l57q/zAcH15Wk5VTNnfRwT6jna2BNwsehmasnFbNSVw/EWLMhcSCQqsLwBX6KRc0mpyRAo5bTqbwAR5WbGv6t1d3UsYhuUfyJeQ/Tvaf2i/Qj6YLoQh1BD7OQDtgU+DmHW64pl5aVW79fNHE=","ARC-Authentication-Results":"i=1; smtp.subspace.kernel.org;\n dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org\n header.b=uBTxwnBZ; arc=none smtp.client-ip=10.30.226.201","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org;\n\ts=k20201202; t=1777021423;\n\tbh=SRLhJ45lNOSkSS/hkoMS/ycSVwjW6DkLgXgSFpXrb6E=;\n\th=References:In-Reply-To:From:Date:Subject:To:Cc:From;\n\tb=uBTxwnBZ0KGOUjEjLnAVwKKAqcnlabFor6qoMgBL7aeJb0kwdO4gpIdFFzwyKlRnD\n\t uROtQh8Ck8VxgY4mBSpntwdR9eGaL+tCKEYhlUP5VjV4hlvfhEL3y+1YeVGy60b2/u\n\t pK4iOx7rh+WsCJGVXTS//zPn9WKOCKppQWwmj5AwgupAIbzspbRw8AEB3JnVnxHprd\n\t HO1oBmedhY9jzwRzHkffX909Tp68qszodnhTjnPMOAfj/gMfKV9LrRo7suLTq/5xbl\n\t xI2pJIY959vAXpTJDWtMJWB5ur4668QZPcpwIvapX5M1/kU8sE8uFpmdaC4Wr0rLBE\n\t nlo/O1loT5QCg==","X-Gm-Message-State":"AOJu0Yy+tvjol6NpRC1sKO4qF/i7XiUMeFY+9y0dgevs50MCaWMFu7mf\n\tFin+p0jyaQaZF106o/n3JzuHAdVNqrjXUUVbBOxMkAdEvMB9+uTR4kUwQlhHHi3NnQefugrEtS7\n\ts4CQx73CpFyJyztxL+gnO0CzQXyRaePYkacUTZxJszg==","X-Received":"by 2002:a05:6512:64ca:b0:5a4:176c:99ab with SMTP id\n 2adb3069b0e04-5a4176c99f7mr7885644e87.4.1777021422161; Fri, 24 Apr 2026\n 02:03:42 -0700 (PDT)","Precedence":"bulk","X-Mailing-List":"linux-gpio@vger.kernel.org","List-Id":"<linux-gpio.vger.kernel.org>","List-Subscribe":"<mailto:linux-gpio+subscribe@vger.kernel.org>","List-Unsubscribe":"<mailto:linux-gpio+unsubscribe@vger.kernel.org>","MIME-Version":"1.0","References":"<20260423222125.29097-1-vfazio@gmail.com>\n <20260423222125.29097-8-vfazio@gmail.com>","In-Reply-To":"<20260423222125.29097-8-vfazio@gmail.com>","From":"Bartosz Golaszewski <brgl@kernel.org>","Date":"Fri, 24 Apr 2026 11:03:28 +0200","X-Gmail-Original-Message-ID":"\n <CAMRc=MdrisR4_Wmd+1S3JGHMPkiZTvC1ucNpGq_j5N1pD0xdHQ@mail.gmail.com>","X-Gm-Features":"AQROBzAFw5CJpNlgdBj8jL1ZBpXTjo3D6fbTRQdxwobfXmpVCPcERGgBybBlJHY","Message-ID":"\n <CAMRc=MdrisR4_Wmd+1S3JGHMPkiZTvC1ucNpGq_j5N1pD0xdHQ@mail.gmail.com>","Subject":"Re: [libgpiod][PATCH v2 7/8] bindings: python: tests: migrate the\n system module to multi-phase init","To":"Vincent Fazio <vfazio@gmail.com>","Cc":"linux-gpio@vger.kernel.org","Content-Type":"text/plain; charset=\"UTF-8\"","Content-Transfer-Encoding":"quoted-printable"}},{"id":3681896,"web_url":"http://patchwork.ozlabs.org/comment/3681896/","msgid":"<CAMRc=McTrz+-peiqCovR9xo3keNGYfh4AHuE-LhxJ93E8scZZQ@mail.gmail.com>","list_archive_url":null,"date":"2026-04-24T09:05:34","subject":"Re: [libgpiod][PATCH v2 7/8] bindings: python: tests: migrate the\n system module to multi-phase init","submitter":{"id":92191,"url":"http://patchwork.ozlabs.org/api/people/92191/","name":"Bartosz Golaszewski","email":"brgl@kernel.org"},"content":"On Fri, Apr 24, 2026 at 11:03 AM Bartosz Golaszewski <brgl@kernel.org> wrote:\n>\n> On Fri, Apr 24, 2026 at 12:21 AM Vincent Fazio <vfazio@gmail.com> wrote:\n> >\n> > Single-phase initialization has been classified as legacy within CPython\n> > documentation [0] with multi-phase being its successor [1].\n> >\n> > As such, switch to the new methodology.\n> >\n> > [0]: https://docs.python.org/3/c-api/extension-modules.html#legacy-single-phase-initialization\n> > [1]: https://docs.python.org/3/c-api/extension-modules.html#multi-phase-initialization\n> >\n> > Signed-off-by: Vincent Fazio <vfazio@gmail.com>\n> > ---\n> >  bindings/python/tests/system/ext.c | 7 ++++++-\n> >  1 file changed, 6 insertions(+), 1 deletion(-)\n> >\n> > diff --git a/bindings/python/tests/system/ext.c b/bindings/python/tests/system/ext.c\n> > index c982fa6..800648e 100644\n> > --- a/bindings/python/tests/system/ext.c\n> > +++ b/bindings/python/tests/system/ext.c\n> > @@ -67,13 +67,18 @@ static PyMethodDef module_methods[] = {\n> >         { }\n> >  };\n> >\n> > +static struct PyModuleDef_Slot module_slots[] = {\n> > +       {0, NULL},\n> > +};\n>\n> Just an inconsistency I noticed while I was about to pick it up, why\n> do we have a NULL sentinel in the gpiod extension but not here?\n>\n\nDocs are pretty clear on this so let me change that when applying.\n\nhttps://docs.python.org/3/c-api/module.html#c.PyModuleDef.m_slots\n\nBart\n\n> Bart\n>\n> > +\n> >  static PyModuleDef module_def = {\n> >         PyModuleDef_HEAD_INIT,\n> >         .m_name = \"system._ext\",\n> >         .m_methods = module_methods,\n> > +       .m_slots = module_slots,\n> >  };\n> >\n> >  PyMODINIT_FUNC PyInit__ext(void)\n> >  {\n> > -       return PyModule_Create(&module_def);\n> > +       return PyModuleDef_Init(&module_def);\n> >  }\n> > --\n> > 2.43.0\n> >","headers":{"Return-Path":"\n <linux-gpio+bounces-35471-incoming=patchwork.ozlabs.org@vger.kernel.org>","X-Original-To":["incoming@patchwork.ozlabs.org","linux-gpio@vger.kernel.org"],"Delivered-To":"patchwork-incoming@legolas.ozlabs.org","Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256\n header.s=k20201202 header.b=IQtrhYRf;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2600:3c09:e001:a7::12fc:5321; helo=sto.lore.kernel.org;\n envelope-from=linux-gpio+bounces-35471-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)","smtp.subspace.kernel.org;\n\tdkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org\n header.b=\"IQtrhYRf\"","smtp.subspace.kernel.org;\n arc=none smtp.client-ip=10.30.226.201"],"Received":["from sto.lore.kernel.org (sto.lore.kernel.org\n [IPv6:2600:3c09:e001:a7::12fc:5321])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g26WP16JXz1yD5\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 24 Apr 2026 19:05:53 +1000 (AEST)","from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby sto.lore.kernel.org (Postfix) with ESMTP id 0C7373002B17\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 24 Apr 2026 09:05:50 +0000 (UTC)","from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id EA069221FCD;\n\tFri, 24 Apr 2026 09:05:48 +0000 (UTC)","from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org\n [10.30.226.201])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby smtp.subspace.kernel.org (Postfix) with ESMTPS id AD5693246FE\n\tfor <linux-gpio@vger.kernel.org>; Fri, 24 Apr 2026 09:05:48 +0000 (UTC)","by smtp.kernel.org (Postfix) with ESMTPSA id 658D5C2BCB4\n\tfor <linux-gpio@vger.kernel.org>; Fri, 24 Apr 2026 09:05:48 +0000 (UTC)","by mail-lf1-f43.google.com with SMTP id\n 2adb3069b0e04-59e4989dacdso8342889e87.1\n        for <linux-gpio@vger.kernel.org>;\n Fri, 24 Apr 2026 02:05:48 -0700 (PDT)"],"ARC-Seal":"i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1777021548; cv=none;\n b=L6nHMMxPYKpRZA+dS0Y9XxtqwTZcc7jf+zPBTU34tZXlCLCS/jxLevd+tLZJoK59634USwexS/GJwbnF0+BELMipPPOC9z2aRhtTr9+CDeFGnh0TMz2E2bictaErMBYwLPEVetaC42Ir5WaiYqqncP/Jf04al959ecoCSFh54p4=","ARC-Message-Signature":"i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1777021548; c=relaxed/simple;\n\tbh=Iq+cio896+7e1etOLjIcq/+70W1faxu636zas+Anh40=;\n\th=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject:\n\t To:Cc:Content-Type;\n b=E5QVHMvrI2ZOv41s5upG6lbpwQvkc6E1MOKFV2/zEXhy9sLgjarN6B/7Q/W60e+g+/vauhykwcwkwZACRJzikhjYPqruaKcOV1In6v9dYxI00MNfsNrBoUKSMLfw03id+Xcx03jdwh0HjUR9dGBkWdc7rcjm9mNFet3RLEmH2wI=","ARC-Authentication-Results":"i=1; smtp.subspace.kernel.org;\n dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org\n header.b=IQtrhYRf; arc=none smtp.client-ip=10.30.226.201","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org;\n\ts=k20201202; t=1777021548;\n\tbh=Iq+cio896+7e1etOLjIcq/+70W1faxu636zas+Anh40=;\n\th=References:In-Reply-To:From:Date:Subject:To:Cc:From;\n\tb=IQtrhYRfbHGh11KX0aLiBXVCkyE3gwgiBLX81Y3Bfor2fzEQ2bxO99NVJg9p6fdDu\n\t qauUaW12USfAK6BQuizrRjDAK1aK8qgZfX5z2dMU6q8GzX1kqf37Zp6zzEKKjmqFam\n\t bUlTHH7P67jfzbHPZLqWsTFJGZ9sjOw9VPDbuU6WCTR2nVGkZt7gbBaRaxpru/fZBh\n\t 63p+ifdaAuExkbh60mT7l+W9obP+GX/rPVN7Z6JPmrBNFwqvO9sGudDYsqGfDPV0kh\n\t Qrq/g2w3RJYNOlXvUOHiZKfGNOc6YP2qxkWl9A5HxO8deOpuH3b+JRqLmuL1GFeSqn\n\t DQR5NNi2la8iQ==","X-Gm-Message-State":"AOJu0YwyDv75ihWv9juJ+R/mfY4iZSonwmIJcvyj2beYUdZt7K3/CwI+\n\tSIoHlq3c/0qyXDLF1tuGibziULceSV5EFU4F34Nbc+K4OtqswS/WOm4D3sFrM38jCQcxrQnQF8M\n\tiw4f1BaCQSThoJEzyg+BboLMv57lO+EwbT7h6EfEpGA==","X-Received":"by 2002:a05:6512:12c6:b0:5a4:12a4:856f with SMTP id\n 2adb3069b0e04-5a4172e7bb4mr8618497e87.30.1777021547080; Fri, 24 Apr 2026\n 02:05:47 -0700 (PDT)","Precedence":"bulk","X-Mailing-List":"linux-gpio@vger.kernel.org","List-Id":"<linux-gpio.vger.kernel.org>","List-Subscribe":"<mailto:linux-gpio+subscribe@vger.kernel.org>","List-Unsubscribe":"<mailto:linux-gpio+unsubscribe@vger.kernel.org>","MIME-Version":"1.0","References":"<20260423222125.29097-1-vfazio@gmail.com>\n <20260423222125.29097-8-vfazio@gmail.com>\n <CAMRc=MdrisR4_Wmd+1S3JGHMPkiZTvC1ucNpGq_j5N1pD0xdHQ@mail.gmail.com>","In-Reply-To":"\n <CAMRc=MdrisR4_Wmd+1S3JGHMPkiZTvC1ucNpGq_j5N1pD0xdHQ@mail.gmail.com>","From":"Bartosz Golaszewski <brgl@kernel.org>","Date":"Fri, 24 Apr 2026 11:05:34 +0200","X-Gmail-Original-Message-ID":"\n <CAMRc=McTrz+-peiqCovR9xo3keNGYfh4AHuE-LhxJ93E8scZZQ@mail.gmail.com>","X-Gm-Features":"AQROBzCO9iJiXHOGjlMNgUAecZpWUVW1AVnicG6koSH6Ma_zCV2OzkvL3bQhKwE","Message-ID":"\n <CAMRc=McTrz+-peiqCovR9xo3keNGYfh4AHuE-LhxJ93E8scZZQ@mail.gmail.com>","Subject":"Re: [libgpiod][PATCH v2 7/8] bindings: python: tests: migrate the\n system module to multi-phase init","To":"Vincent Fazio <vfazio@gmail.com>","Cc":"linux-gpio@vger.kernel.org","Content-Type":"text/plain; charset=\"UTF-8\"","Content-Transfer-Encoding":"quoted-printable"}},{"id":3681900,"web_url":"http://patchwork.ozlabs.org/comment/3681900/","msgid":"<CAMRc=MdsL8rYt2MDjznFGNF7FPDNfzcoaYB+UAjUgwOm=SJVWQ@mail.gmail.com>","list_archive_url":null,"date":"2026-04-24T09:07:27","subject":"Re: [libgpiod][PATCH v2 7/8] bindings: python: tests: migrate the\n system module to multi-phase init","submitter":{"id":92191,"url":"http://patchwork.ozlabs.org/api/people/92191/","name":"Bartosz Golaszewski","email":"brgl@kernel.org"},"content":"On Fri, Apr 24, 2026 at 11:05 AM Bartosz Golaszewski <brgl@kernel.org> wrote:\n>\n> On Fri, Apr 24, 2026 at 11:03 AM Bartosz Golaszewski <brgl@kernel.org> wrote:\n> >\n> > On Fri, Apr 24, 2026 at 12:21 AM Vincent Fazio <vfazio@gmail.com> wrote:\n> > >\n> > > Single-phase initialization has been classified as legacy within CPython\n> > > documentation [0] with multi-phase being its successor [1].\n> > >\n> > > As such, switch to the new methodology.\n> > >\n> > > [0]: https://docs.python.org/3/c-api/extension-modules.html#legacy-single-phase-initialization\n> > > [1]: https://docs.python.org/3/c-api/extension-modules.html#multi-phase-initialization\n> > >\n> > > Signed-off-by: Vincent Fazio <vfazio@gmail.com>\n> > > ---\n> > >  bindings/python/tests/system/ext.c | 7 ++++++-\n> > >  1 file changed, 6 insertions(+), 1 deletion(-)\n> > >\n> > > diff --git a/bindings/python/tests/system/ext.c b/bindings/python/tests/system/ext.c\n> > > index c982fa6..800648e 100644\n> > > --- a/bindings/python/tests/system/ext.c\n> > > +++ b/bindings/python/tests/system/ext.c\n> > > @@ -67,13 +67,18 @@ static PyMethodDef module_methods[] = {\n> > >         { }\n> > >  };\n> > >\n> > > +static struct PyModuleDef_Slot module_slots[] = {\n> > > +       {0, NULL},\n> > > +};\n> >\n> > Just an inconsistency I noticed while I was about to pick it up, why\n> > do we have a NULL sentinel in the gpiod extension but not here?\n> >\n>\n> Docs are pretty clear on this so let me change that when applying.\n>\n> https://docs.python.org/3/c-api/module.html#c.PyModuleDef.m_slots\n>\n> Bart\n\nSorry for the noise and yes, I am sleep deprived. My brain\nmisinterpreted the 0, NULL for an actual slot entry. Nevermind these\nmessages.\n\nBart\n\n>\n> > Bart\n> >\n> > > +\n> > >  static PyModuleDef module_def = {\n> > >         PyModuleDef_HEAD_INIT,\n> > >         .m_name = \"system._ext\",\n> > >         .m_methods = module_methods,\n> > > +       .m_slots = module_slots,\n> > >  };\n> > >\n> > >  PyMODINIT_FUNC PyInit__ext(void)\n> > >  {\n> > > -       return PyModule_Create(&module_def);\n> > > +       return PyModuleDef_Init(&module_def);\n> > >  }\n> > > --\n> > > 2.43.0\n> > >","headers":{"Return-Path":"\n <linux-gpio+bounces-35472-incoming=patchwork.ozlabs.org@vger.kernel.org>","X-Original-To":["incoming@patchwork.ozlabs.org","linux-gpio@vger.kernel.org"],"Delivered-To":"patchwork-incoming@legolas.ozlabs.org","Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256\n header.s=k20201202 header.b=FHQd4kih;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=172.234.253.10; helo=sea.lore.kernel.org;\n envelope-from=linux-gpio+bounces-35472-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)","smtp.subspace.kernel.org;\n\tdkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org\n header.b=\"FHQd4kih\"","smtp.subspace.kernel.org;\n arc=none smtp.client-ip=10.30.226.201"],"Received":["from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g26cS5yqXz1xvV\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 24 Apr 2026 19:10:16 +1000 (AEST)","from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby sea.lore.kernel.org (Postfix) with ESMTP id B366A30191BB\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 24 Apr 2026 09:07:42 +0000 (UTC)","from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 36A9935F17D;\n\tFri, 24 Apr 2026 09:07:42 +0000 (UTC)","from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org\n [10.30.226.201])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby smtp.subspace.kernel.org (Postfix) with ESMTPS id EE20F1B87C9\n\tfor <linux-gpio@vger.kernel.org>; Fri, 24 Apr 2026 09:07:41 +0000 (UTC)","by smtp.kernel.org (Postfix) with ESMTPSA id A3C7BC2BCB4\n\tfor <linux-gpio@vger.kernel.org>; Fri, 24 Apr 2026 09:07:41 +0000 (UTC)","by mail-lf1-f51.google.com with SMTP id\n 2adb3069b0e04-5a40d02b58bso6644462e87.3\n        for <linux-gpio@vger.kernel.org>;\n Fri, 24 Apr 2026 02:07:41 -0700 (PDT)"],"ARC-Seal":"i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1777021662; cv=none;\n b=rGnW9D96jtxrr6C5QfGXCmRQ7D+dxK860q3jZMGow7U80ct77jG7aMOWZBLJpOMrsy7N18lQIuncWX7U/C8EWqzuVmIu3D9SKYUuiI1jwbhKAttuD/rEilBbckn5h+VaLpPY4Luti3J0Tqt4xcu/X8W5L1z9OYX0wy2ry5dQ/lU=","ARC-Message-Signature":"i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1777021662; c=relaxed/simple;\n\tbh=jW59RVPOjY/12yrl5MTF9SavbiFEuMf28BeizEMFp64=;\n\th=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject:\n\t To:Cc:Content-Type;\n b=EnMxqkqbKmMABtxj/U6nyfgkUD05QR/k0N7R2wYm6Gp+iEpst1kh5OZ3SWq6RSEsYETOakAwSBkwfafnip4NED05//3ItBoJgPJFKZxHcRu7ewan9vdqBnApfKw/ibt2SGUI/EQwqJGrYZgij2mG9AYEJWfjeX8kKbexcQ6NVpc=","ARC-Authentication-Results":"i=1; smtp.subspace.kernel.org;\n dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org\n header.b=FHQd4kih; arc=none smtp.client-ip=10.30.226.201","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org;\n\ts=k20201202; t=1777021661;\n\tbh=jW59RVPOjY/12yrl5MTF9SavbiFEuMf28BeizEMFp64=;\n\th=References:In-Reply-To:From:Date:Subject:To:Cc:From;\n\tb=FHQd4kiheypVdWqgcjFiNmuaEhy+jbh72dvirC4ctERL+emEbNf4etyPV0/ZTkhDJ\n\t 4G0m9FU8RTh1ksUPs/M4fgv3ae6TWTYg7hn1ENK1AlRybNxgmw5EOxara0xS4r/T3k\n\t E2StJSs0cPeH0B9aZp/PxXkp0LI+gR2qS+2oX0Go8ixPKUewkIYGH3AEqkHCQaquFa\n\t uwOAXKbIEx+cThJjvBOa5djGCjtQ9hGanSf+/i/DdgnS0rx15pNGOEqdn4hW6+pgDe\n\t FkZB7eT7IvgPWXMcSIvZ6JsU7LYxtl6rS/dewbYgPZEjKZFWQg9Naz6/AVW+faz8R+\n\t QYEJYogWENNAw==","X-Gm-Message-State":"AOJu0YyTb6Cm8ecA7JKhcGSHtS5wWeTUN8ADyKI1dcmrlgdLIB/u6FbZ\n\tvRupqdqqasFwYrC5ia2uXnzNisfiOP/hI3GE6yUXe6SRHmo4DjsdJTgkHwjixSbW6DblLEXSb5f\n\tfS/OLVeoz+EGZT6BM9BRJp8ypVdZR55hIHvUqJBBC7Q==","X-Received":"by 2002:a05:6512:3dab:b0:5a3:d2ef:2f9f with SMTP id\n 2adb3069b0e04-5a4172da1ddmr10502265e87.20.1777021660300; Fri, 24 Apr 2026\n 02:07:40 -0700 (PDT)","Precedence":"bulk","X-Mailing-List":"linux-gpio@vger.kernel.org","List-Id":"<linux-gpio.vger.kernel.org>","List-Subscribe":"<mailto:linux-gpio+subscribe@vger.kernel.org>","List-Unsubscribe":"<mailto:linux-gpio+unsubscribe@vger.kernel.org>","MIME-Version":"1.0","References":"<20260423222125.29097-1-vfazio@gmail.com>\n <20260423222125.29097-8-vfazio@gmail.com>\n <CAMRc=MdrisR4_Wmd+1S3JGHMPkiZTvC1ucNpGq_j5N1pD0xdHQ@mail.gmail.com>\n <CAMRc=McTrz+-peiqCovR9xo3keNGYfh4AHuE-LhxJ93E8scZZQ@mail.gmail.com>","In-Reply-To":"\n <CAMRc=McTrz+-peiqCovR9xo3keNGYfh4AHuE-LhxJ93E8scZZQ@mail.gmail.com>","From":"Bartosz Golaszewski <brgl@kernel.org>","Date":"Fri, 24 Apr 2026 11:07:27 +0200","X-Gmail-Original-Message-ID":"\n <CAMRc=MdsL8rYt2MDjznFGNF7FPDNfzcoaYB+UAjUgwOm=SJVWQ@mail.gmail.com>","X-Gm-Features":"AQROBzAF1JjgjrVk3yyrs0KrzxqyAkExkn5qEapPq-NLJadzEOsw-PPLvdVWWiI","Message-ID":"\n <CAMRc=MdsL8rYt2MDjznFGNF7FPDNfzcoaYB+UAjUgwOm=SJVWQ@mail.gmail.com>","Subject":"Re: [libgpiod][PATCH v2 7/8] bindings: python: tests: migrate the\n system module to multi-phase init","To":"Vincent Fazio <vfazio@gmail.com>","Cc":"linux-gpio@vger.kernel.org","Content-Type":"text/plain; charset=\"UTF-8\"","Content-Transfer-Encoding":"quoted-printable"}}]