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

Remove work-arounds for setting cell_contents #1201

Merged
merged 3 commits into from
Nov 11, 2023

Conversation

eltoder
Copy link
Contributor

@eltoder eltoder commented Nov 10, 2023

Summary

Simple assignment to cell_contents works starting from Python 3.7[1]. This is also the minimum supported version of Python according to pyproject.toml. It follows that we don't need complex work-arounds that were needed in the past.

Also tested on pypy 3.8.

[1] https://bugs.python.org/issue30486

eltoder and others added 2 commits November 10, 2023 09:33
Simple assignment to cell_contents works starting from Python 3.7[1].
This is also the minimum supported version of Python according to
pyproject.toml. It follows that we don't need complex work-arounds that
were needed in the past.

Also tested on pypy 3.8.

[1] https://bugs.python.org/issue30486
@eltoder
Copy link
Contributor Author

eltoder commented Nov 10, 2023

Test failures appear unrelated to my changes. I opened #1202 to try to fix them.

Copy link
Member

@hynek hynek left a comment

Choose a reason for hiding this comment

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

omg we're getting rid of some of the gnarliest code!? thank you so much! I wonder why we thought the other code is 3.8+

@hynek hynek added this pull request to the merge queue Nov 11, 2023
Merged via the queue into python-attrs:main with commit 079954e Nov 11, 2023
20 checks passed
@eltoder eltoder deleted the feature/simple-set-cell-contents branch November 11, 2023 14:37
@eltoder
Copy link
Contributor Author

eltoder commented Nov 11, 2023

@hynek Possibly someone noticed the change mentioned on this page: https://docs.python.org/3.8/whatsnew/changelog.html and assumed it was new in 3.8. However, this is a cumulative changelog, and the change is under "Python 3.7.0 alpha 1" :-)

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