hansmu at xs4all.nl
Fri Oct 5 13:32:49 CEST 2012
On 5/10/12 10:51:42, Luca Sanna wrote:
> from bluetooth import *
> luca at luca-XPS-M1330:~/py-temperature/py-temperature$ python bluetooth.py
When you say "from bluetooth import *", Python will find a file
name "bluetooth.py" and import stuff from that file. Since your
script happens to be named "bluetooth.py", Python will import
your script, thinking it is a module.
> it's a bug of the module?
You've chosen the wrong file name. Rename your script.
Hope this helps,
More information about the Python-list