-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Soft deprecate the textpath module (import from text instead) #23576
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'm 50/50 on this. If anything I think the error is the places than are importing transitively through |
There is also #23565 where the consensus seems to be that this is the correct solution. Somehow, one of them should be... |
Re-reading the conversation here and in #23565 , the consensus seems to be in favor of this path (I'm still a coin flip), so lets go with this for 3.7. |
Should we add a The potential downside of course being that things we don't consider "public" would no longer be imported if someone did That said, this mostly applies to transitive imports since anything defined here would be exported and The other one that is closely related enough that I'd consider it reasonable to think "that is in text" would be |
The overall strategiy is good.
Unfortunately. specification of public API does not have proper language support in python. Another issue is that |
aa0bf63
to
c00711b
Compare
c00711b
to
71a3685
Compare
The textpath module was created in 2009, but the status has been a bit vague with many examples and exisiting code found on the internet importing from text instead. In this PR everything is changed to point at text, although textpath is still available for backwards compatibility.
71a3685
to
9b8a598
Compare
As long as we use and document it consistently it will be better than the current situation. I do not think that we actually need to move it, but it is confusing if it sometimes is imported from text and sometimes from textpath. |
The textpath module was created in 2009, but the status has
been a bit vague with many examples and exisiting code found
on the internet importing from text instead.
In this PR everything is changed to point at text, although textpath
is still available for backwards compatibility.
PR Summary
See discussion in #23565 (comment)
Also a bit of cleanup of related documentation.
PR Checklist
Tests and Styling
pytest
passes).flake8-docstrings
and runflake8 --docstring-convention=all
).Documentation
doc/users/next_whats_new/
(follow instructions in README.rst there).doc/api/next_api_changes/
(follow instructions in README.rst there).