summaryrefslogtreecommitdiff
path: root/docs/examples/tutorial
Commit message (Collapse)AuthorAgeFilesLines
* [docs] Softdeprecated C style array declaration in favour of Java style ↵Matus Valo2023-02-181-1/+1
| | | | | declaration (#5248) Co-authored-by: GalaxySnail <me@glxys.nl>
* [docs] Parallelization tutorial (#5184)da-woods2023-02-0611-0/+236
| | | Parallelization tutorial to try to explain prange/parallel in a little more user-friendly way
* Fix linkage for `cdef public` functions in C++ mode (#5040)Maximilien Colange2022-11-081-0/+1
| | | | | | | | | | | | Fixes #1839 cdef public functions should be declared with the appropriate linkage: * in C mode, either extern or extern "C", depending on whether the header file is included in (resp. object code is linked against) a C or a C++ compilation unit. Choice is made at compile-time through #ifdef __cplusplus macros. NB: This is the current behavior. * in C++ mode, extern "C++" is the only option, as C code cannot call C++ code. Note that extern "C++" should be preferred over extern to allow users to #include the C++ header inside a extern "C" block (which is legal, although barely used). Note that the current behavior is OK for C mode, but is incorrect for the C++ mode. As described in #1839, this incorrect behavior is diagnosed by compilers emitting warnings when cdef public functions return a C++ type (e.g. std::vector). The test introduced in this PR checks that the current behavior for C mode (with both C and C++ compatibility) is preserved, and that the behavior for C++ mode is fixed.
* [Doc] Improve documentation of disabling annotations in pure mode (#5080)Matus Valo2022-10-121-0/+33
|
* Use annotation for pointer in docs (#4942)Matus Valo2022-08-021-1/+1
| | | and remove note about bug
* [docs] Fix typo in embedded.pyxda-woods2022-07-271-1/+1
|
* docs: pythonise "Working with Python arrays" (array.rst) (GH-4431)0dminnimda2022-02-026-0/+54
|
* Docs: Migrate profiling tutorial to pure Python (GH-4311)Matus Valo2021-12-1410-13/+56
|
* Add "import_array()" to the Numpy tutorial (GH-4403)da-woods2021-11-021-0/+6
| | | Arguably, it's unnecessary if the auto-call works correctly, but if we're still advising users to do it themselves then it probably should be in the docs.
* docs: Pythonise documentation on Memory Allocation (memory_allocation.rst) ↵0dminnimda2021-08-084-4/+58
| | | | (GH-4316)
* Docs: Introduce pure Python mode in "Using C libraries" tutorial (GH-4294)Matus Valo2021-07-227-8/+97
|
* docs: Use explicitely the "cython" module in examples (GH-4284)Matus Valo2021-07-142-4/+2
|
* docs: Pythonise the "Extension types (aka. cdef classes)" page ↵0dminnimda2021-07-1410-0/+88
| | | | (cdef_classes.rst) (GH-4232)
* docs: Add Pure Python mode to "Calling C functions" tutorial (GH-4247)Matus Valo2021-07-148-0/+28
|
* docs: Resolve several exception handling/propagation issues in the examples.Stefan Behnel2021-06-153-4/+5
|
* docs: Fix type used in C++ example.Stefan Behnel2021-06-151-1/+1
|
* Pythonise the documentation according to #4187: Basic Tutorial ↵0dminnimda2021-06-156-12/+60
| | | | | | | | | | | (cython_tutorial.rst) (GH-4226) See https://github.com/cython/cython/issues/4187 * .gitignore: add directory for docs build and cython_debug * doc-requirements.txt: add sphinx-tabs * conf.py: add and setup sphinx-tabs extension * Create _static\css\tabs.css for customisation * add "two-syntax-variants-used" file as a preface about the different typing variants
* Automatically add stubs for "cython.cimports.*" in the test runner to make ↵Stefan Behnel2021-06-141-0/+5
| | | | them importable in Python (although not necessarily runnable).
* Mark the embedded C main() function in the embedding test as "extern C" in ↵Stefan Behnel2020-05-051-0/+8
| | | | C++ to see if that fixes the C++ builds in MSVC.
* Rename embedding tests in docs to make it easier to find and select in the ↵Stefan Behnel2020-05-052-7/+7
| | | | test suite.
* Remove Py2 fallback from embedding example since the rest of the code is ↵Stefan Behnel2020-05-031-7/+1
| | | | Py3-only anyway.
* Include a complete embedding example in the docs.Stefan Behnel2020-05-032-0/+78
|
* In the documentation, update references to point at `setuptools`. (GH-3456)Diego Elio Pettenò2020-03-242-3/+2
| | | | | | While the directives in the source files are still called `distutils`, the [Python upstream documentation](https://docs.python.org/3/library/distutils.html) does not recommend using distutils anymore, and rather points at setuptools, so avoid confusing new users by providing confusing legacy usage examples. Also, this corrects one example in which Extension is imported too late, and would cause annoying errors when running `setup.py`.
* Use properties in numpy.pxd to avoid a dependency on internal details (GH-3365)Matti Picus2020-02-191-1/+1
|
* Fix line endings.Stefan Behnel2019-02-1566-739/+739
|
* Add safety cast in queue tutorial code that avoids casting a potentially ↵Stefan Behnel2019-02-091-61/+61
| | | | non-pointer-sized "int" to a "void*".
* Enable the NumPy 1.7 API macro in all NumPy integration tests that do not ↵Stefan Behnel2018-09-221-79/+79
| | | | rely on deprecated C-API internaly.
* Merge pull request #2424 from gabrieldemarmiesse/failing_testscoder2018-08-111-0/+16
|\ | | | | Adding tests for "pure python mode" part 13
| * Fixed an example in the documentation.gabrieldemarmiesse2018-08-111-0/+16
| |
* | Use the print function in the nonecheck exampleJohn Kirkham2018-08-031-1/+1
| |
* | Merge pull request #2415 from gabrieldemarmiesse/test_language_basics_5scoder2018-07-071-1/+1
|\ \ | | | | | | Added tests for "language basics" part 5
| * | Removed an outdated pxd, added a declaration of exc.pxd and made two ↵gabrieldemarmiesse2018-07-071-1/+1
| |/ | | | | | | examples for exceptions.
* | Merge pull request #2405 from gabrieldemarmiesse/test_pure_12scoder2018-07-062-0/+15
|\ \ | | | | | | Adding tests for "pure python mode" part 12
| * | Moved an example from pure.rst to the examples directory.gabrieldemarmiesse2018-06-232-0/+15
| |/
* | Merge pull request #2404 from gabrieldemarmiesse/test__profiling_tutorial_6scoder2018-07-061-0/+5
|\ \ | | | | | | Added tests to "profiling tutorial" part 6
| * | moved a small example from the "profiling tutorial" to the examples directory.gabrieldemarmiesse2018-06-231-0/+5
| |/
* | Fixed small formatting issues.gabrieldemarmiesse2018-06-301-1/+1
|/
* Changed a comment to make it more meaningful.gabrieldemarmiesse2018-06-221-1/+1
|
* Refactoring of the extend function to make it simpler.gabrieldemarmiesse2018-06-221-5/+3
|
* Minor improvements to docs examples.Stefan Behnel2018-06-223-3/+3
|
* Merge pull request #2388 from gabrieldemarmiesse/test_string_13scoder2018-06-221-0/+6
|\ | | | | Adding tests for "Unicode and passing strings" part 13
| * Moved an example of for loop with char* to the examples directory.gabrieldemarmiesse2018-06-211-0/+6
| |
* | Merge pull request #2389 from gabrieldemarmiesse/test_string_14scoder2018-06-223-0/+17
|\ \ | | | | | | Adding tests for "Unicode and passing strings" part 14
| * | Moved examples from string.rst and completed them to make them runnable.gabrieldemarmiesse2018-06-213-0/+17
| |/
* | Merge pull request #2387 from gabrieldemarmiesse/test_string_12scoder2018-06-223-0/+27
|\ \ | | | | | | Adding tests for "Unicode and passing strings" part 12
| * | Moved examples from the string.rst to the examples directory.gabrieldemarmiesse2018-06-213-0/+27
| |/
* | Merge pull request #2386 from gabrieldemarmiesse/test_string_11scoder2018-06-221-0/+10
|\ \ | | | | | | Adding tests for "Unicode and passing strings" part 11
| * | Moved an example of decoding cpp strings to the examples directory.gabrieldemarmiesse2018-06-211-0/+10
| |/
* | Merge pull request #2385 from gabrieldemarmiesse/test_string_10scoder2018-06-221-0/+12
|\ \ | | | | | | Adding tests for "Unicode and passing strings" part 10
| * | Fixed a bug in the cpp example and moved it to the examples directory.gabrieldemarmiesse2018-06-211-0/+12
| |/