Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FilenameAssocIterator needs __iter__ method, for py3.13.1 #122

Merged
merged 1 commit into from
Dec 31, 2024

Conversation

neilflood
Copy link
Member

Python changes in 3.13.1 now requires strict adherence to the iter protocol, although it used to be looser. Apparently this was not intended, see here for some discussion. However, we should probably adhere to the strict definitions anyway.

I confess I don't fully understand the iterable protocol, but this change now passes all tests with python 3.13.1.

@gillins
Copy link
Member

gillins commented Dec 31, 2024

Wow, so a recent change did this (seems ok in 3.13.0, broken in 3.13.1)? Worrying.

@neilflood
Copy link
Member Author

Yes. At the bottom of that discussion thread they even say they may revert, but I am glad to have fixed it.

Are you happy with what I did? If so, I will just merge it, and leave it until we release.

@gillins
Copy link
Member

gillins commented Dec 31, 2024

Yes, merge - good with me.

@neilflood neilflood merged commit 548bf55 into ubarsc:master Dec 31, 2024
6 checks passed
@neilflood neilflood deleted the py313-iter-requirements branch December 31, 2024 00:38
@gillins
Copy link
Member

gillins commented Dec 31, 2024

Thanks Neil

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