Skip to content

mypyc questions #4

Answered by ichard26
dineshbvadhia asked this question in Q&A
Aug 8, 2022 · 1 comments · 4 replies
Discussion options

You must be logged in to vote

Hey thanks for reading my blog series, I appreciate the kind words!

i. Does mypyc handle external libraries, specifically those built with C like numpy, well?

Probably...? Black uses typed-ast to parse Python code into an AST on Python 3.7 and below (IIRC?) which is a CPython C Extension and I haven't encountered any weird issues calling to non-mypyc extension code from mypyc code and vice versa yet. In general, I'd assume things should be fine since mypyc would use standard C-APIs to interact with the objects, functions, and classes from external libraries (regardless if it's in C or Python).

ii. If Python code includes existing C-extensions (for certain functions) then does mypyc han…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@dineshbvadhia
Comment options

@hauntsaninja
Comment options

@dineshbvadhia
Comment options

@hauntsaninja
Comment options

Answer selected by ichard26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants