core: improve function call errors #437

Merged
sb10q merged 2 commits from improve-call-errors into master 2024-06-27 14:06:56 +08:00
Collaborator

Fixes #435. Details are documented the issue as well. All issues outlined there are fixed in this PR except for:

func1(23, 45, z = 67, z = 89) # ERROR: Keyword argument repeated: z
# nac3's parser panics when duplicate keywords are found, which I think is appropriate since Python considers this as a SyntaxError. Probably this is not an issue.
Fixes https://git.m-labs.hk/M-Labs/nac3/issues/435. Details are documented the issue as well. All issues outlined there are fixed in this PR except for: ``` func1(23, 45, z = 67, z = 89) # ERROR: Keyword argument repeated: z # nac3's parser panics when duplicate keywords are found, which I think is appropriate since Python considers this as a SyntaxError. Probably this is not an issue. ```
lyken requested review from derppening 2024-06-26 15:58:12 +08:00
derppening approved these changes 2024-06-26 18:35:43 +08:00
sb10q was assigned by derppening 2024-06-26 18:35:50 +08:00
lyken force-pushed improve-call-errors from ae48e2042d to 3958a9ccd8 2024-06-27 10:09:47 +08:00 Compare
lyken added 1 commit 2024-06-27 10:12:21 +08:00
lyken added a new dependency 2024-06-27 13:59:03 +08:00
Owner

nac3's parser panics when duplicate keywords are found, which I think is appropriate since Python considers this as a SyntaxError. Probably this is not an issue.

It is not appropriate but not going to cause problems in ARTIQ since the source is parsed first by CPython before it is passed to nac3.

> nac3's parser panics when duplicate keywords are found, which I think is appropriate since Python considers this as a SyntaxError. Probably this is not an issue. It is not appropriate but not going to cause problems in ARTIQ since the source is parsed first by CPython before it is passed to nac3.
sb10q merged commit b21df53e0d into master 2024-06-27 14:06:56 +08:00
sb10q deleted branch improve-call-errors 2024-06-27 14:06:56 +08:00
Sign in to join this conversation.
No reviewers
No Milestone
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Reference: M-Labs/nac3#437
No description provided.