for PyObject being working with std/strformat
Types
FormatPyObjectError = object of CatchableError
- inner Source Edit
Procs
proc formatValue[O: PyObject](s: var string; obj: O; specS: static[string]) {. ...raises: [FormatPyObjectError].}
- remember to wrap around handleFormatExc Source Edit
proc formatValue[O: PyObject](s: var string; obj: O; specS: string) {. ...raises: [FormatPyObjectError].}
- remember to wrap around handleFormatExc Source Edit
Templates
template handleFormatExc(body)
- Source Edit
template handleFormatExc(handle, body)
- Source Edit
Exports
-
joinAsRunes, newUnicodeVariant, doKindsWith2It, asUTF8AndSize, newUnicodeVariant, newPyString, asUTF8, newPyString, newUnicodeVariant, &, newUnicodeUnicodeVariantOfCap, asUTF8AndSize, repr, newUnicodeVariant, newUnicodeVariant, $, $, fastCopyCharacters, newPyString, newUnicodeUnicodeVariant, isAscii, kind, data, UnicodeVariant, asUTF8, ==, newPyString, newPyString, itemSize, cmpAscii, newUnicodeUnicodeVariant, toRunes, newPyStr, MAX_UNICODE, PyUnicode_READ, &, newAsciiUnicodeVariant, itemSize, newUnicodeUnicodeVariant, eqAscii, ==, newPyAscii, newPyStr, &, hash, len, pyStrObjectType, add, checkConsistency, ofPyStrObject, doBothKindOk, &, newPyAscii, newAsciiUnicodeVariantOfCap, PyStrObject, newUnicodeOrAsciiUnicodeVariant, newAsciiUnicodeVariant, hash, [], ofExactPyStrObject, newPyStrSimple, len