Skip to content

Commit b61f2fb

Browse files
committed
Improved comments about classic and new-style classes
1 parent 23ade00 commit b61f2fb

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

python2/koans/about_new_style_classes.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,18 @@
77
class AboutNewStyleClasses(Koan):
88
class OldStyleClass:
99
"An old style class"
10-
# Original class style have been phased out in Python 3.
10+
# Original style classes from Python 2.1 and earlier, also known as
11+
# "classic classes", have been phased out in Python 3.
1112

1213
class NewStyleClass(object):
1314
"A new style class"
14-
# Introduced in Python 2.2
15+
# Introduced in Python 2.2 to unify types and classes.
16+
#
17+
# If you want to learn more, see:
18+
# https://www.python.org/download/releases/2.2.3/descrintro/
1519
#
1620
# Aside from this set of tests, Python Koans sticks exclusively to this
17-
# kind of class
21+
# kind of class.
1822
pass
1923

2024
def test_new_style_classes_inherit_from_object_base_class(self):

0 commit comments

Comments
 (0)