3 ms·
>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
by KptMarchewa 5y ago
>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".
- da39a3ee 5y ago"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.