Code

Changes between Initial Version and Version 1 of Ticket #15783, comment 4


Ignore:
Timestamp:
04/21/11 06:28:51 (3 years ago)
Author:
jonash
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #15783, comment 4

    initial v1  
    11From 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}}}