AirPi icon indicating copy to clipboard operation
AirPi copied to clipboard

Why does this work?

Open edent opened this issue 10 years ago • 0 comments

As seen on

  • https://github.com/tomhartley/AirPi/blob/master/airpi.py#L48
  • https://github.com/tomhartley/AirPi/blob/master/airpi.py#L116

Basically, that's just the way Python works. There's a very details explanation at https://stackoverflow.com/questions/2724260/why-does-pythons-import-require-fromlist

Personally, I'd use fromlist=['magic'] ;-)

edent avatar Jun 04 '14 15:06 edent