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

>And anyway, the library is called “attrs”, so why is it imported as “attr”?

Python packaging is terrible, and giving package authors footguns like this. It's possible that it would be imported as "da39a3ee".



"attr" is the choice of the library designers. The question is why did they choose that name when users will expect it to be imported as "attrs"?

Clearly if they had chosen "da39a3ee" we wouldn't need to discuss whether they had good judgement.




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

Search: