F
fegge
when i declare a class, is there difference between the below:
class myClass():
class myClass(threading.Thread)
class myClass():
class myClass(threading.Thread)
Yes, the first one is a syntax error because you aren't allowed emptyfegge said:when i declare a class, is there difference between the below:
class myClass():
class myClass(threading.Thread)
fegge said:when i declare a class, is there difference between the below:
class myClass():
class myClass(threading.Thread)
Duncan said:Yes, the first one is a syntax error because you aren't allowed empty
parentheses in a class statement
If you don't know the answer to this, then it's time to read the finewhen i declare a class, is there difference between the below:
class myClass():
class myClass(threading.Thread)
D:\python>pythonhowever,
$ python
Python 2.5c1 /.../
... pass
...
</F>
Jorge said:seems like a feature/bug of 2.5, why your learning a language with a
beta version?
I'm sorry I though you where the original poster.learning?
(btw, the "c" in 2.5c1 means *release candidate*, not "beta").
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.