summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| * Avoid copying unaligned 16-bit values since some platforms require them to ↵Stefan Behnel2021-09-011-14/+3
| | | | | | | | | | | | be aligned. Use memcpy() instead to let the C compiler decide how to do it. Closes https://github.com/cython/cython/issues/4343
* | Avoid copying unaligned 16-bit values since some platforms require them to ↵Stefan Behnel2021-09-011-3/+3
| | | | | | | | | | | | be aligned. Use memcpy() instead to let the C compiler decide how to do it. Closes https://github.com/cython/cython/issues/4343
* | Update docs to recommend using MSVC on Windows (GH-4345)da-woods2021-08-311-4/+7
| | | | | | | | | | | | | | See https://github.com/cython/cython/pull/4142#issuecomment-831464115 I don't think MinGW has worked since around Python 3.4 (but I'm not completely confident in that) while I know that MSVC does work. Therefore we should recommend that.
* | Deduplicate tuples containing IdentifierStringNode (GH-4353)da-woods2021-08-312-0/+34
| | | | | | Compiling ExprNodes.py was creating hundreds of tuples containing ("self", "env") for example, because it wasn't able to match and deduplicate them.
* | Fix signature of "PyUnicode_CompareWithASCIIString" (GH-4344)Max Bachmann2021-08-311-1/+1
| | | | | | "PyUnicode_CompareWithASCIIString()" does not raise exceptions and takes a "const char*" as argument.
* | Fix some bugs on Windows (GH-4331)0dminnimda2021-08-312-11/+40
| | | | | | | | | | | | | | * Avoid usage of `const` or `volatile` in buffer struct field declarations. * Avoid newline replacement in the test helper functions `write_file()` and `write_newer_file()`. See https://github.com/cython/cython/pull/4324
* | docs: fix internal link (GH-4333)da-woods2021-08-091-1/+1
| |
* | docs: Pythonise documentation on Memory Allocation (memory_allocation.rst) ↵0dminnimda2021-08-085-10/+92
| | | | | | | | (GH-4316)
* | Restore error when using arbitrary decorators on cdef functions (GH-4323)da-woods2021-08-072-1/+48
| | | | | | | | | | These were lost when cdef properties (for extern types) were introduced. Closes #4322 (based on my interpretation of the problem as an error-reporting issue)
* | Suppress warnings about constant expressions on MSVC (GH-4317)da-woods2021-08-072-0/+31
| | | | | | Adds utility code sections to toggle C compiler warnings for the duration of the utility code.
* | Py3.4 does not support '%' formatting for byte strings.Stefan Behnel2021-08-071-1/+1
| |
* | Fix output encoding problems in the test runner with Py2.7 by not trying to ↵Stefan Behnel2021-08-071-3/+6
| | | | | | | | decode the C compiler output and instead printing it unchanged as bytes.
* | Revert "Fix output encoding problems in the test runner with Py2.7 by ↵Stefan Behnel2021-08-071-2/+2
| | | | | | | | | | | | replacing implicit calls to str() with (unicode) string concatenation." This reverts commit 931710d8b12424f4d4c5466bede28ed14f16ca5e.
* | Fix output encoding problems in the test runner with Py2.7 by replacing ↵Stefan Behnel2021-08-061-2/+2
| | | | | | | | implicit calls to str() with (unicode) string concatenation.
* | Fix output encoding problems in the test runner with Py2.7.Stefan Behnel2021-08-061-3/+3
| |
* | runtests: include the C compiler error output in the compile exception to ↵Stefan Behnel2021-07-313-33/+48
| | | | | | | | show it at the end of the test run.
* | Enable more cpp_locals tests (GH-4320)da-woods2021-07-313-6/+2
| | | | | | Turns out that typeid() and C++ operators already work with "cpp_locals".
* | Add a warning in the docs that "conditional compilation" is not a good way ↵Stefan Behnel2021-07-272-1/+11
| | | | | | | | | | | | to do most things that users commonly do with it. See the discussion in https://github.com/cython/cython/issues/4287
* | Fix compilation of "ParseTreeTransforms" in Py2. It previously tried to ↵Stefan Behnel2021-07-262-1/+3
| | | | | | | | compare the 'directivetype' to 'str', which misses Py2 str when compiling with language level 3.
* | Fix some imports.Stefan Behnel2021-07-261-1/+2
| |
* | Add missing attribute declaration for FunctionState class.Stefan Behnel2021-07-261-0/+1
| |
* | Fix type declaration in parser.Stefan Behnel2021-07-261-2/+2
| |
* | Add CI jobs that compile more Cython modules with "--cython-compile-all", to ↵Stefan Behnel2021-07-262-1/+23
| | | | | | | | make sure that this keeps working and to allow comparing the performance difference.
* | Fix the type of the 'self' argument in a cdef staticmethod declared in a pxd ↵da-woods2021-07-265-12/+25
| | | | | | | | | | | | | | | | | | | | file (GH-4085) Fixes https://github.com/cython/cython/issues/3174 Closes https://github.com/cython/cython/pull/3175 I've removed all identification of is_self_arg from the parser, since I think it's better dealt with when analysing the declarations. Original test copied from https://github.com/cython/cython/pull/3175
* | Add a note on crypto currency donations (any why we shouldn't take them).Stefan Behnel2021-07-251-0/+5
| |
* | Make __PYX_WARN_IF_INIT_CALLED name unique per-module in generated header ↵da-woods2021-07-232-3/+34
| | | | | | | | | | files (GH-4309) Fixes https://github.com/cython/cython/issues/4308
* | Docs: Introduce pure Python mode in "Using C libraries" tutorial (GH-4294)Matus Valo2021-07-228-122/+485
| |
* | Support arbitrary mappings in C++ dict-to-map conversion, not just exact dicts.Stefan Behnel2021-07-222-13/+33
| |
* | Merge branch '0.29.x'Stefan Behnel2021-07-220-0/+0
|\ \ | |/
| * Make a helper function in a C++ test correctly propagate exceptions so that ↵Stefan Behnel2021-07-221-1/+1
| | | | | | | | it won't have to spit out compiler warnings.
* | Build Linux wheels for recent Python versions from a newer GLIBC-2.24 docker ↵Stefan Behnel2021-07-221-13/+26
| | | | | | | | image.
* | docs: Change cast(...) -> cython.cast(...) in "language basics" examples ↵Matus Valo2021-07-211-2/+2
| | | | | | | | (GH-4304)
* | Prepare release of 3.0.0a93.0.0a9Stefan Behnel2021-07-202-2/+2
| |
* | docs: Change "Microsoft's Visual C" to "Microsoft Visual C/C++ (MSVC)" (GH-4142)Shreyan Avigyan2021-07-201-2/+2
| |
* | Introduce pure Python mode in the "language basics" documentation (GH-4242)Matus Valo2021-07-2013-141/+678
| | | | | | See https://github.com/cython/cython/issues/4187
* | Document `typeof` in pure.rst (GH-4301)0dminnimda2021-07-201-0/+7
| |
* | Update changelog.Stefan Behnel2021-07-201-0/+12
| |
* | Explicitly return None from a method that is expected to return something ↵Stefan Behnel2021-07-201-0/+1
| | | | | | | | otherwise.
* | Rewrite the section on fused types in function signatures to make it clearer ↵Stefan Behnel2021-07-201-11/+27
| | | | | | | | how multiple fused types interact here.
* | Refactor function to make it less verbose and simpler to change: error cases ↵Stefan Behnel2021-07-201-12/+7
| | | | | | | | first, then special cases, then normal behaviour.
* | Make code more readable by changing the order of a condition and moving the ↵Stefan Behnel2021-07-201-45/+45
| | | | | | | | simple return case first.
* | Update changelog.Stefan Behnel2021-07-201-0/+25
| |
* | Prevent C++ coercions from picking up user-set directives (GH-4206)da-woods2021-07-202-5/+24
| | | | | | | | For example, if they're called on entry/exit to a decorated function they pick up the directives. They should really be independent of most user defined settings, especially local ones.
* | Merge pull request #4186 from amol-/cygdb-optional-interpreterRobert Bradshaw2021-07-191-22/+38
|\ \ | | | | | | Add --skip-interpreter option to cygdb
| * | Add --skip-interpreter optionAlessandro Molina2021-05-211-22/+38
| | |
* | | Resolve some issues with "cpp_locals" (GH-4265)da-woods2021-07-1942-60/+137
| | | | | | | | | | | | | | | | | | | | | * Fix class attributes access where cpp_locals=False. * Add "no-cpp-locals" tag to mark a test as not suitable for running with "cpp_locals=True". * Add a list of "extra_directives" to runtests as additional test mode. Resolves some issues in https://github.com/cython/cython/issues/4266
* | | Rename GeneratorExpressionScope to ComprehensionScope (GH-4275)da-woods2021-07-192-9/+9
| | | | | | | | | Seems a remanant of an earlier implementation, but generator expressions *never* use "GeneratorExpressionScope" and in fact it's only used for comprehensions.
* | | Add missing multiset class to the standard library bindings (GH-4273)da-woods2021-07-193-10/+225
| | |
* | | Add missing "max_element()" in libcpp.algorithms (GH-4271)da-woods2021-07-182-4/+8
| | |
* | | Fix and enforce a couple of code formatting issues. (II)Stefan Behnel2021-07-181-13/+13
| | |