Objects/warningobject

Search:
Group by:
Source   Edit  

Types

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

pyBytesWarningObjectType {.inject.} = newBltinPyType("byteswarning",
    pyWarningObjectType)
Source   Edit  
pyDeprecationWarningObjectType {.inject.} = newBltinPyType("deprecationwarning",
    pyWarningObjectType)
Source   Edit  
pyEncodingWarningObjectType {.inject.} = newBltinPyType("encodingwarning",
    pyWarningObjectType)
Source   Edit  
pyFutureWarningObjectType {.inject.} = newBltinPyType("futurewarning",
    pyWarningObjectType)
Source   Edit  
pyImportWarningObjectType {.inject.} = newBltinPyType("importwarning",
    pyWarningObjectType)
Source   Edit  
pyPendingDeprecationWarningObjectType {.inject.} = newBltinPyType(
    "pendingdeprecationwarning", pyWarningObjectType)
Source   Edit  
pyResourceWarningObjectType {.inject.} = newBltinPyType("resourcewarning",
    pyWarningObjectType)
Source   Edit  
pyRuntimeWarningObjectType {.inject.} = newBltinPyType("runtimewarning",
    pyWarningObjectType)
Source   Edit  
pySyntaxWarningObjectType {.inject.} = newBltinPyType("syntaxwarning",
    pyWarningObjectType)
Source   Edit  
pyUnicodeWarningObjectType {.inject.} = newBltinPyType("unicodewarning",
    pyWarningObjectType)
Source   Edit  
pyUserWarningObjectType {.inject.} = newBltinPyType("userwarning",
    pyWarningObjectType)
Source   Edit  
pyWarningMessageObjectType {.inject.} = newBltinPyType("warningmessage",
    pyObjectType)
Source   Edit  
pyWarningObjectType {.inject.} = newBltinPyType("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 newPyBytesWarningSimple(): PyBytesWarningObject {.cdecl, ...raises: [],
    tags: [RootEffect], forbids: [].}
Source   Edit  
proc newPyDeprecationWarningSimple(): PyDeprecationWarningObject {.cdecl,
    ...raises: [], tags: [RootEffect], forbids: [].}
Source   Edit  
proc newPyEncodingWarningSimple(): PyEncodingWarningObject {.cdecl, ...raises: [],
    tags: [RootEffect], forbids: [].}
Source   Edit  
proc newPyFutureWarningSimple(): PyFutureWarningObject {.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 newPyUnicodeWarningSimple(): PyUnicodeWarningObject {.cdecl, ...raises: [],
    tags: [RootEffect], forbids: [].}
Source   Edit  
proc newPyUserWarningSimple(): PyUserWarningObject {.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 ofExactPyBytesWarningObject(obj`gensym29: PyObject): bool {.cdecl, inline,
    ...raises: [], tags: [], forbids: [].}
Source   Edit  
proc ofExactPyDeprecationWarningObject(obj`gensym59: PyObject): bool {.cdecl,
    inline, ...raises: [], tags: [], forbids: [].}
Source   Edit  
proc ofExactPyEncodingWarningObject(obj`gensym41: PyObject): bool {.cdecl,
    inline, ...raises: [], tags: [], forbids: [].}
Source   Edit  
proc ofExactPyFutureWarningObject(obj`gensym53: PyObject): bool {.cdecl, inline,
    ...raises: [], tags: [], forbids: [].}
Source   Edit  
proc ofExactPyImportWarningObject(obj`gensym71: PyObject): bool {.cdecl, inline,
    ...raises: [], tags: [], forbids: [].}
Source   Edit  
proc ofExactPyPendingDeprecationWarningObject(obj`gensym65: PyObject): bool {.
    cdecl, inline, ...raises: [], tags: [], forbids: [].}
Source   Edit  
proc ofExactPyResourceWarningObject(obj`gensym77: PyObject): bool {.cdecl,
    inline, ...raises: [], tags: [], forbids: [].}
Source   Edit  
proc ofExactPyRuntimeWarningObject(obj`gensym83: PyObject): bool {.cdecl,
    inline, ...raises: [], tags: [], forbids: [].}
Source   Edit  
proc ofExactPySyntaxWarningObject(obj`gensym35: PyObject): bool {.cdecl, inline,
    ...raises: [], tags: [], forbids: [].}
Source   Edit  
proc ofExactPyUnicodeWarningObject(obj`gensym47: PyObject): bool {.cdecl,
    inline, ...raises: [], tags: [], forbids: [].}
Source   Edit  
proc ofExactPyUserWarningObject(obj`gensym89: 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 ofPyBytesWarningObject(obj`gensym29: PyObject): bool {.cdecl, inline,
    ...raises: [], tags: [], forbids: [].}
Source   Edit  
proc ofPyDeprecationWarningObject(obj`gensym59: PyObject): bool {.cdecl, inline,
    ...raises: [], tags: [], forbids: [].}
Source   Edit  
proc ofPyEncodingWarningObject(obj`gensym41: PyObject): bool {.cdecl, inline,
    ...raises: [], tags: [], forbids: [].}
Source   Edit  
proc ofPyFutureWarningObject(obj`gensym53: PyObject): bool {.cdecl, inline,
    ...raises: [], tags: [], forbids: [].}
Source   Edit  
proc ofPyImportWarningObject(obj`gensym71: PyObject): bool {.cdecl, inline,
    ...raises: [], tags: [], forbids: [].}
Source   Edit  
proc ofPyPendingDeprecationWarningObject(obj`gensym65: PyObject): bool {.cdecl,
    inline, ...raises: [], tags: [], forbids: [].}
Source   Edit  
proc ofPyResourceWarningObject(obj`gensym77: PyObject): bool {.cdecl, inline,
    ...raises: [], tags: [], forbids: [].}
Source   Edit  
proc ofPyRuntimeWarningObject(obj`gensym83: PyObject): bool {.cdecl, inline,
    ...raises: [], tags: [], forbids: [].}
Source   Edit  
proc ofPySyntaxWarningObject(obj`gensym35: PyObject): bool {.cdecl, inline,
    ...raises: [], tags: [], forbids: [].}
Source   Edit  
proc ofPyUnicodeWarningObject(obj`gensym47: PyObject): bool {.cdecl, inline,
    ...raises: [], tags: [], forbids: [].}
Source   Edit  
proc ofPyUserWarningObject(obj`gensym89: 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