4 ms·
How do you develop your Cython code? Do you use PyCharm? Did you start off from pure Python code? How easy is debugging and refactoring?
by denfromufa 10y ago
How do you develop your Cython code? Do you use PyCharm? Did you start off from pure Python code? How easy is debugging and refactoring?
- 1st1 10y agoI use SublimeText with a Cython highlighter; @redcrowbar uses Atom. I started coding uvloop & asyncpg directly in Cython, basically from scratch. Debugging & refactoring are pretty much as easy as for pure Python code (which is a huge win over C). Sometimes when you're writing low-level code you can get a segfault, in which case lldb (or gdb) help you understand what's going on relatively quickly.
- denfromufa 10y agoSo do you use cygdb to debug Cython code or directly debug the generated C-API code?
- 1st1 10y agoI usually debug the generated C code directly (usually it's quite easy to understand the bug once you see where the program crashes.)