Skip to content

Instantly share code, notes, and snippets.

@infinite-Joy
Created June 26, 2017 15:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save infinite-Joy/ed2d4d27837dae4a751d37c298765c7d to your computer and use it in GitHub Desktop.
Save infinite-Joy/ed2d4d27837dae4a751d37c298765c7d to your computer and use it in GitHub Desktop.
class Banking(object): ...
class BankingBank1(Banking): ...
class BankingBank2(Banking): ...
def user_action(bb_obj):
try:
bb_obj.process_payment('destination_address', 100)
except NotImplementedError as e:
print('Cannot process the payment.')
bb2 = BankingBank2(__name__)
user_action(bb2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment