Bases: object
Describes the range of support of a function signature (or, in the future, special form) in terms of an optional beginning of life (birth), and optional deprecation and end of life (death).
If a deprecation is specified, a death must be as well, and vice-versa. Whether or not a birth is specified is independent.
At a given titus.signature.PFAVersion, the Lifespan has three possible states: current (method current returns True), deprecated (method deprecated returns True), and non-existent (both current and deprecated return False). Method current and deprecated are mutually exclusive; for a given titus.signature.PFAVersion, they would never both return True.
Create a Lifespan from a birth, deprecation, death, and contingency.
Parameters: |
|
---|
Parameters: | now (titus.signature.PFAVersion) – the version number to query |
---|---|
Return type: | bool |
Returns: | True if the feature exists and is not deprecated in version now, False otherwise. |
Parameters: | now (titus.signature.PFAVersion) – the version number to query |
---|---|
Return type: | bool |
Returns: | True if the feature exists and is deprecated in version now, False otherwise. |