Skip to content
#

cpython

Here are 131 public repositories matching this topic...

Bluenix2
Bluenix2 commented Aug 7, 2021

Is your feature request related to a problem? Please describe.
Many static type checkers have issues finding Cython's stubs.
Here is from running mypy on my current project:

error: Skipping analyzing "cython": found module but no type hints or library stubs

The same issue can be seen when using import Cython as cython:

error: Skipping analyzing "Cython": found module but 
denfromufa
denfromufa commented Oct 23, 2017

Based on pythonnet/pythonnet#554

> #r C:\\Python\\Python35_64b\\lib\\site-packages\\Python.Runtime.DLL
> using Python.Runtime;
> dynamic np; using (Py.GIL()) { np = Py.Import("numpy");};
> using System.Collections.Generic;
> using System.Collections;
> dynamic a = np.array(new List<float> { 1, 2, 3 });
> dynamic b = np.array(new List<float> { 6, 5, 4 }, dtype:
circuitpython
jepler
jepler commented Aug 19, 2021

This can reduce the amount of boilerplate required. Instead of introducing a macro such as QRIO_MODULE dependent on CIRCUITPY_QRIO and then adding an expansion of it in MICROPY_PORT_BUILTIN_MODULES_STRONG_LINKS, one simply writes in the bindings __init__.c file:

MP_REGISTER_MODULE(MP_QSTR_qrio, qrio_module, CIRCUITPY_QRIO);

where the first item is the module name as a qstr, th

Improve this page

Add a description, image, and links to the cpython topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the cpython topic, visit your repo's landing page and select "manage topics."

Learn more