Jump to content
  • Advertisement
Sign in to follow this  
Esys

Simple Python Question

This topic is 2906 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

What's the difference between defining a class with "foo()" and "foo(object)"?

I'v done both ways but can't see any difference in functionality.

Share this post


Link to post
Share on other sites
Advertisement
Quote:
Original post by Esys
What's the difference between defining a class with "foo()" and "foo(object)"
The former is an old-style python class, the latter is a new-style python class. Google those for more info.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!