Comment

Comment by micw

I always wondered why the import syntax is so different for the two things:

  import mpmath as mp
  from mpmath import mp
IMO that's the root cause of that kind of user errors. Why not just

  import mpmath.mp as mp
or something that has basically the same syntax for importing an object as for importing the module?
parent micw 3 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton