| 2 | |
| 3 | EDIT: specifically, here's a quick test: |
| 4 | |
| 5 | {{{ |
| 6 | Python 2.7.1+ (r271:86832, Apr 11 2011, 18:13:53) |
| 7 | [GCC 4.5.2] on linux2 |
| 8 | Type "help", "copyright", "credits" or "license" for more information. |
| 9 | >>> class C(object): |
| 10 | ... @property |
| 11 | ... def x(self): |
| 12 | ... return 1 // 0 |
| 13 | ... |
| 14 | >>> c = C() |
| 15 | >>> hasattr(c, 'x') |
| 16 | False |
| 17 | >>> getattr(c, 'x', None) |
| 18 | Traceback (most recent call last): |
| 19 | File "<stdin>", line 1, in <module> |
| 20 | File "<stdin>", line 4, in x |
| 21 | ZeroDivisionError: integer division or modulo by zero |
| 22 | }}} |