Get whether the object is a I{qualified reference}. @param object: An object to be tested. @type object: I{any} @rtype: boolean @see: L{qualify}
(object)
| 61 | |
| 62 | |
| 63 | def isqref(object): |
| 64 | """ |
| 65 | Get whether the object is a I{qualified reference}. |
| 66 | @param object: An object to be tested. |
| 67 | @type object: I{any} |
| 68 | @rtype: boolean |
| 69 | @see: L{qualify} |
| 70 | """ |
| 71 | return ( |
| 72 | isinstance(object, tuple) and |
| 73 | len(object) == 2 and |
| 74 | isinstance(object[0], basestring) and |
| 75 | isinstance(object[1], basestring)) |
| 76 | |
| 77 | |
| 78 | class Filter: |