| 1676 | def func(): pass |
| 1677 | check(func, size('16Pi')) |
| 1678 | class c(): |
| 1679 | @staticmethod |
| 1680 | def foo(): |
| 1681 | pass |
| 1682 | @classmethod |
| 1683 | def bar(cls): |
| 1684 | pass |
| 1685 | # staticmethod |
| 1686 | check(foo, size('PP')) |
| 1687 | # classmethod |
| 1688 | check(bar, size('PP')) |
| 1689 | # generator |
| 1690 | def get_gen(): yield 1 |
| 1691 | check(get_gen(), size('6P4c' + INTERPRETER_FRAME + 'P')) |