Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #77814 > unrolled thread
| Started by | Stefan Behnel <stefan_ml@behnel.de> |
|---|---|
| First post | 2014-09-12 18:42 +0200 |
| Last post | 2014-09-12 18:42 +0200 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: pylint for cython? Stefan Behnel <stefan_ml@behnel.de> - 2014-09-12 18:42 +0200
| From | Stefan Behnel <stefan_ml@behnel.de> |
|---|---|
| Date | 2014-09-12 18:42 +0200 |
| Subject | Re: pylint for cython? |
| Message-ID | <mailman.13976.1410540152.18130.python-list@python.org> |
Skip Montanaro schrieb am 12.09.2014 um 17:52: > I have slowly been converting some Python source to Cython. I'm pretty > conservative in what changes I make, mostly sprinkling a few "cdef", > "float" and "int" declarations around the pyx file. Still, conservative or > not, it's enough to choke pylint. Rather than have to maintain a pure > Python version of my code, it would be nice if pylint had a flag or if > there was a "cylint" tool available. If you really just do things like "cdef int x", I recommend using pure Python syntax for it (in a .py file). That way, you can just run pylint over it as before. http://docs.cython.org/src/tutorial/pure.html#static-typing Specifically, the "@cython.locals()" decorator might be all you need, or maybe some of the other things like "@cython.cfunc". Stefan
Back to top | Article view | comp.lang.python
csiph-web