2013-03-28 14:37:17 -07:00
|
|
|
|
2013-03-29 08:46:32 -07:00
|
|
|
Style
|
|
|
|
=====
|
|
|
|
|
|
|
|
* For indentation, use *four space characters* per level of indentation.
|
|
|
|
|
2013-03-30 06:00:50 -07:00
|
|
|
* When comparing C pointers, use == and != instead of the python operator "is".
|
|
|
|
This makes a visual distinction between C and py code and don't confuse the
|
|
|
|
reader as "==" and "is" has different meaning in python.
|
2013-03-29 08:46:32 -07:00
|
|
|
|
|
|
|
Tips
|
|
|
|
====
|
|
|
|
|
|
|
|
* cython -a will generate a report that shows your cython code, and each line
|
|
|
|
can be expanded by clicking to show the generated C code.
|
|
|
|
|
|
|
|
* cython does automatic dict <-> struct conversion with basic struct members
|
|
|
|
|
|
|
|
Ideas
|
|
|
|
=====
|
|
|
|
|
|
|
|
* Use a decorator for _METHOD_DEPRECATED
|