Skip to content

allow passing arguments to native super type constructor#6215

Draft
Icxolu wants to merge 1 commit into
PyO3:mainfrom
Icxolu:pysupernew
Draft

allow passing arguments to native super type constructor#6215
Icxolu wants to merge 1 commit into
PyO3:mainfrom
Icxolu:pysupernew

Conversation

@Icxolu

@Icxolu Icxolu commented Jul 20, 2026

Copy link
Copy Markdown
Member

This adds the ability to pass custom arguments to the native super type constructor (tp_new).
Most of the discussion around this is in #5741. This tries to add support with minimal changes needed.

I'm leaving this in draft for now, as there still needs to be a some more documentation if we want to land this, but I wanted to get some eyes on and collect feedback on the approach.

@codspeed-hq

codspeed-hq Bot commented Jul 20, 2026

Copy link
Copy Markdown

Merging this PR will degrade performance by 24.72%

❌ 1 regressed benchmark
✅ 139 untouched benchmarks

Warning

Please fix the performance issues or acknowledge them on CodSpeed.

Performance Changes

Benchmark BASE HEAD Efficiency
into_u128_max 1.5 µs 2 µs -24.72%

Tip

Investigate this regression by commenting @codspeedbot fix this regression on this PR, or directly use the CodSpeed MCP with your agent.


Comparing Icxolu:pysupernew (d06c0b6) with main (d89d17a)

Open in CodSpeed

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