News for hackers. Stuff that matters.
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?
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.

Re:Traps for the Unwary in Python’s Import System by Jensson on Wednesday August 17, 2022 @09:57PM (#32504296)

    bye = hello.world.bye
Re:Traps for the Unwary in Python’s Import System by eesmith on Thursday August 18, 2022 @01:07AM (#32505531)

  import hello.world.bye as bye