scoder

Results 66 issues of scoder

### Describe the bug PEP-669 (https://peps.python.org/pep-0669/) and its implementation in https://github.com/python/cpython/pull/103083 change the internals of CPython's tracing in Py3.12. We need to adapt. Currently, profiling fails in Py3.12. Compilation was...

defect
Python Semantics

The usefulness of the `Cython/Shadow.py` module for pure Python code is currently limited by the difficulty of shipping it to users, without conflicting with other packages that would try to...

As noted in https://github.com/cython/cython/issues/1461#issuecomment-468894250, module init code in include files reports line traces for the file that contains the main module function, not for the include file. This is because...

defect
Code Generation
Cython Language Feature

### Is your feature request related to a problem? Please describe. Due to its complex feature set, the memoryview implementation is actually quite large, and can add a substantial amount...

Code Generation
cleanup

Make "c_string_type=str" a synonym of "c_string_type=unicode" and "c_string_encoding=default" a synonym of "c_string_encoding=utf8". Closes https://github.com/cython/cython/issues/6280

cleanup

### Is your feature request related to a problem? Please describe. Type annotations for global names are currently ignored. The following uses dict lookups in the global module namespace to...

enhancement
Pure Python Mode
Type Analysis

**Is your feature request related to a problem? Please describe.** Running coverage.py on Cython code with `sys.monitoring` in Py3.13 disables the Cython coverage plugin: https://github.com/nedbat/coveragepy/blob/7f336228d78d8338239d4da4d4de3ade0abd0901/coverage/control.py#L565-L568 **Describe the solution you'd like**...

enhancement

The "extra_directives" were apparently never passed down into the test class and thus never used, leading to redundant identical test execution. Also, the error tests should never need this duplication...

defect
Testing

### Describe your issue In several places, we access the exception state as 3 references: (type, value, traceback). Python 3 has long had the traceback referenced by the exception object...

Code Generation
cleanup

The change in https://github.com/cython/cython/pull/6124 breaks a function that is implicit noexcept in the pxd file as in: ``` $ cat a.pxd cdef int f() $ cat a.pyx cdef int f():...

defect
Type Analysis