summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Try to fix cython.inline() on Windows with Py3.8+ where the DLL loading ↵fix_srctree_tests_on_windowsStefan Behnel2020-04-091-0/+7
| | | | requires an explicit registration of the extension output directory.
* Try to fix unicode print output in "unicode_imports" test on Windows with ↵Stefan Behnel2020-04-091-2/+11
| | | | Py2. (Previously failed in appveyor.)
* Include "PYTHONIOENCODING" env var in buildenv test to help debugging print ↵Stefan Behnel2020-04-091-0/+1
| | | | failures.
* Merge branch 'master' into fix_srctree_tests_on_windowsStefan Behnel2020-04-074-7/+11
|\
| * Fix test compilation in MSVC (which rejects literal division by zero).Stefan Behnel2020-04-071-1/+1
| |
| * Merge some runtime compilation runs into a single one in the CPython fstring ↵Stefan Behnel2020-04-071-2/+6
| | | | | | | | test to reduce the overall runtime of the test.
| * Avoid creating unused "__defaults__" getter functions for fused dispatch ↵Stefan Behnel2020-04-072-4/+4
| | | | | | | | | | function. (GH-3491) Closes GH-3481.
* | Merge branch 'master' into fix_srctree_tests_on_windowsStefan Behnel2020-04-061-1/+1
|\ \ | |/
| * Fix buildenv test in Py2.Stefan Behnel2020-04-061-1/+1
| |
* | Merge branch 'master' into fix_srctree_tests_on_windowsStefan Behnel2020-04-0610-112/+448
|\ \ | |/
| * Make sure that the test runner passes the I/O encoding down into end-to-end ↵Stefan Behnel2020-04-061-0/+2
| | | | | | | | srctree tests.
| * Make embed test more debuggable by printing the path setup and the build ↵Stefan Behnel2020-04-062-5/+30
| | | | | | | | output on failure.
| * Try if a random hash seed leads to a better sharding distribution in the ↵Stefan Behnel2020-04-061-1/+6
| | | | | | | | test runner.
| * Include Python/system paths in "buildenv" test output to help with debugging ↵Stefan Behnel2020-04-061-0/+9
| | | | | | | | search path problems.
| * Use CPython provided Py_DecodeLocale() function for embedded CLI argument ↵Stefan Behnel2020-04-061-1/+12
| | | | | | | | decoding in Py3.5+.
| * Bring async generator implementation en par with current CPython 3.9 alpha.Stefan Behnel2020-04-062-98/+315
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * allow closing async generators that are already closed https://bugs.python.org/issue39606 * Prevent double awaiting of async iterator https://bugs.python.org/issue39386 * Fix ag_running; prohibit running athrow/asend/aclose in parallel https://bugs.python.org/issue30773 * Fix asynchronous generators to handle GeneratorExit in athrow() https://bugs.python.org/issue33786 * Ignore GeneratorExit in async_gen_athrow_throw https://bugs.python.org/issue35409 * make async_generator_athrow object tolerant to throwing exceptions https://bugs.python.org/issue38013
| * Explicitly test simple (and optimised) string concatenation in f-strings.Stefan Behnel2020-04-031-0/+59
| |
| * Avoid C compiler warning when refnanny is not used.Stefan Behnel2020-04-031-3/+11
| |
| * Fixed gdb C call to free() that broke "cy exec". (GH-3487)Volker-Weissmann2020-04-031-1/+1
| |
| * Modernise the variable increment in the pyprimes demo script (GH-3486)sairam41232020-04-031-3/+3
| |
* | Enable unicode console output in the test runner on Windows.Stefan Behnel2020-04-032-0/+9
| |
* | Fix work-around for Windows unicode module names in Py3.5/6.Stefan Behnel2020-04-031-5/+10
| |
* | Hack around a distutils 3.[5678] bug on Windows for unicode module names.Stefan Behnel2020-04-021-0/+33
| | | | | | | | https://bugs.python.org/issue39432
* | Merge branch 'master' into fix_srctree_tests_on_windowsStefan Behnel2020-04-0299-703/+2610
|\ \ | |/
| * Relaxed some of the checks on calling fused functions (GH-3381)da-woods2020-04-022-46/+156
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Relaxed some of the checks of fused functions to be consistent with general CyFunctions. ``` # cython: binding=True def f(arg): pass class C: # or cdef class... f = f def g(self, ...): pass C.f(something) or C().f() # doesn't enforce any checks on the type of arg - # with a fused function it does. C.g(something) # assumes that self is "C" (at least for a cdef class) # but doesn't check it. A fused function enforces that it is C. C.f() # fails with a fused function claiming too few arguments, even though # default arguments may make it a valid call ``` Obviously removing checks does make things a little less safe, but it is consistent with the more general function behaviour. (I'm doing this as part of a broad plan to abuse fused functions to be a bit cleverer about decorators, but I don't think the motivation hugely matters for this change)
| * Update changelog.Stefan Behnel2020-04-021-1/+1
| |
| * Fix return type assumption about optimised str() call in Py2.Stefan Behnel2020-04-021-1/+1
| |
| * Update changelog.Stefan Behnel2020-04-021-0/+8
| |
| * Concatenate strings in place if possible (GH-3451)da-woods2020-04-022-5/+129
| | | | | | | | | | | | | | | | | | | | | | | | Optimized inplace operations for str/unicode so that they're genuinely done in place if no-one else needs the object. This is what CPython tries to do (and string concatenation was a point where it significantly beat Cython at times). This only works if the types are known at compile time, so with unknown types CPython will still be faster in some cases. Note: Uses slightly odd-macro trickery - does modify the input argument too (although only in places where it shouldn't matter).
| * Optimize builtin str() calls (GH-3478)William Ayd2020-04-023-0/+83
| |
| * Update changelog.Stefan Behnel2020-04-011-1/+2
| |
| * Fix branch prediction hints for plain (unlikely/exceptional) "raise" ↵Stefan Behnel2020-04-011-5/+9
| | | | | | | | statements in if/else clauses that are not preceded by other statements.
| * Update changelog.Stefan Behnel2020-04-011-0/+4
| |
| * Add test that cascaded assignments support overwriting a variable that is ↵Stefan Behnel2020-04-011-0/+12
| | | | | | | | still in use later.
| * Make fused function dispatch O(n) for `cpdef` functions. (GH-3366)will-ca2020-04-013-26/+148
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Rewrote signature matching for fused cpdef function dispatch to use a pre-built tree index in a mutable default argument and be O(n). * Added test to ensure proper differentiation between ambiguously compatible and definitely compatible arguments. * Added test to ensure fused cpdef's can be called by the module itself during import. * Added test to ensure consistent handling of ambiguous fused cpdef signatures. * Test for explicitly defined fused cpdef method. * Add .komodoproject to .gitignore. * Add /cython_debug/ to .gitignore. Closes #1385.
| * Avoid relying on signed integer overflow in f-string joining helper function.Stefan Behnel2020-03-311-3/+6
| |
| * Disable a saved compiler option in the test runner that cannot currently be ↵Stefan Behnel2020-03-311-1/+1
| | | | | | | | changed in the tests directly (only in external compiler runs).
| * Cython header file for C++ `std::atomic` type (GH-3469)da-woods2020-03-313-0/+148
| |
| * Merge branch '0.29.x'Stefan Behnel2020-03-311-2/+12
| |\
| | * Update changelog.Stefan Behnel2020-03-311-0/+13
| | |
| | * Make `Shadow.inline()` caching account for language version and compilation ↵will-ca2020-03-312-8/+27
| | | | | | | | | | | | | | | | | | environment. (GH-3440) Closes https://github.com/cython/cython/issues/3419
| | * Update somewhat incorrect comment.Stefan Behnel2020-03-311-1/+1
| | |
| | * Remove redundant type check.Stefan Behnel2020-03-311-1/+1
| | |
| | * Avoid using PyUnicode_GET_SIZE() in PEP393 code.Stefan Behnel2020-03-311-2/+2
| | |
| * | Update changelog.Stefan Behnel2020-03-311-1/+1
| | |
| * | Add a dedicated test for and/or operators in a boolean context.Stefan Behnel2020-03-311-0/+119
| | |
| * | Save "cache_builtins" option in test runner to make it changeable in tests.Stefan Behnel2020-03-311-1/+7
| | |
| * | Update changelog.Stefan Behnel2020-03-311-2/+14
| | |
| * | Specialize fused function local variables specified with pure-python (GH-3463)da-woods2020-03-316-8/+30
| | | | | | | | | | | | | | | | | | | | | These were previously getting missed. Added code to specialize them and tests to prove it. Fixes https://github.com/cython/cython/issues/3142 Also fixes https://github.com/cython/cython/issues/3460 - (seems related enough to go in the same PR)
| * | Make `Shadow.inline()` caching account for language version and compilation ↵will-ca2020-03-262-10/+27
| | | | | | | | | | | | | | | environment. (GH-3440) Closes https://github.com/cython/cython/issues/3419