get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/2227555/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 2227555,
    "url": "http://patchwork.ozlabs.org/api/patches/2227555/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-gpio/patch/20260423222125.29097-4-vfazio@gmail.com/",
    "project": {
        "id": 42,
        "url": "http://patchwork.ozlabs.org/api/projects/42/?format=api",
        "name": "Linux GPIO development",
        "link_name": "linux-gpio",
        "list_id": "linux-gpio.vger.kernel.org",
        "list_email": "linux-gpio@vger.kernel.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": "",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20260423222125.29097-4-vfazio@gmail.com>",
    "list_archive_url": null,
    "date": "2026-04-23T22:21:20",
    "name": "[libgpiod,v2,3/8] bindings: python: simplify disallowing _ext.Request from being created",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "58ff8c77d15daf6c3d2634b909071c841feb1be3",
    "submitter": {
        "id": 78694,
        "url": "http://patchwork.ozlabs.org/api/people/78694/?format=api",
        "name": "Vincent Fazio",
        "email": "vfazio@gmail.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linux-gpio/patch/20260423222125.29097-4-vfazio@gmail.com/mbox/",
    "series": [
        {
            "id": 501257,
            "url": "http://patchwork.ozlabs.org/api/series/501257/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linux-gpio/list/?series=501257",
            "date": "2026-04-23T22:21:18",
            "name": "bindings: python: modernize C extensions",
            "version": 2,
            "mbox": "http://patchwork.ozlabs.org/series/501257/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2227555/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2227555/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "\n <linux-gpio+bounces-35435-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=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20251104 header.b=ZtwhQVeY;\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-35435-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)",
            "smtp.subspace.kernel.org;\n\tdkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com\n header.b=\"ZtwhQVeY\"",
            "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=209.85.160.50",
            "smtp.subspace.kernel.org;\n dmarc=pass (p=none dis=none) header.from=gmail.com",
            "smtp.subspace.kernel.org;\n spf=pass smtp.mailfrom=gmail.com"
        ],
        "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)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g1rDN4Fnhz1y2d\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 24 Apr 2026 08:21:56 +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 F13F6301CCDA\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 23 Apr 2026 22:21:52 +0000 (UTC)",
            "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id C758E36165E;\n\tThu, 23 Apr 2026 22:21:52 +0000 (UTC)",
            "from mail-oa1-f50.google.com (mail-oa1-f50.google.com\n [209.85.160.50])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))\n\t(No client certificate requested)\n\tby smtp.subspace.kernel.org (Postfix) with ESMTPS id 50AE42EC081\n\tfor <linux-gpio@vger.kernel.org>; Thu, 23 Apr 2026 22:21:51 +0000 (UTC)",
            "by mail-oa1-f50.google.com with SMTP id\n 586e51a60fabf-42fc6923f38so1205388fac.1\n        for <linux-gpio@vger.kernel.org>;\n Thu, 23 Apr 2026 15:21:51 -0700 (PDT)",
            "from Zephyrus.localdomain ([131.93.209.211])\n        by smtp.gmail.com with ESMTPSA id\n 586e51a60fabf-42b930afa63sm17784598fac.5.2026.04.23.15.21.49\n        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n        Thu, 23 Apr 2026 15:21:49 -0700 (PDT)"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1776982912; cv=none;\n b=Yivn4gUM/EZ+2wUgbxmVun/sH0iSyKv6MbVqrau0NCwm8LumrlOPPMMEUGqFFgTewzz28A/qJdtqbzR2PfEAG7ZHpgByW5h4OLOIs2tYfjSDPjd2qRvx1OpMhBHylJh/23J6FmjoGO1PyVXuBfokAhIDME+4OCXBZXls3fGvBvA=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1776982912; c=relaxed/simple;\n\tbh=Rr5fC3OlvLpQPdfWMH+2s/akHuGKMp9V2igyEWO0gQY=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=LtlAFs4n+Q16Fi7m2MGyWQP8MgATS0IC52D4yRTT8olJmyGlWnMDnhIggLXJMdLMN28NS3ap7CpQSlepseA1ck+00mU1aZuBbWnkZ3JSSLvUTjMriQtPiKEM4K6XsEUrsvaBtd6dkNiTCCQ8dTstbn6kLFFx4JZGxQYMtoGkZFM=",
        "ARC-Authentication-Results": "i=1; smtp.subspace.kernel.org;\n dmarc=pass (p=none dis=none) header.from=gmail.com;\n spf=pass smtp.mailfrom=gmail.com;\n dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com\n header.b=ZtwhQVeY; arc=none smtp.client-ip=209.85.160.50",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=gmail.com; s=20251104; t=1776982910; x=1777587710;\n darn=vger.kernel.org;\n        h=content-transfer-encoding:mime-version:references:in-reply-to\n         :message-id:date:subject:cc:to:from:from:to:cc:subject:date\n         :message-id:reply-to;\n        bh=mdya5LKZ9ajOlrGY+kF56RDY9LS4ty8P8nqmFYxr6hU=;\n        b=ZtwhQVeYvWlkisOKjJnDjRwK5vhyepLEiNp0zkJ0WtXnWxSYBPhanzHDWHDt/V+ls+\n         yoV6JYGnWrs8QVL6o4zhZ+Eymwvkz20lkk7ymbAeenY64cmsHAYetYL+Ha4MtYa8rlFv\n         hjhQQJbEzFJaOBr00cDa3JBs/X7Crr3QtnvkHWNBcxE1UzTdt88Rz5dYcuJUYNkdf/IU\n         EQhhLiFQcE05vA10Ebn1dME0+7sOvzpeD7p5W3jJlVKR5XiNs6bYQi3xe0ic3I1stz0x\n         ZqiZ0kH/on4aSWHZWhzcuhov0zoOdEfZBNPNhuomNMoGaqLL4EjLbaX2zxig3x1hIDVs\n         lmHg==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=1e100.net; s=20251104; t=1776982910; x=1777587710;\n        h=content-transfer-encoding:mime-version:references:in-reply-to\n         :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from\n         :to:cc:subject:date:message-id:reply-to;\n        bh=mdya5LKZ9ajOlrGY+kF56RDY9LS4ty8P8nqmFYxr6hU=;\n        b=eLyjS7c/dNiZA3yP5yIER9wN6Sirk4tlZkadQ2W32TJku9CFRZXj3VrAhC9lnHHfy6\n         gQBMtiszZmmRwKRT/8Kv0QskPztX637mMo3LEQETlSz0vcODcYzDigYx0ihMhMpi+WOB\n         9CPASypRvD6MMwCHJVbOPWaekJpMceDI0AptMqUY5UbtfHGOHLIlo9dq/NHQDbMCWzNE\n         lmHZbZ+11TDHgz9nm84BBAiJcrH726fLBYjq7Nls/GdLQaKV788SViF+CBPHcIlGVgoj\n         hJCvAoxCqkb69ljGKKYx5fOCb7iC3gxMt4HzCvj0VXqzRS4MXwxCynXeO8SAde8+ooPP\n         e8rA==",
        "X-Gm-Message-State": "AOJu0YwVFtZ62IZ2diutsddr9vXVs8NyaHqnbMzAVq1m2cc4a7au231G\n\tgWv0e+PZU80RVgKZiSdns6yNtBnljgMOFwvaBtL/xHgYmFT7hXkkk/EgNEkeNw==",
        "X-Gm-Gg": "AeBDievhN6Aq4TBL7oIi7e9Z9M/JjQxHWsxM6DAlJNHD87Op0EzdCMFRTqimP/QuyUg\n\tEyfY2+jQZjMwfuUkDXdIs47o1MPEJALlcx2ovgW0L4yp6A1X4recm7NXOamlj47HKPRGW/gunKF\n\tlpUbCLdykVP80FGxiPZDqEvlemztppO1cyZqd+3+mn0JMPf/d1gz9Z0BNKNW42Kk9gYuYXVFZOW\n\tiBi6QZpJyTW7CzwyicV4NvN84vENIyVDm3lnWqIAfcXBnlpPPQtJbT3cVqYZa1oB9jLDF9gRsxG\n\taAq/pHeKN312z/Hm+uL6Hj/uN80yk4g7YJ/vJi0lXwW1EMbY1+dxIeHJ/Als8gMSzQyJ0PaRx+o\n\tZzia6TRoDxZ8XXf06bCar5KAALWGP8cnegqFWNjCRzi9FW3Cgk8Fi81hwCYdkDYRAqXvlj54SC4\n\tZayQWmNoSIz4FsI6cDUcYBgm0oJx7T2EEtIylGaeqES4Zgm04l2KYPp6dIDEJZ3rTOZ/rib6Wn",
        "X-Received": "by 2002:a05:6870:aa08:b0:41c:af81:2e7f with SMTP id\n 586e51a60fabf-42a99a90d08mr15755425fac.20.1776982909991;\n        Thu, 23 Apr 2026 15:21:49 -0700 (PDT)",
        "From": "Vincent Fazio <vfazio@gmail.com>",
        "To": "linux-gpio@vger.kernel.org",
        "Cc": "brgl@kernel.org,\n\tVincent Fazio <vfazio@gmail.com>",
        "Subject": "[libgpiod][PATCH v2 3/8] bindings: python: simplify disallowing\n _ext.Request from being created",
        "Date": "Thu, 23 Apr 2026 17:21:20 -0500",
        "Message-ID": "<20260423222125.29097-4-vfazio@gmail.com>",
        "X-Mailer": "git-send-email 2.43.0",
        "In-Reply-To": "<20260423222125.29097-1-vfazio@gmail.com>",
        "References": "<20260423222125.29097-1-vfazio@gmail.com>",
        "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",
        "Content-Transfer-Encoding": "8bit"
    },
    "content": "Previously, tp_new and tp_init functions were defined for Request with\nthe tp_init function raising a NotImplementedError to prevent the object\nfrom being initialized (__init__, the stage after __new__).\n\nSimilar results can be achieved by removing the tp_new and tp_init\nfunctions which raise a slightly different error:\n\n  TypeError: cannot create 'gpiod._ext.Request' instances\n\nAs this is an internal only detail, there should be impact to users.\n\nSigned-off-by: Vincent Fazio <vfazio@gmail.com>\n---\n bindings/python/gpiod/ext/request.c | 12 ------------\n 1 file changed, 12 deletions(-)",
    "diff": "diff --git a/bindings/python/gpiod/ext/request.c b/bindings/python/gpiod/ext/request.c\nindex 1e1f65a..9940382 100644\n--- a/bindings/python/gpiod/ext/request.c\n+++ b/bindings/python/gpiod/ext/request.c\n@@ -12,16 +12,6 @@ typedef struct {\n \tstruct gpiod_edge_event_buffer *buffer;\n } request_object;\n \n-static int request_init(PyObject *Py_UNUSED(ignored0),\n-\t\t\tPyObject *Py_UNUSED(ignored1),\n-\t\t\tPyObject *Py_UNUSED(ignored2))\n-{\n-\tPyErr_SetString(PyExc_NotImplementedError,\n-\t\t\t\"_ext.LineRequest cannot be instantiated\");\n-\n-\treturn -1;\n-}\n-\n static void internal_request_release(request_object *self)\n {\n \tif (self->request){\n@@ -390,8 +380,6 @@ PyTypeObject request_type = {\n \t.tp_name = \"gpiod._ext.Request\",\n \t.tp_basicsize = sizeof(request_object),\n \t.tp_flags = Py_TPFLAGS_DEFAULT,\n-\t.tp_new = PyType_GenericNew,\n-\t.tp_init = (initproc)request_init,\n \t.tp_finalize = (destructor)request_finalize,\n \t.tp_dealloc = (destructor)Py_gpiod_dealloc,\n \t.tp_getset = request_getset,\n",
    "prefixes": [
        "libgpiod",
        "v2",
        "3/8"
    ]
}