[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] tools/python: change 's#' size type for Python >= 3.10


  • To: Marek Marczykowski-Górecki <marmarek@xxxxxxxxxxxxxxxxxxxxxx>
  • From: Anthony PERARD <anthony.perard@xxxxxxxxxx>
  • Date: Thu, 26 Jan 2023 14:40:39 +0000
  • Authentication-results: esa1.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none
  • Cc: <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Wei Liu <wl@xxxxxxx>
  • Delivery-date: Thu, 26 Jan 2023 14:41:04 +0000
  • Ironport-data: A9a23:IW1lvKsNOK541jr2r129nIPcXufnVGpeMUV32f8akzHdYApBsoF/q tZmKW6PPKmNNGSjKdwgOo2+9EwOv5PQm4RrSwU/+y4xRi0Q+JbJXdiXEBz9bniYRiHhoOCLz O1FM4Wdc5pkJpP4jk3wWlQ0hSAkjclkfpKlVKiffHg0HVU/IMsYoUoLs/YjhYJ1isSODQqIu Nfjy+XSI1bg0DNvWo4uw/vrRChH4bKj51v0gnRkPaoQ5AaEySFOZH4iDfrZw0XQE9E88tGSH 44v/JnhlkvF8hEkDM+Sk7qTWiXmlZaLYGBiIlIPM0STqkAqSh4ai87XB9JFAatjsB2bnsgZ9 Tl4ncfYpTHFnEH7sL91vxFwS0mSNEDdkVPNCSDXXce7lyUqf5ZwqhnH4Y5f0YAwo45K7W9yG fMwdgszbDK+2LuMxJGJa8dznc09L+v0M9ZK0p1g5Wmx4fcORJnCR+PB5MNC3Sd2jcdLdRrcT 5NHM3w1Nk2GOkARfA5NU/rSn8/x7pX7WzRetFKSo7tx+2XJxRZ9+LPsLMDUapqBQsA9ckOw9 z6ZoTmnXkFy2Nq31BfV70OutOX0vi7nccFJMZmo3+JaqQjGroAUIEJPDgbqyRWjsWa7UshaI lYZ+QIvq7Yz702hStThXxy+r2WAtxRaUN1Ve8Uq5QfIxqfK7gKxAmkfUiUHeNEgrNUxRzEhy hmOhdyBLSNrmK2YT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7hulptJUsgKBJgNQ9spcI+SMCjgUBjMOGWdLRDOE7wGAWvEr9rN7LA89IiRCeo1JM9Zov v8eWIdkVR3V1PlCMWI0pEO2AvKWn+BUTPkzdwbz4Rlu5XnLYCbbRGreRQLqY+Nsv8fCsrUV7 KYI5RNGcLuKmPoBMJgwxD+YZ9PMnMTOfdl5+rTY2j+/f4jF7ea7dAzMcyjfIYFKAxUA18X10 FzBgQaJ617nzeWszHD8VShBU8EvCTEjNxN+ePhjpkuIbM2R/hxWtJ8syX42ii6E0wCjkV/Rj oPHFrGqNL4mYDkxxeM042eUiAtRnq8F93bIjp3TEkxQhLJmJ44yqeiUHEXxneBOxl5VtjbFA 5Eqz1MiOGKE6A=
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On Thu, Jan 26, 2023 at 06:13:10AM +0100, Marek Marczykowski-Górecki wrote:
> Python < 3.10 by default uses 'int' type for data+size string types
> (s#), unless PY_SSIZE_T_CLEAN is defined - in which case it uses
> Py_ssize_t. The former behavior was removed in Python 3.10 and now it's
> required to define PY_SSIZE_T_CLEAN before including Python.h, and using
> Py_ssize_t for the length argument. The PY_SSIZE_T_CLEAN behavior is
> supported since Python 2.5.
> 
> Adjust bindings accordingly.
> 
> Signed-off-by: Marek Marczykowski-Górecki <marmarek@xxxxxxxxxxxxxxxxxxxxxx>

Reviewed-by: Anthony PERARD <anthony.perard@xxxxxxxxxx>

Thanks,

-- 
Anthony PERARD



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.