Skip to content

Support mod.metafunc() call - #691

Merged
antocuni merged 4 commits into
spylang:mainfrom
paugier:mod-dot-meta_func
Sep 25, 2026
Merged

antocuni merged 4 commits into
spylang:mainfrom
paugier:mod-dot-meta_func

Conversation

@paugier

@paugier paugier commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

SPy fails to call a metafunc like this mymod.foo(5).

Using W_Func.op_METACALL in module.py fixes this issue.

@antocuni antocuni left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.
Should we also do the same for @blue.generic functions?

@paugier

paugier commented Sep 23, 2026

Copy link
Copy Markdown
Contributor Author

I added another failing test for generic functions called as mod.func[i32](...).

module __getattribute__ as a metafunc fixes the test. Is it correct?

@paugier

paugier commented Sep 25, 2026

Copy link
Copy Markdown
Contributor Author

@antocuni it seems to me that it's mergeable.

@antocuni
antocuni merged commit e1a1d8f into spylang:main Sep 25, 2026
7 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.

2 participants