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


Groups > comp.lang.python > #108103 > unrolled thread

How to call a Python Class?

Started byDavid Shi <davidgshi@yahoo.co.uk>
First post2016-05-03 22:56 +0000
Last post2016-05-03 22:56 +0000
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.


Contents

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

#108103 — How to call a Python Class?

FromDavid Shi <davidgshi@yahoo.co.uk>
Date2016-05-03 22:56 +0000
SubjectHow to call a Python Class?
Message-ID<mailman.366.1462316531.32212.python-list@python.org>
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

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web