Lines Matching +full:test +full:- +full:cython
16 -----------------------------------
18 Yes, you can create built-in modules containing functions, variables, exceptions
20 :ref:`extending-index`.
26 -------------------------------------
34 .. _c-wrapper-software:
37 ----------------------------------------------
44 `Cython <http://cython.org>`_ and its relative `Pyrex
47 C code. Cython and Pyrex make it possible to write an extension without having
61 -----------------------------------------------------
63 The highest-level function to do this is :c:func:`PyRun_SimpleString` which takes
65 ``__main__`` and returns ``0`` for success and ``-1`` when an exception occurred
72 ---------------------------------------------------------
80 -----------------------------------------------
92 To test the type of an object, first make sure it isn't ``NULL``, and then use
95 There is also a high-level API to Python objects which is provided by the
96 so-called 'abstract' interface -- read ``Include/abstract.h`` for further
104 -------------------------------------------------------------------
110 ----------------------------------------
121 This works for any object that has methods -- whether built-in or user-defined.
142 ----------------------------------------------------------------------------------------
151 .. code-block:: pycon
163 .. code-block:: pycon
182 --------------------------------------------------
191 module into any namespace -- it only ensures it has been initialized and is
204 ----------------------------------------------
208 <extending-index>`. Realize that for the Python run-time system, there isn't a
209 whole lot of difference between C and C++ -- so the strategy of building a new
212 For C++ libraries, see :ref:`c-wrapper-software`.
216 --------------------------------------------------------------
224 ----------------------------
231 .. code-block:: none
237 .. code-block:: shell-session
247 --------------------------------------------------------------------------------------
253 For Red Hat, install the python-devel RPM to get the necessary files.
255 For Debian, run ``apt-get install python-dev``.
259 ------------------------------------------------------
279 solution then is to call :c:func:`PyParser_ParseString` and test for ``e.error``
293 /* return -1 for error, 0 for incomplete, 1 for complete */
303 return -1;
314 more input is required - by extracting the message string from the exception
347 if (NULL == line) /* Ctrl-D pressed */
356 add_history (line); /* save non-empty lines */
376 if (NULL != src) /* compiled just fine - */
379 '\n' == code[i + j - 1]) /* "... " and double '\n' */
412 else /* some non-syntax error */
432 --------------------------------------------------------------------
436 extension module using g++ (e.g., ``g++ -shared -o mymodule.so mymodule.o``).
440 ---------------------------------------------------------------------------------------------------…
442 Yes, you can inherit from built-in classes such as :class:`int`, :class:`list`,