3 ms·
This is intriguing to me for the performance and correctness reasons, but also if it makes the result more dev friendly than the urllib.parse tiple-ish-object r
by memco 3y ago
This is intriguing to me for the performance and correctness reasons, but also if it makes the result more dev friendly than the urllib.parse tiple-ish-object result thing.
- nerdponx 3y agoI posted this elsewhere in the thread, but there absolutely is prior art here. Check out Yarl (urllib.parse wrapper with the nicer interface) and Hyperlink (green field, immutable OO style, focus on correctness). Both on PyPI for many years now.
- memco 3y agoThanks! I have come across yarl, but not hyperlink.
- diarrhea 3y agoYeah, that tuple API is bizarre. It really doesn’t play well with type annotations either.