Changes between Initial Version and Version 1 of Ticket #15783, comment 4
- Timestamp:
- Apr 21, 2011, 8:28:51 AM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #15783, comment 4
initial v1 1 1 From the runtime's point of view (`hasattr`/`getattr`), it doesn't have a `fileno` attribute. 2 {{{>>> class Foo(object): 3 ... @property 4 ... def fileno(self): 5 ... raise AttributeError 6 ... 7 >>> hasattr(Foo(), 'fileno') 8 False}}} 2 3 {{{ 4 >>> class Foo(object): 5 ... @property 6 ... def fileno(self): 7 ... raise AttributeError 8 ... 9 >>> hasattr(Foo(), 'fileno') 10 False 11 12 }}}