Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #108105
| From | Ben Finney <ben+python@benfinney.id.au> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: How to call a Python Class? |
| Date | 2016-05-04 09:31 +1000 |
| Message-ID | <mailman.368.1462318333.32212.python-list@python.org> (permalink) |
| References | <1659145888.152847.1462316185321.JavaMail.yahoo.ref@mail.yahoo.com> <1659145888.152847.1462316185321.JavaMail.yahoo@mail.yahoo.com> <85eg9ihg5z.fsf@benfinney.id.au> |
David Shi via Python-list <python-list@python.org> writes: > 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. Your text is mangled in transit. Please post only plain text messages (avoid HTML or other “rich” content), so the formatting survives. > 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? If we can see the exact code you tried, perhaps. -- \ “Holy hole in a donut, Batman!” —Robin | `\ | _o__) | Ben Finney
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: How to call a Python Class? Ben Finney <ben+python@benfinney.id.au> - 2016-05-04 09:31 +1000
csiph-web