Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cython
Commits
7c10f2be
Commit
7c10f2be
authored
Sep 21, 2009
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Plain Diff
merge
parents
3322ef01
8541e339
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
Cython/Includes/python_exc.pxd
Cython/Includes/python_exc.pxd
+9
-9
No files found.
Cython/Includes/python_exc.pxd
View file @
7c10f2be
...
@@ -114,7 +114,7 @@ cdef extern from "Python.h":
...
@@ -114,7 +114,7 @@ cdef extern from "Python.h":
# specify an arbitrary Python object for the ``value'' of the
# specify an arbitrary Python object for the ``value'' of the
# exception.
# exception.
PyObject
*
PyErr_Format
(
object
exception
,
char
*
format
,
...)
PyObject
*
PyErr_Format
(
object
exception
,
char
*
format
,
...)
except
NULL
# Return value: Always NULL.
# Return value: Always NULL.
# This function sets the error indicator and returns
# This function sets the error indicator and returns
# NULL. exception should be a Python exception (class, not an
# NULL. exception should be a Python exception (class, not an
...
@@ -131,13 +131,13 @@ cdef extern from "Python.h":
...
@@ -131,13 +131,13 @@ cdef extern from "Python.h":
# message)", where message indicates that a built-in operation was
# message)", where message indicates that a built-in operation was
# invoked with an illegal argument. It is mostly for internal use.
# invoked with an illegal argument. It is mostly for internal use.
PyObject
*
PyErr_NoMemory
()
PyObject
*
PyErr_NoMemory
()
except
NULL
# Return value: Always NULL.
# Return value: Always NULL.
# This is a shorthand for "PyErr_SetNone(PyExc_MemoryError)"; it
# This is a shorthand for "PyErr_SetNone(PyExc_MemoryError)"; it
# returns NULL so an object allocation function can write "return
# returns NULL so an object allocation function can write "return
# PyErr_NoMemory();" when it runs out of memory.
# PyErr_NoMemory();" when it runs out of memory.
PyObject
*
PyErr_SetFromErrno
(
object
type
)
PyObject
*
PyErr_SetFromErrno
(
object
type
)
except
NULL
# Return value: Always NULL.
# Return value: Always NULL.
# This is a convenience function to raise an exception when a C
# This is a convenience function to raise an exception when a C
# library function has returned an error and set the C variable
# library function has returned an error and set the C variable
...
@@ -152,14 +152,14 @@ cdef extern from "Python.h":
...
@@ -152,14 +152,14 @@ cdef extern from "Python.h":
# PyErr_SetFromErrno(type);" when the system call returns an
# PyErr_SetFromErrno(type);" when the system call returns an
# error.
# error.
PyObject
*
PyErr_SetFromErrnoWithFilename
(
object
type
,
char
*
filename
)
PyObject
*
PyErr_SetFromErrnoWithFilename
(
object
type
,
char
*
filename
)
except
NULL
# Return value: Always NULL. Similar to PyErr_SetFromErrno(),
# Return value: Always NULL. Similar to PyErr_SetFromErrno(),
# with the additional behavior that if filename is not NULL, it is
# with the additional behavior that if filename is not NULL, it is
# passed to the constructor of type as a third parameter. In the
# passed to the constructor of type as a third parameter. In the
# case of exceptions such as IOError and OSError, this is used to
# case of exceptions such as IOError and OSError, this is used to
# define the filename attribute of the exception instance.
# define the filename attribute of the exception instance.
PyObject
*
PyErr_SetFromWindowsErr
(
int
ierr
)
PyObject
*
PyErr_SetFromWindowsErr
(
int
ierr
)
except
NULL
# Return value: Always NULL. This is a convenience function to
# Return value: Always NULL. This is a convenience function to
# raise WindowsError. If called with ierr of 0, the error code
# raise WindowsError. If called with ierr of 0, the error code
# returned by a call to GetLastError() is used instead. It calls
# returned by a call to GetLastError() is used instead. It calls
...
@@ -171,19 +171,19 @@ cdef extern from "Python.h":
...
@@ -171,19 +171,19 @@ cdef extern from "Python.h":
# "PyErr_SetObject(PyExc_WindowsError, object)". This function
# "PyErr_SetObject(PyExc_WindowsError, object)". This function
# always returns NULL. Availability: Windows.
# always returns NULL. Availability: Windows.
PyObject
*
PyErr_SetExcFromWindowsErr
(
object
type
,
int
ierr
)
PyObject
*
PyErr_SetExcFromWindowsErr
(
object
type
,
int
ierr
)
except
NULL
# Return value: Always NULL. Similar to
# Return value: Always NULL. Similar to
# PyErr_SetFromWindowsErr(), with an additional parameter
# PyErr_SetFromWindowsErr(), with an additional parameter
# specifying the exception type to be raised. Availability:
# specifying the exception type to be raised. Availability:
# Windows. New in version 2.3.
# Windows. New in version 2.3.
PyObject
*
PyErr_SetFromWindowsErrWithFilename
(
int
ierr
,
char
*
filename
)
PyObject
*
PyErr_SetFromWindowsErrWithFilename
(
int
ierr
,
char
*
filename
)
except
NULL
# Return value: Always NULL. Similar to
# Return value: Always NULL. Similar to
# PyErr_SetFromWindowsErr(), with the additional behavior that if
# PyErr_SetFromWindowsErr(), with the additional behavior that if
# filename is not NULL, it is passed to the constructor of
# filename is not NULL, it is passed to the constructor of
# WindowsError as a third parameter. Availability: Windows.
# WindowsError as a third parameter. Availability: Windows.
PyObject
*
PyErr_SetExcFromWindowsErrWithFilename
(
object
type
,
int
ierr
,
char
*
filename
)
PyObject
*
PyErr_SetExcFromWindowsErrWithFilename
(
object
type
,
int
ierr
,
char
*
filename
)
except
NULL
# Return value: Always NULL.
# Return value: Always NULL.
# Similar to PyErr_SetFromWindowsErrWithFilename(), with an
# Similar to PyErr_SetFromWindowsErrWithFilename(), with an
# additional parameter specifying the exception type to be
# additional parameter specifying the exception type to be
...
@@ -228,7 +228,7 @@ cdef extern from "Python.h":
...
@@ -228,7 +228,7 @@ cdef extern from "Python.h":
# KeyboardInterrupt will be raised. It may be called without
# KeyboardInterrupt will be raised. It may be called without
# holding the interpreter lock.
# holding the interpreter lock.
PyObject
*
PyErr_NewException
(
char
*
name
,
object
base
,
object
dict
)
object
PyErr_NewException
(
char
*
name
,
object
base
,
object
dict
)
# Return value: New reference.
# Return value: New reference.
# This utility function creates and returns a new exception
# This utility function creates and returns a new exception
# object. The name argument must be the name of the new exception,
# object. The name argument must be the name of the new exception,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment