Mastering Python Second Edition Release Code
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
class A(object):
|
||||
|
||||
def __init__(self, arg, *args, **kwargs):
|
||||
pass
|
||||
|
||||
def regular_method(self, arg):
|
||||
pass
|
||||
|
||||
@classmethod
|
||||
def decorated_method(self, arg):
|
||||
pass
|
||||
|
||||
def _hidden_method(self):
|
||||
pass
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
from . import a
|
||||
|
||||
|
||||
class B(a.A):
|
||||
|
||||
def regular_method(self):
|
||||
'''This regular method overrides
|
||||
:meth:`a.A.regular_method`
|
||||
'''
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user