src/pylib/stringlib/format

Search:
Group by:
Source   Edit  

str.format

NOTE: only str in Python has format method, not bytes nor bytearray.

Procs

proc pyformatImplAux(s: string; args: seq[NimNode]; kw: Kw): NimNode {.
    ...raises: [ValueError, KeyError], tags: [], forbids: [].}

if -d:pylibUseFormatValue, use formatValue instead of format for formatting.

Convertion is not supported yet (like !r).

Source   Edit  

Macros

macro pyformat(s: static[string]; argKw: varargs[untyped]): string
Source   Edit