src/pylib/stringlib/format

Source   Edit  

str.format

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

Procs

proc pyformatImplAux(s: string; args: openArray[Any]; kw: GetitemableOfK[string]): string
Source   Edit  
proc pyformatImplAux(s: string; args: openArray[NimNode]; kw: Kw): NimNode {.
    ...raises: [ValueError, KeyError], tags: [], forbids: [].}
Source   Edit  

Macros

macro pyformat(s: static[string]; argKw: varargs[untyped]): string
Source   Edit  
macro pyformat(s: string; argKw: varargs[untyped]): string
for non-static s Source   Edit  
macro pyformatMap(s: string; map: GetitemableOfK[string]): string
Source   Edit  

Templates

template pyformatMap(s: static string; map: GetitemableOfK[string]): string
Source   Edit