Re:Traps for the Unwary in Python’s Import System
by int_19h on Wednesday August 17, 2022 @08:26PM
(#32503665)
Would you rather write "hello.world.bye" every time you need it?
[ Parent
| on HN ]
Re:Traps for the Unwary in Python’s Import System
by 41b696ef1113 on Wednesday August 17, 2022 @11:00PM
(#32504740)
I appreciate the explicitness, so indeed I would.
Re:Traps for the Unwary in Python’s Import System
by yjftsjthsd-h on Wednesday August 17, 2022 @11:53PM
(#32505064)
Then do that? Is there anything forcing you to use from?
Edit: While opinionated, it's a real question; in my fairly simple use of Python, I have never hit a use of "from" that couldn't have been a plain "import", but if I'm missing a case feel free to correct me.