Repository navigation
Conversation
…2-3) Slash-positional and star-keyword parameters lower into the named-parameter machinery instead of fencing at the signature. Binding enforces CPython rules in _fill_args/_fill_varargs: positional-only parameters refuse keywords, keyword-only parameters refuse positional slots and must be passed by name. **kwargs capture stays fenced (T2-4).
Contributor
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
Deploying pyscriptc with
|
| Latest commit: |
54db3bf
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://926b236c.pyscriptc.pages.dev |
| Branch Preview URL: | https://work-t2-param-forms.pyscriptc.pages.dev |
espetro
force-pushed
the
work/t2-param-forms
branch
from
October 21, 2026 13:55
54db3bf to
c71cce0
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Tier-2 signature-shape normalization:
def f(a, /, b)anddef f(a, *, k, k2=1)now lower instead of fencing with PS1202 at the signature._signaturebuilds params fromposonlyargs + args(defaults still cover the tail) then appendskwonlyargswithkw_defaults; params carry"posonly"/"kwonly"flags.**kwargsstays fenced (T2-4)._fill_args/_fill_varargsenforce CPython binding: positional-only parameters refuse keywords (new PS2003 message), keyword-only parameters refuse positional slots and must be passed by name, otherwise their defaults apply.*argsalready lowered;f(1, *rest, k=…)now bindsktoo.New
tests/test_t2_param_forms.py: 6 oracle-diff cases vs CPython (pos-only, kw-only, defaults, mixed,*args+ kw-only, methodself, /) plus 4 refusal cases.Pins:
test_pyjwt_compatre-pinned 103 → 107 — removing the PS1202 signature fence lets kw-only defs lower further and report deeper, more accurate fences.test_census_selfuntouched; new census: lines 20424 (+36), modules 27, fences 1024 (+1 in_classes), definitions 733, fencedDefinitions 624.Link to Devin session: https://app.devin.ai/sessions/38fde61b38b448c4a57571fa3e18ffd4
Open in Devin Desktop: https://app.devin.ai/desktop/session/38fde61b38b448c4a57571fa3e18ffd4?variant=devin
Requested by: @espetro