Templates
template Py_DECLARE_STR(name; str: static string)
- Source Edit
template Py_STR(name): PyStrObject
- Source Edit
template pyDUId(id: untyped{~nkRStrLit}): PyStrObject
- dunder(double underline) Py_ID Source Edit
template pyId(id: untyped{~nkRStrLit}): PyStrObject
-
_Py_ID in CPythonNote: this forbids nkRStrLit as nim pyId"abc" would become pyId("r\"abc"), which is an implicit bug that's not desired but easy to make.Source Edit