-
-
Couldn't load subscription status.
- Fork 18
Drop subclassing support #149
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
Conversation
|
I will measure the (hopefully positive) performance impact tomorrow :) |
It is known to be Vector now that subclassing isn't supported.
test_vector2 doesn't make sense as a prefix anymore
Generated with:
$ git zmv 'tests/test_vector2_(*).py' 'tests/test_$1.py'
$ sed -i 's/def test_vector2_/def test_/g' tests/*.py
|
Is there a reason to not just rename |
|
@nbraud |
|
@astronouth7303 I have no particular opinion one way or another, I didn't particularly want to add extra changes, but I can easily do that. |
|
@astronouth7303 Done. |
|
bors r+ |
149: Drop subclassing support r=astronouth7303 a=nbraud - [x] Document that subclassing isn't supported. - [x] Drop the subclassing testsuite. - [x] Drop the subclassing support. - [x] Rename `Vector2` to `Vector`. Avoid breaking backwards-compatibility by adding a `Vector2` alias. - [x] Rename `vector2.py` to `vector.py`. Closes #144 (this is an alternative proposal) Co-authored-by: Nicolas Braud-Santoni <nicolas@braud-santoni.eu>
Build succeeded
|
Vector2toVector.Avoid breaking backwards-compatibility by adding a
Vector2alias.vector2.pytovector.py.Closes #144 (this is an alternative proposal)