Skip to content

Fix template.create argument parser signature#407

Merged
mxamin merged 1 commit intomasterfrom
fix-tempate-create-input-args
Apr 11, 2026
Merged

Fix template.create argument parser signature#407
mxamin merged 1 commit intomasterfrom
fix-tempate-create-input-args

Conversation

@mxamin
Copy link
Copy Markdown
Collaborator

@mxamin mxamin commented Apr 10, 2026

PyXmlSec_TemplateCreate still used the format string O&O!O!|zzz:create and passed a third optional string argument, even though template.create() only accepts two optional string parameters: id and ns.

Update the parser to use |zz:create and remove the stray extra &id argument so the C binding matches the Python API.

This fixes the runtime failure:

SystemError: more argument specifiers than keyword list entries (remaining format:'z:create')

PyXmlSec_TemplateCreate still used the format string
`O&O!O!|zzz:create` and passed a third optional string argument,
even though `template.create()` only accepts two optional string
parameters: `id` and `ns`.

Update the parser to use `|zz:create` and remove the stray extra
`&id` argument so the C binding matches the Python API.

This fixes the runtime failure:

SystemError: more argument specifiers than keyword list entries
(remaining format:'z:create')
@mxamin mxamin merged commit 73675bb into master Apr 11, 2026
287 of 288 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant