Types
PyDeprecationWarningObject = ref object of PyWarningObject
- Source Edit
PyImportWarningObject = ref object of PyWarningObject
- Source Edit
PyPendingDeprecationWarningObject = ref object of PyWarningObject
- Source Edit
PyResourceWarningObject = ref object of PyWarningObject
- Source Edit
PyRuntimeWarningObject = ref object of PyWarningObject
- Source Edit
PySyntaxWarningObject = ref object of PyWarningObject
- Source Edit
PyWarningMessageObject = ref object of PyObject message*: PyStrObject category*: PyObject filename*: PyStrObject lineno*: PyIntObject file*: PyObject line*: PyObject source*: PyObject private_category_name*: Option[string]
- Source Edit
PyWarningObject = ref object of PyExceptionObject
- Source Edit
Lets
pyDeprecationWarningObjectType {.inject.} = newPyType("deprecationwarning", pyWarningObjectType)
- Source Edit
pyImportWarningObjectType {.inject.} = newPyType("importwarning", pyWarningObjectType)
- Source Edit
pyPendingDeprecationWarningObjectType {.inject.} = newPyType( "pendingdeprecationwarning", pyWarningObjectType)
- Source Edit
pyResourceWarningObjectType {.inject.} = newPyType("resourcewarning", pyWarningObjectType)
- Source Edit
pyRuntimeWarningObjectType {.inject.} = newPyType("runtimewarning", pyWarningObjectType)
- Source Edit
pySyntaxWarningObjectType {.inject.} = newPyType("syntaxwarning", pyWarningObjectType)
- Source Edit
pyWarningMessageObjectType {.inject.} = newPyType("warningmessage", pyObjectType)
- Source Edit
pyWarningObjectType {.inject.} = newPyType("warning", pyExceptionObjectType)
- Source Edit
Procs
proc `$`(self: PyWarningMessageObject): string {....raises: [], tags: [RootEffect], forbids: [].}
- Source Edit
proc categoryName(self: PyWarningMessageObject): string {....raises: [], tags: [], forbids: [].}
- Get the name of the warning category. Source Edit
proc newPyDeprecationWarningSimple(): PyDeprecationWarningObject {.cdecl, ...raises: [], tags: [RootEffect], forbids: [].}
- Source Edit
proc newPyImportWarningSimple(): PyImportWarningObject {.cdecl, ...raises: [], tags: [RootEffect], forbids: [].}
- Source Edit
proc newPyPendingDeprecationWarningSimple(): PyPendingDeprecationWarningObject {. cdecl, ...raises: [], tags: [RootEffect], forbids: [].}
- Source Edit
proc newPyResourceWarningSimple(): PyResourceWarningObject {.cdecl, ...raises: [], tags: [RootEffect], forbids: [].}
- Source Edit
proc newPyRuntimeWarningSimple(): PyRuntimeWarningObject {.cdecl, ...raises: [], tags: [RootEffect], forbids: [].}
- Source Edit
proc newPySyntaxWarningSimple(): PySyntaxWarningObject {.cdecl, ...raises: [], tags: [RootEffect], forbids: [].}
- Source Edit
proc newPyWarningMessage(message: PyStrObject; category: PyTypeObject; filename: PyStrObject; lineno: PyIntObject; file: PyObject = pyNone; line: PyObject = pyNone; source: PyObject = pyNone): PyWarningMessageObject {. ...raises: [], tags: [RootEffect], forbids: [].}
- Create a new WarningMessage object. Source Edit
proc newPyWarningMessageSimple(): PyWarningMessageObject {.cdecl, ...raises: [], tags: [RootEffect], forbids: [].}
- Source Edit
proc newPyWarningSimple(): PyWarningObject {.cdecl, ...raises: [], tags: [RootEffect], forbids: [].}
- Source Edit
proc ofExactPyDeprecationWarningObject(obj`gensym35: PyObject): bool {.cdecl, inline, ...raises: [], tags: [], forbids: [].}
- Source Edit
proc ofExactPyImportWarningObject(obj`gensym47: PyObject): bool {.cdecl, inline, ...raises: [], tags: [], forbids: [].}
- Source Edit
proc ofExactPyPendingDeprecationWarningObject(obj`gensym41: PyObject): bool {. cdecl, inline, ...raises: [], tags: [], forbids: [].}
- Source Edit
proc ofExactPyResourceWarningObject(obj`gensym53: PyObject): bool {.cdecl, inline, ...raises: [], tags: [], forbids: [].}
- Source Edit
proc ofExactPyRuntimeWarningObject(obj`gensym59: PyObject): bool {.cdecl, inline, ...raises: [], tags: [], forbids: [].}
- Source Edit
proc ofExactPySyntaxWarningObject(obj`gensym29: PyObject): bool {.cdecl, inline, ...raises: [], tags: [], forbids: [].}
- Source Edit
proc ofExactPyWarningMessageObject(obj`gensym5: PyObject): bool {.cdecl, inline, ...raises: [], tags: [], forbids: [].}
- Source Edit
proc ofExactPyWarningObject(obj`gensym0: PyObject): bool {.cdecl, inline, ...raises: [], tags: [], forbids: [].}
- Source Edit
proc ofPyDeprecationWarningObject(obj`gensym35: PyObject): bool {.cdecl, inline, ...raises: [], tags: [], forbids: [].}
- Source Edit
proc ofPyImportWarningObject(obj`gensym47: PyObject): bool {.cdecl, inline, ...raises: [], tags: [], forbids: [].}
- Source Edit
proc ofPyPendingDeprecationWarningObject(obj`gensym41: PyObject): bool {.cdecl, inline, ...raises: [], tags: [], forbids: [].}
- Source Edit
proc ofPyResourceWarningObject(obj`gensym53: PyObject): bool {.cdecl, inline, ...raises: [], tags: [], forbids: [].}
- Source Edit
proc ofPyRuntimeWarningObject(obj`gensym59: PyObject): bool {.cdecl, inline, ...raises: [], tags: [], forbids: [].}
- Source Edit
proc ofPySyntaxWarningObject(obj`gensym29: PyObject): bool {.cdecl, inline, ...raises: [], tags: [], forbids: [].}
- Source Edit
proc ofPyWarningMessageObject(obj`gensym5: PyObject): bool {.cdecl, inline, ...raises: [], tags: [], forbids: [].}
- Source Edit
proc ofPyWarningObject(obj`gensym0: PyObject): bool {.cdecl, inline, ...raises: [], tags: [], forbids: [].}
- Source Edit
proc strPyWarningMessageObjectMagic(selfNoCast: PyObject): PyObject {.cdecl, ...raises: [], tags: [RootEffect], forbids: [].}
- Source Edit