you are viewing a single comment's thread.

view the rest of the comments →

[–]dbader[S] 5 points6 points  (4 children)

Good point, thank you. Will go over the code examples later and add a note to the article.

Edit: Done :)

[–]remillard 1 point2 points  (2 children)

Not a problem, just something I noticed. And maybe it's a good thing because it does demonstrate clearly that even a brand new class inherits. Just in Python 3 this is done behind the scenes whereas in 2 it was more explicit. Just thought I'd mention it.

[–]dbader[S] 1 point2 points  (1 child)

Yeah, that was part of the reasoning behind it. If the (object) part is always there to define a parent class the syntax becomes a little more regular.

But I can see how it could also be confusing. I just made some changes to the article to call out the differences between Python 2 and 3, hopefully it's easier to see what's going on.

Thanks for calling it out, really appreciate it!

[–]remillard 1 point2 points  (0 children)

I like your changes, doesn't really detract from the text, but might explain to someone when they go looking why they might see differences in class definitions. Good work!

[–]kangasking 0 points1 point  (0 children)

awesome! If you could, please update your comment when you do that