Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


I 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.


Thanks! I have come across yarl, but not hyperlink.


Yeah, that tuple API is bizarre. It really doesn’t play well with type annotations either.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: