src/pylib/builtins/dict_decl

Source   Edit  
Deprecated: use newPyDict, to be removed since 0.10

Types

dict[K; V] = ref object
Source   Edit  
PyDict[K; V] = dict[K, V]
Source   Edit  

Procs

func emptyPyDict[K, V](): PyDict[K, V]
Source   Edit  
proc getOrDefault[A, B](t: PyDict[A, B]; key: A): B
inner. used to impl get(key, default) Source   Edit  
func newPyDict[K, V](x: int): PyDict[K, V] {.inline.}
Source   Edit  
func newPyDict[K, V](x: openArray[(K, V)] = []): PyDict[K, V]
zero or one arg shall support [], {k:v, ...}, @[(k, v),...] Source   Edit  
func toNimTable[K, V](self: PyDict[K, V]): var OrderedTable[K, V]
Source   Edit  

Templates

template newPyDictImpl[K, V](x: int): untyped {.
    ...deprecated: "use newPyDict, to be removed since 0.10".}
Deprecated: use newPyDict, to be removed since 0.10
Source   Edit  
template newPyDictImpl[K, V](x: openArray[(K, V)] = []): untyped {.
    ...deprecated: "use newPyDict, to be removed since 0.10".}
Deprecated: use newPyDict, to be removed since 0.10
Source   Edit