From: "Marek Marczykowski-Górecki" <marmarek@invisiblethingslab.com>
To: Jan Beulich <jbeulich@suse.com>
Cc: Wei Liu <wl@xen.org>, Anthony PERARD <anthony.perard@citrix.com>,
xen-devel@lists.xenproject.org
Subject: Re: [PATCH] tools/python: change 's#' size type for Python >= 3.10
Date: Thu, 26 Jan 2023 13:09:18 +0100 [thread overview]
Message-ID: <Y9Jtbr596V0F5cLm@mail-itl> (raw)
In-Reply-To: <5804fff0-b26e-bcc5-fc76-7e2be09bcd71@suse.com>
[-- Attachment #1: Type: text/plain, Size: 817 bytes --]
On Thu, Jan 26, 2023 at 10:14:54AM +0100, Jan Beulich wrote:
> On 26.01.2023 06:13, Marek Marczykowski-Górecki wrote:
> > @@ -1774,7 +1775,7 @@ static PyObject *pyflask_load(PyObject *self, PyObject *args, PyObject *kwds)
> > {
> > xc_interface *xc_handle;
> > char *policy;
> > - uint32_t len;
> > + Py_ssize_t len;
>
> I find this suspicious - by the name, this is a signed type when an
> unsigned one was used here before (and properly, imo).
It is suspicious indeed, but correct according to the documentation:
https://docs.python.org/3/c-api/arg.html#strings-and-buffers
> Irrespective of the remark of course I'll leave acking (or not) of this
> to people knowing Python better than I do.
>
> Jan
--
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
next prev parent reply other threads:[~2023-01-26 12:09 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-26 5:13 [PATCH] tools/python: change 's#' size type for Python >= 3.10 Marek Marczykowski-Górecki
2023-01-26 9:14 ` Jan Beulich
2023-01-26 12:09 ` Marek Marczykowski-Górecki [this message]
2023-01-26 14:40 ` Anthony PERARD
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Y9Jtbr596V0F5cLm@mail-itl \
--to=marmarek@invisiblethingslab.com \
--cc=anthony.perard@citrix.com \
--cc=jbeulich@suse.com \
--cc=wl@xen.org \
--cc=xen-devel@lists.xenproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.