Repository navigation
Rename trio.hazmat → trio.lowlevel - #1484
Conversation
c79e795 to
dc29752
Compare
Codecov Report
@@ Coverage Diff @@
## master #1484 +/- ##
==========================================
+ Coverage 92.78% 99.67% +6.88%
==========================================
Files 106 107 +1
Lines 13216 13220 +4
Branches 995 995
==========================================
+ Hits 12263 13177 +914
+ Misses 900 28 -872
+ Partials 53 15 -38
|
pquentin
left a comment
There was a problem hiding this comment.
Thanks for tackling this! 🎉
While this works:
>>> import trio
>>> trio.hazmat
__main__:1: TrioDeprecationWarning: trio.hazmat is deprecated since Trio 0.15.0; use trio.lowlevel instead (https://github.com/python-trio/trio/issues/476)
<module 'trio.lowlevel' from '/Users/quentin/Software/trio/trio/lowlevel.py'>
This no longer works, is it expected?
>>> import trio.hazmat
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'trio.hazmat'
| @@ -0,0 +1,3 @@ | |||
| It turns out that everyone got confused by the name ``trio.lowlevel``. | |||
There was a problem hiding this comment.
Haha, whoops! nice catch :-)
| You don't need to be scared of :mod:`trio.lowlevel`, as long as you | ||
| take proper precautions. These are real public APIs, with strictly | ||
| defined and carefully documented semantics. But, you should read | ||
| carefully and take proper precautions. Some of those strict semantics |
There was a problem hiding this comment.
Is the phrase repetition with line 28 intentional? Perhaps something like this could also work:
But, you should pay attention while using them and certainly read the documentation in detail.
There was a problem hiding this comment.
Good point, tweaked the wording a bit.
Excellent question! I did not think about that. I doubt many folks are writing The issue is that when you refer to I did find a workaround though: if we make a
The one issue is that after you do |
|
Addressed review comments. On further consideration, I think I want to make one more change: in the changelog, it's a bit awkward to handle all the old references to The awkward compromise I did in the initial commit was to apply the search/replace to only the text that had live links. I think a better way would be to keep the text the same while fixing the link destinations only. |
|
OK done, I think (hope?) this is ready now |
|
Looks great, thank you! |
|
Looks good to me too, thanks! |
Closes: gh-476