Skip to content
This repository was archived by the owner on Apr 3, 2026. It is now read-only.

Commit af9cd1b

Browse files
committed
Add note on parseTupleAndKeywords
1 parent 0485fda commit af9cd1b

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

py.zig

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,9 @@ pub inline fn xsetref(dst: *?*Object, src: ?*Object) void {
313313
dst.* = src;
314314
}
315315

316-
pub inline fn parseTupleAndKeywords(args: *Tuple, kwargs: ?*Dict, format: [:0]const u8, keywords: [*c]const [*c]u8, results: anytype) !void {
316+
// Warning the format "p" cannot return a zig-bool it must be a c_int.
317+
// TODO: Rewrite this in zig
318+
pub inline fn parseTupleAndKeywords(args: *Tuple, kwargs: ?*Dict, comptime format: [:0]const u8, keywords: [*c]const [*c]u8, results: anytype) !void {
317319
if (@call(.auto, c.PyArg_ParseTupleAndKeywords, .{
318320
@as([*c]c.PyObject, @ptrCast(args)),
319321
@as([*c]c.PyObject, @ptrCast(kwargs)),

0 commit comments

Comments
 (0)