Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #108103

How to call a Python Class?

From David Shi <davidgshi@yahoo.co.uk>
Newsgroups comp.lang.python
Subject How to call a Python Class?
Date 2016-05-03 22:56 +0000
Message-ID <mailman.366.1462316531.32212.python-list@python.org> (permalink)
References <1659145888.152847.1462316185321.JavaMail.yahoo.ref@mail.yahoo.com> <1659145888.152847.1462316185321.JavaMail.yahoo@mail.yahoo.com>

Show all headers | View raw


I found a Python class within an Open Source software.
I would like to use it in my own Python script.
I tried to import it, but I got following message.
from intersection import *Traceback (most recent call last):  File "<pyshell#4>", line 1, in <module>    from intersection import *ImportError: bad magic number in 'intersection': b'\x03\xf3\r\n'
Can any one help?
Regards.
David

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

How to call a Python Class? David Shi <davidgshi@yahoo.co.uk> - 2016-05-03 22:56 +0000

csiph-web