We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent decae03 commit 0a12c33Copy full SHA for 0a12c33
classes.md
@@ -63,6 +63,13 @@ Let's use it to define an empty class.
63
>>>
64
```
65
66
+**_Note_:** If you are using Python 2 I highly recommend using
67
+`class Website(object):` instead of `class Website:`. This creates a
68
+new-style class instead of an old-style class. Old-style classes are
69
+different than new-style classes in some ways and not supported in this
70
+tutorial. In Python 3, there are no old-style classes and
71
+`class Website(object):` does the same thing as `class Website:`.
72
+
73
Note that I named the class `Website`, not `website`. This way we know
74
that it's a class. Built-in classes use lowercase names (like `str`
75
instead of `Str`) because they are faster to type, but use CapsWord
0 commit comments