| Trees | Indices | Help |
|
|---|
|
|
object --+
|
int --+
|
object --+ |
| |
AbstractPosition --+
|
ExactPosition
Specify the specific position of a boundary. o position - The position of the boundary. o extension - An optional argument which must be zero since we don't have an extension. The argument is provided so that the same number of arguments can be passed to all position types. In this case, there is no fuzziness associated with the position. >>> p = ExactPosition(5) >>> p ExactPosition(5) >>> print p 5 >>> isinstance(p, AbstractPosition) True >>> isinstance(p, int) True Integer comparisons and operations should work as expected: >>> p == 5 True >>> p < 6 True >>> p <= 5 True >>> p + 10 15
|
|||
|
|||
|
|||
|
|||
|
Inherited from Inherited from |
|||
|
|||
a new object with type S, a subtype of T |
|
||
|
|||
|
position Legacy attribute to get position as integer (OBSOLETE). |
|||
|
extension Legacy attribute to get extension (zero) as integer (OBSOLETE). |
|||
|
Inherited from |
|||
|
|||
|
String representation of the ExactPosition location for debugging.
|
|
|||
positionLegacy attribute to get position as integer (OBSOLETE).
|
extensionLegacy attribute to get extension (zero) as integer (OBSOLETE).
|
| Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Tue Feb 5 18:02:51 2013 | http://epydoc.sourceforge.net |