Commit a0fec2ca authored by Guido van Rossum's avatar Guido van Rossum

y

New class syntax
parent d94ec72c
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
Error = 'TransParent.Error' # Exception Error = 'TransParent.Error' # Exception
class ManageOneChild(): class ManageOneChild:
# #
# Upcalls shared with other single-child parents # Upcalls shared with other single-child parents
# #
...@@ -23,7 +23,7 @@ class ManageOneChild(): ...@@ -23,7 +23,7 @@ class ManageOneChild():
raise Error, 'delchild: not my child' raise Error, 'delchild: not my child'
self.child = 0 self.child = 0
class TransParent() = ManageOneChild(): class TransParent(ManageOneChild):
# #
# Calls from creator # Calls from creator
# NB derived classes may add parameters to create() # NB derived classes may add parameters to create()
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
Error = 'TransParent.Error' # Exception Error = 'TransParent.Error' # Exception
class ManageOneChild(): class ManageOneChild:
# #
# Upcalls shared with other single-child parents # Upcalls shared with other single-child parents
# #
...@@ -23,7 +23,7 @@ class ManageOneChild(): ...@@ -23,7 +23,7 @@ class ManageOneChild():
raise Error, 'delchild: not my child' raise Error, 'delchild: not my child'
self.child = 0 self.child = 0
class TransParent() = ManageOneChild(): class TransParent(ManageOneChild):
# #
# Calls from creator # Calls from creator
# NB derived classes may add parameters to create() # NB derived classes may add parameters to create()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment