Skip to content

Move result tuple implementation from core.py template to erfa_generator#257

Merged
avalentino merged 1 commit into
liberfa:mainfrom
eerovaher:result-tuple
May 27, 2026
Merged

Move result tuple implementation from core.py template to erfa_generator#257
avalentino merged 1 commit into
liberfa:mainfrom
eerovaher:result-tuple

Conversation

@eerovaher

@eerovaher eerovaher commented May 27, 2026

Copy link
Copy Markdown
Contributor

Since #176 if a Python wrapper returns a tuple then its elements can be accessed as named attributes. So far the implementation of that feature has been in the core.py template, but this PR moves a lot of the implementation to the new ResultTuple class in erfa_generator, where it can be simplified.

This PR makes no changes to the core.py file erfa_generator creates.

Since 048f6ea (Use NamedTuple for
functions with multiple outputs) if a Python wrapper returns a tuple
then its elements can be accessed as named attributes. So far the
implementation of that feature has been in the `core.py` template, but
now the implementation is in `erfa_generator`, where it was possible to
simplify it.
@avalentino avalentino merged commit 642a6a1 into liberfa:main May 27, 2026
28 checks passed
@eerovaher eerovaher deleted the result-tuple branch May 27, 2026 16:08
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