Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
| * | Avoid copying unaligned 16-bit values since some platforms require them to ↵ | Stefan Behnel | 2021-09-01 | 1 | -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 Behnel | 2021-09-01 | 1 | -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-woods | 2021-08-31 | 1 | -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-woods | 2021-08-31 | 2 | -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 Bachmann | 2021-08-31 | 1 | -1/+1 | |
| | | | | | | "PyUnicode_CompareWithASCIIString()" does not raise exceptions and takes a "const char*" as argument. | |||||
* | | Fix some bugs on Windows (GH-4331) | 0dminnimda | 2021-08-31 | 2 | -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-woods | 2021-08-09 | 1 | -1/+1 | |
| | | ||||||
* | | docs: Pythonise documentation on Memory Allocation (memory_allocation.rst) ↵ | 0dminnimda | 2021-08-08 | 5 | -10/+92 | |
| | | | | | | | | (GH-4316) | |||||
* | | Restore error when using arbitrary decorators on cdef functions (GH-4323) | da-woods | 2021-08-07 | 2 | -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-woods | 2021-08-07 | 2 | -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 Behnel | 2021-08-07 | 1 | -1/+1 | |
| | | ||||||
* | | Fix output encoding problems in the test runner with Py2.7 by not trying to ↵ | Stefan Behnel | 2021-08-07 | 1 | -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 Behnel | 2021-08-07 | 1 | -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 Behnel | 2021-08-06 | 1 | -2/+2 | |
| | | | | | | | | implicit calls to str() with (unicode) string concatenation. | |||||
* | | Fix output encoding problems in the test runner with Py2.7. | Stefan Behnel | 2021-08-06 | 1 | -3/+3 | |
| | | ||||||
* | | runtests: include the C compiler error output in the compile exception to ↵ | Stefan Behnel | 2021-07-31 | 3 | -33/+48 | |
| | | | | | | | | show it at the end of the test run. | |||||
* | | Enable more cpp_locals tests (GH-4320) | da-woods | 2021-07-31 | 3 | -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 Behnel | 2021-07-27 | 2 | -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 Behnel | 2021-07-26 | 2 | -1/+3 | |
| | | | | | | | | compare the 'directivetype' to 'str', which misses Py2 str when compiling with language level 3. | |||||
* | | Fix some imports. | Stefan Behnel | 2021-07-26 | 1 | -1/+2 | |
| | | ||||||
* | | Add missing attribute declaration for FunctionState class. | Stefan Behnel | 2021-07-26 | 1 | -0/+1 | |
| | | ||||||
* | | Fix type declaration in parser. | Stefan Behnel | 2021-07-26 | 1 | -2/+2 | |
| | | ||||||
* | | Add CI jobs that compile more Cython modules with "--cython-compile-all", to ↵ | Stefan Behnel | 2021-07-26 | 2 | -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-woods | 2021-07-26 | 5 | -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 Behnel | 2021-07-25 | 1 | -0/+5 | |
| | | ||||||
* | | Make __PYX_WARN_IF_INIT_CALLED name unique per-module in generated header ↵ | da-woods | 2021-07-23 | 2 | -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 Valo | 2021-07-22 | 8 | -122/+485 | |
| | | ||||||
* | | Support arbitrary mappings in C++ dict-to-map conversion, not just exact dicts. | Stefan Behnel | 2021-07-22 | 2 | -13/+33 | |
| | | ||||||
* | | Merge branch '0.29.x' | Stefan Behnel | 2021-07-22 | 0 | -0/+0 | |
|\ \ | |/ | ||||||
| * | Make a helper function in a C++ test correctly propagate exceptions so that ↵ | Stefan Behnel | 2021-07-22 | 1 | -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 Behnel | 2021-07-22 | 1 | -13/+26 | |
| | | | | | | | | image. | |||||
* | | docs: Change cast(...) -> cython.cast(...) in "language basics" examples ↵ | Matus Valo | 2021-07-21 | 1 | -2/+2 | |
| | | | | | | | | (GH-4304) | |||||
* | | Prepare release of 3.0.0a93.0.0a9 | Stefan Behnel | 2021-07-20 | 2 | -2/+2 | |
| | | ||||||
* | | docs: Change "Microsoft's Visual C" to "Microsoft Visual C/C++ (MSVC)" (GH-4142) | Shreyan Avigyan | 2021-07-20 | 1 | -2/+2 | |
| | | ||||||
* | | Introduce pure Python mode in the "language basics" documentation (GH-4242) | Matus Valo | 2021-07-20 | 13 | -141/+678 | |
| | | | | | | See https://github.com/cython/cython/issues/4187 | |||||
* | | Document `typeof` in pure.rst (GH-4301) | 0dminnimda | 2021-07-20 | 1 | -0/+7 | |
| | | ||||||
* | | Update changelog. | Stefan Behnel | 2021-07-20 | 1 | -0/+12 | |
| | | ||||||
* | | Explicitly return None from a method that is expected to return something ↵ | Stefan Behnel | 2021-07-20 | 1 | -0/+1 | |
| | | | | | | | | otherwise. | |||||
* | | Rewrite the section on fused types in function signatures to make it clearer ↵ | Stefan Behnel | 2021-07-20 | 1 | -11/+27 | |
| | | | | | | | | how multiple fused types interact here. | |||||
* | | Refactor function to make it less verbose and simpler to change: error cases ↵ | Stefan Behnel | 2021-07-20 | 1 | -12/+7 | |
| | | | | | | | | first, then special cases, then normal behaviour. | |||||
* | | Make code more readable by changing the order of a condition and moving the ↵ | Stefan Behnel | 2021-07-20 | 1 | -45/+45 | |
| | | | | | | | | simple return case first. | |||||
* | | Update changelog. | Stefan Behnel | 2021-07-20 | 1 | -0/+25 | |
| | | ||||||
* | | Prevent C++ coercions from picking up user-set directives (GH-4206) | da-woods | 2021-07-20 | 2 | -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-interpreter | Robert Bradshaw | 2021-07-19 | 1 | -22/+38 | |
|\ \ | | | | | | | Add --skip-interpreter option to cygdb | |||||
| * | | Add --skip-interpreter option | Alessandro Molina | 2021-05-21 | 1 | -22/+38 | |
| | | | ||||||
* | | | Resolve some issues with "cpp_locals" (GH-4265) | da-woods | 2021-07-19 | 42 | -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-woods | 2021-07-19 | 2 | -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-woods | 2021-07-19 | 3 | -10/+225 | |
| | | | ||||||
* | | | Add missing "max_element()" in libcpp.algorithms (GH-4271) | da-woods | 2021-07-18 | 2 | -4/+8 | |
| | | | ||||||
* | | | Fix and enforce a couple of code formatting issues. (II) | Stefan Behnel | 2021-07-18 | 1 | -13/+13 | |
| | | |