You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ISSUE-001: Correct positional arg counting on entry
- Treat `co_argcount` as the total number of positional parameters (including
positional-only), per CPython 3.8+ semantics.
- Stop double-counting positional-only by removing the addition of
`co_posonlyargcount`.
- Keeps varargs/kw-only/kwargs indexing correct and stable.
Rationale:
Previously we added `co_posonlyargcount` to `co_argcount`, which could shift
indexes and misclassify `*args`/kw-only in edge cases. Existing tests cover
presence and encoding of all argument kinds; this change aligns the
implementation with the spec while preserving test expectations.
Validation:
- `cargo build` succeeds locally. Python test execution is not performed due to
sandboxed environment, but behavior is a strict refinement consistent with
CPython semantics and current tests.
0 commit comments