module documentation
Module containing backported language/library functionality.
Function | partition |
Partition a list in two, based on the given predicate. |
Function |
|
Try to round the value to the closest integer and return it as a roman numeral. If the conversion is disabled, or if the roman module could not be loaded, round the value to the specified level and return it. |
Function |
|
Try to convert a value to roman numerals |
Function |
|
Makes frozenset from sequence after checking for duplicate elements. |
Variable | fst |
Undocumented |
Variable | snd |
Undocumented |
Function | _all |
Returns True if all elements in the iterable are True. |
Function | _any |
Returns True if any element of the iterable are True. |
Function | _partial |
Decorator with partial application of arguments and keywords. |
Try to round the value to the closest integer and return it as a roman numeral. If the conversion is disabled, or if the roman module could not be loaded, round the value to the specified level and return it.
Parameters | |
value:number | value to convert |
rounding:integer | how many decimal digits the number should be rounded to |
convert:boolean | if False, don't try conversion at all |
Returns | |
string | roman numeral for val, or formatted string representing val if conversion didn't succeed |
Try to convert a value to roman numerals
If the roman module could be loaded convert the given value to a roman numeral. Gracefully fail back to leaving the value untouched.
Parameters | |
val:integer | value to convert |
convert:boolean | if False, don't try conversion at all |
Returns | |
string or typeof(val) | roman numeral for val, or val if conversion didn't succeed |
Makes frozenset from sequence after checking for duplicate elements.
Raises | |
ValueError | When there are duplicate elements |