summaryrefslogtreecommitdiff
path: root/Cython/Compiler/CythonScope.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix failing relative imports in __init__ files. (#4552)Matus Valo2022-10-011-1/+1
| | | Fixes lookup of from `. cimport modulename` when called in `__init__.*` files - previously it looked in the parent directory of the package while now it looks in the package.
* Implement cdef dataclasses (GH-3400)da-woods2022-01-291-1/+9
| | | | | | | | | | | | New decorator/function "@cython.dataclasses.dataclass" and "cython.dataclasses.field()" to mark dataclasses and their fields. Tries to match the interface provided by a regular dataclass as much as possible. This means taking the types from the dataclasses module if available (so they match exactly) or a fallback Python version that just implements the core parts (executed with "PyRun_String()" in the C source). Use of placeholders in generated "__init__" code means the code in the C file isn't hugely readable. Probably not a huge issue, but don't really see a way round that. As part of this I've also also implemented a Cython version of "typing.ClassVar". Although really designed for use with dataclasses it behaves sensibly when used in types in a normal cdef class. This is worth documenting more thoroughly. Closes https://github.com/cython/cython/issues/2903
* Avoid the terms whitelist and blacklist.Robert Bradshaw2020-12-181-1/+1
| | | | | Though pretty standard, I can see how the use of these terms could reasonably be viewed as offensive.
* Mark view.* extension types as non-imported so that they can be inherited ↵da-woods2020-03-241-0/+9
| | | | from. (GH-3413)
* Misc typosluz.paz2018-03-121-1/+1
| | | Found via `codespell`
* Do not issue "redefined" warnings on C++ function overrides with different ↵Stefan Behnel2018-03-111-0/+4
| | | | | | signatures (previously only applied to methods). Closes #2013.
* Add support for the typeid operatorempyrical2016-08-051-1/+3
|
* use explicit relative imports everywhere and enable absolute imports by defaultStefan Behnel2014-06-171-6/+9
|
* Move cython.array to cython.view.array to avoid conflicts with pure-mode ↵Mark Florisson2012-02-251-1/+1
| | | | cython.array
* Use whitelist for declaring entries in a scopeMark Florisson2012-01-291-2/+3
|
* Merge cython array utility with memoryview utilityMark Florisson2012-01-291-7/+3
|
* removed lots of unused imports, delayed some imports that are only needed ↵Stefan Behnel2011-11-131-2/+0
| | | | | | | for Cython specific syntax --HG-- extra : rebase_source : a2df3675fd1efae1a1122ca9742e99ab1405fba6
* Merge in fixes from masterMark Florisson2011-10-131-3/+19
|\
| * Defer loading cython scope until necessaryMark Florisson2011-10-131-11/+24
| |
* | Fix cython scope caching (it breaks about half of the test suite, but it ↵Mark Florisson2011-10-031-8/+3
| | | | | | | | probably slow down cython.compile)
* | merge -- working fused types, broken cython testscopeMark Florisson2011-10-021-31/+122
|\ \ | |/
| * cimport cython in CyUtility, more tests, nogil slicingMark Florisson2011-09-301-5/+10
| |
| * Support slicing memoryview objectsMark Florisson2011-09-301-8/+4
| |
| * Support casting pointers to cython.arrayMark Florisson2011-09-301-17/+10
| |
| * MemoryViewSlice indexing and object coercion + MemoryView indexingMark Florisson2011-09-301-5/+17
| |
| * Change memview access and packing modifier constantsMark Florisson2011-09-301-1/+1
| |
| * Modify utility code loader as per discussion + testsMark Florisson2011-09-301-3/+2
| |
| * Utility Code loader + memview python3 compatMark Florisson2011-09-301-234/+17
| |
| * Fix cythonarray testMark Florisson2011-09-301-17/+12
| |
| * Get rid of a lot of entry declarations + optional argument to not allocate ↵Mark Florisson2011-09-301-79/+30
| | | | | | | | buffer in cython.array
| * py23 compatMark Florisson2011-09-301-1/+1
| |
| * Fix strides array bugMark Florisson2011-09-301-2/+2
| |
| * use_utility_code vs. memoryviews fixupDag Sverre Seljebotn2011-09-301-2/+6
| |
| * replacement of 'f' flag with 'fortran' in cython.array.Kurt Smith2011-09-301-4/+4
| |
| * memviewslice copy implementation.Kurt Smith2011-09-301-6/+9
| |
| * moved memoryview initialization function from CythonUtilCode to pure CKurt Smith2011-09-301-145/+1
| |
| * added array_cwrapper convenience function in CythonScope.pyKurt Smith2011-09-301-0/+4
| |
| * fixed bug in init_memviewslice_from_memviewKurt Smith2011-09-301-4/+18
| |
| * memoryviewslice declaration and assignments work.Kurt Smith2011-09-301-1/+10
| |
| * rename memviewslice init function.Kurt Smith2011-09-301-1/+1
| |
| * consistent naming scheme for memoryviews and memoryview slices.Kurt Smith2011-09-301-15/+15
| |
| * coercion and validation for memoryview wrappers.Kurt Smith2011-09-301-15/+132
| |
| * memoryview utility code pulled in when memview array syntax used in Cython ↵Kurt Smith2011-09-301-10/+19
| | | | | | | | source.
| * Terrible hack, FIXME FIXMEDag Sverre Seljebotn2011-09-301-2/+2
| |
| * cython.memoryview implementationKurt Smith2011-09-301-29/+66
| |
| * Remove hardcoded string, refer to Naming.typeptr_prefix instead.Kurt Smith2011-09-301-1/+2
| |
| * cython.array implementation & tests.Kurt Smith2011-09-301-1/+158
| |
| * Populate the cython.view module with some Python objectsDag Sverre Seljebotn2011-09-301-0/+21
| |
| * Delete trailing whitespacesVitja Makarov2011-07-251-3/+3
| |
| * Support CythonUtilityCode dependencies in CythonUtilityCodeMark Florisson2011-07-191-1/+14
| |
| * Cython Utility Code cname extclass decorator + extmethod prototypesMark Florisson2011-07-191-22/+70
| |
| * Support cname() decorators in CythonUtilityCodeMark Florisson2011-07-191-4/+9
| |
| * Make it possible to construct sub-magic-modules of cythonDag Sverre Seljebotn2011-07-191-9/+57
| |
| * Refactor the 'cython' cimport scope to use CythonUtilityCodeDag Sverre Seljebotn2011-07-191-36/+47
| |
* | Support fused cpdef functions with Python indexingMark Florisson2011-05-131-0/+7
| |