| 86 | |
| 87 | # Some example classes that use multiple dispatch |
| 88 | class Spam(metaclass=MultipleMeta): |
| 89 | def bar(self, x:int, y:int): |
| 90 | print('Bar 1:', x, y) |
| 91 | def bar(self, s:str, n:int = 0): |
| 92 | print('Bar 2:', s, n) |
| 93 | |
| 94 | # Example: overloaded __init__ |
| 95 | import time |