Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #108105 > unrolled thread
| Started by | Ben Finney <ben+python@benfinney.id.au> |
|---|---|
| First post | 2016-05-04 09:31 +1000 |
| Last post | 2016-05-04 09:31 +1000 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: How to call a Python Class? Ben Finney <ben+python@benfinney.id.au> - 2016-05-04 09:31 +1000
| From | Ben Finney <ben+python@benfinney.id.au> |
|---|---|
| Date | 2016-05-04 09:31 +1000 |
| Subject | Re: How to call a Python Class? |
| Message-ID | <mailman.368.1462318333.32212.python-list@python.org> |
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 top | Article view | comp.lang.python
csiph-web