scoder

Results 66 issues of scoder

The `StaticFileHandler` should use `os.sendfile()` if available. While static files would commonly be sent by an external webserver (nginx etc.) in a production environment, sometimes files are generated on the...

iostream

I noticed that the Windows build jobs take very long to finish, e.g. ~40 minutes (Windows) vs. ~9 minutes (Linux). This is not a hardware issue, the Windows VMs seem...

Build System

The debug builds of CPython enable many nice assertions to find bugs in C extensions. It would be nice to have at least one debug build (say, of the latest...

task
Testing

Generator expressions and comprehensions seem to need a lot more testing, especially in combination with all the loop optimisations that we have: lists/tuples, `range()`, `enumerate()`, bytes/bytearray/unicode, memoryviews, C arrays, you...

defect
Optimization
Testing

From a CI log of 3.0 (master branch, https://github.com/cython/cython/commit/16811213c6e21459582e29eb33f4a4fb80322b86, post-3.0a11): ``` Python 2.7.17 python2.7-dbg: ../Objects/typeobject.c:4130: PyType_Ready: Assertion `type->tp_dict != NULL' failed. ./Tools/ci-run.sh: line 170: 5005 Aborted (core dumped) CFLAGS=$CFLAGS $PYTHON_DBG...

defect
Code Generation

[Conditional compilation](http://docs.cython.org/en/latest/src/userguide/language_basics.html#conditional-compilation) is a feature that was inherited from Pyrex that never had a high standing amongst the Cython developers. It also takes up quite a bit of code space...

cleanup
Cython Language Feature

The [cygdb documentation](https://cython.readthedocs.io/en/latest/src/userguide/debugging.html) still refers to Python 2, whereas most Linux distributions probably have switched to Python 3 by default these days and also provide gdb for that version. Ubuntu...

Documentation

Lots of error cases are untested, which is worth improving but not urgently so. Here are some chunks of code that _should_ better be tested (line numbers as found in...

help wanted
good first issue
defect
Testing

The parse function structure of the parser implementation in `Cython/Compiler/Parsing.py` has diverged from the old Grammar in CPython and certainly does not match the new PEG parser. Additionally, several flags...

Parsing
cleanup

`Py_SetProgramName()`, like other `wchar_t` functions, has been deprecated. https://docs.python.org/3.12/c-api/init.html#c.Py_SetProgramName ``` embedded_main.c: In function ‘main’: embedded_main.c:29:5: warning: ‘Py_SetProgramName’ is deprecated [-Wdeprecated-declarations] Py_SetProgramName(program); ^~~~~~~~~~~~~~~~~ In file included from /opt/hostedtoolcache/Python/3.11.0-beta.4/x64/include/python3.11/Python.h:94, from embedded.h:6, from...

defect
Code Generation