get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2225986,
    "url": "http://patchwork.ozlabs.org/api/patches/2225986/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-gpio/patch/20260422012041.39933-5-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": "<20260422012041.39933-5-vfazio@gmail.com>",
    "list_archive_url": null,
    "date": "2026-04-22T01:20:36",
    "name": "[libgpiod,4/9] 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/20260422012041.39933-5-vfazio@gmail.com/mbox/",
    "series": [
        {
            "id": 500906,
            "url": "http://patchwork.ozlabs.org/api/series/500906/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linux-gpio/list/?series=500906",
            "date": "2026-04-22T01:20:32",
            "name": "bindings: python: modernize C extensions",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/500906/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2225986/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2225986/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "\n <linux-gpio+bounces-35325-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=IuO37YcA;\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-35325-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=\"IuO37YcA\"",
            "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=209.85.210.49",
            "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 4g0hJk1M9fz1yD5\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 22 Apr 2026 11:21: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 0B4EA303A8E3\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 22 Apr 2026 01:21:03 +0000 (UTC)",
            "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id D8938282F1C;\n\tWed, 22 Apr 2026 01:21:01 +0000 (UTC)",
            "from mail-ot1-f49.google.com (mail-ot1-f49.google.com\n [209.85.210.49])\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 615471624C5\n\tfor <linux-gpio@vger.kernel.org>; Wed, 22 Apr 2026 01:21:00 +0000 (UTC)",
            "by mail-ot1-f49.google.com with SMTP id\n 46e09a7af769-7d4be94eeacso4914297a34.2\n        for <linux-gpio@vger.kernel.org>;\n Tue, 21 Apr 2026 18:21:00 -0700 (PDT)",
            "from Zephyrus.localdomain ([131.93.209.211])\n        by smtp.gmail.com with ESMTPSA id\n 006d021491bc7-69464eeee56sm9876036eaf.8.2026.04.21.18.20.58\n        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n        Tue, 21 Apr 2026 18:20:58 -0700 (PDT)"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1776820861; cv=none;\n b=QCCjNqBAcIszGN46F4rGAWZFUlmWMVcqBNbcSr4n8+uvJqjE+Vp1agfgFC1bFwghCqMFenPf9gSRBQ8NFLSnmtPCE4b9gpFDbTgH/cncBp5oVM3ZWstDCM2tiuXZlTBKjmiGjrEsoerGnx0uoFgo9aw7/SYmur2YQ69klKS8840=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1776820861; 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=rYYExgNeAMTrTrwb+vd5XXB6cJgDPNkwpOl5+5Kkq6lR6Q+Um4mV4jeBsqjx1vv6ovs72rTMc/6sSHceZ1ZPNnTw3BYsj4ZPMOd9cDBaNNbZvpDx49UJzssrpILt9wl67nAJf3+AtYLeAtgTjzHVPN2H9hRAjLCZ/d6oSU8RFHw=",
        "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=IuO37YcA; arc=none smtp.client-ip=209.85.210.49",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=gmail.com; s=20251104; t=1776820859; x=1777425659;\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=IuO37YcAe1ywilyDVbQ6oHX+uUv1X67Ao+YLt5hyoq5HUVVNm2etSrqvw8pDWHSAVQ\n         f3vs288uHoFW8T0h0IWDY+poeniILBLfsIriw5npN2OW35GW/vKp+77TGxyjuwkukbtb\n         oAaoOMlJ0b0yzmtPRKBZzC7LO11j4t/EujtpRQ+Fv79+NC25UlmzU1aaRewqddwpBUo9\n         B4xwmBlXKuRZnGR4l7Nrmwxr9aaLSI979jFy37lLsiqr7jEttoTZx2gYPQmAvz3/2iIB\n         u4kyavFc02dg9UenYvM5CeeOjiIs/so+lIpMsYIx1L6KRA18wsOWp+wpa1gho6y80uc4\n         Sqmw==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=1e100.net; s=20251104; t=1776820859; x=1777425659;\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=esNinT4UshW4DObje/mRJW2uG7Wpgd4GLhUkbMIFtEzWe/ztyRAEa+Ju6xulnl+ff3\n         a4yTXzOrNoQWbKhSGKfB3bWIZqKCYS7LJMUoWix36iIz+4ZeBnoz30iMHeUnoYcqNGu0\n         YiI9ifLbgFu0B+mbmCTBM92I3N+s5PUcYg1kWs8XvAMJgb4T7RFH4iXoxej1CbK6T/6t\n         1Saf08TD0TgStaal4SUmLxAh9urQZ/xcac8Mf3raNSRFQCEDxd3vTH4Wwoc7d2MMg8gj\n         C5iXJQDNgAC3Ax7lmq6XXd+KIVciJ6i0TSOjVwZxGLsMWaqj4ziwMPJuSC+HsC2iVMnY\n         ltHA==",
        "X-Gm-Message-State": "AOJu0YwHoLHturpY0IxVTYTHcc/caIY0sudIJqMiP9DGTNb+2MXTSurU\n\tBG3FLsOFX65k3sKzTMicqivW8zfbxjwv4uBtcDC14yIc+qQEGzJqDKXNyxRSlw==",
        "X-Gm-Gg": "AeBDietJhqgk14x9oppfdR65wKf7EXBXiiQCdAJ3JOnfZj5bTmAEi8+GR++YF8dMhta\n\tBcbCOXeTFXnuKHE1BxlRjCcBzrV/eejo97g6zWbpEYoiE2qWUKEDjRYAHcMAl7exBg24yC+RW0k\n\twaXZrqZ5bcbbFROWwkoZnQHjizlJUCisprzP5ssEgBZiUaInfVLhQZW90LkQuJ1sTu6mBiUUW2E\n\tmyW6KED+sFvn31Mljt7B9ljwdXArOt1xAcjnfLEOah1reoTJgVjVtpu/IefFpSaB6vr39ixLMRL\n\tP4Li2/jgFgfvV/CM8PiMXS9KsM7uHGW1sLd/sSbusDlEJ5D/L0ZuFKWQGnDB0GgcFzHhzOjLg4c\n\tQRjOT+JxaUUNdALnKKQ8gGeGi5VKMXL+QMUusIXCNJN3oBlxGesGnXNDrwSJL2cXBnMfMOW/8uq\n\tgC6kCYIqyh+8mNL+c9TeIMbUXJpzOQhOH2g1UG0sf7Khpb+2HfPHxGtBdRfVhtw5XKcK+1/gI/",
        "X-Received": "by 2002:a05:6820:6ae3:b0:694:a362:4b8f with SMTP id\n 006d021491bc7-694a3624d01mr817731eaf.6.1776820859138;\n        Tue, 21 Apr 2026 18:20:59 -0700 (PDT)",
        "From": "Vincent Fazio <vfazio@gmail.com>",
        "To": "linux-gpio@vger.kernel.org",
        "Cc": "Vincent Fazio <vfazio@gmail.com>",
        "Subject": "[libgpiod][PATCH 4/9] bindings: python: simplify disallowing\n _ext.Request from being created",
        "Date": "Tue, 21 Apr 2026 20:20:36 -0500",
        "Message-ID": "<20260422012041.39933-5-vfazio@gmail.com>",
        "X-Mailer": "git-send-email 2.43.0",
        "In-Reply-To": "<20260422012041.39933-1-vfazio@gmail.com>",
        "References": "<20260422012041.39933-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",
        "4/9"
    ]
}