AveyTense Glossary

abroad object
Object springing from abroad() function. It is actually an iterable object of internal class ~.?._abroad.AbroadInitializer. To inspect abroad objects, since 0.3.50 there is a class method ~.Tense.isAbroad().
mode parameter
The mode parameter appears in class methods usually starting with is prefix, and it is used to modify the checking technique. By default it usually has value ~.constants.MODE_AND, indicating every object must comply specific requirement. Same can be achieved with value "and". Meanwhile ~.constants.MODE_OR and "or" allow to alleviate the value checking - at least one of the objects has to complete the given condition. One of examples is given in class method ~.Tense.hasattr().
paired functions
This kind of functions receive updates in the same period. Examples: ~.Tense.append() & ~.Tense.extend() and ~.Tense.reverse() & ~.Tense.shuffle()
pure functions
This kind of functions return internally modified version of one or more parameter values usually by copying the values to internal variables, however, without modifying parameter values passed. Examples of pure functions: ~.Tense.append(), ~.Tense.extend(), ~.Tense.reverse(), ~.Tense.shuffle(). Consider the following invocation: a[72, 83, 36, 48] a.reverse() print(a) [48, 36, 83, 72] If list.reverse() modified the list instance (there a), that means this method isn't pure. Meanwhile with ~.Tense.reverse() and slicing returned is reversed copy of the sequence: from import a[72, 83, 36, 48] b1.reverse(a) b2a[::-1] print(a, b1, b2) [72, 83, 36, 48], [48, 36, 83, 72], [48, 36, 83, 72] Both ~.Tense.reverse() and slicing are pure, because these return modified version of the target sequence.
tilde (~)
Refers to aveytense module mostly; also used to keep accordance with tense before 0.3.40. If ~ is used in a class or module documentation, then it can point to that class/module.
universal parameter
This kind of parameter can be passed either via position or keyword. Placement isn't hard to recognize. def f([...POSITIONAL_PARAMS], /, [...UNIVERSAL_PARAMS], [*[VARIABLE_ARG]], [...KEYWORD_PARAMS], [**VARIABLE_KWARG]): Word universal is used in final properties in class ~.util.ParamVar as their prefix.
Site created by Aveyzan on 31st July 2022