Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #77814
| From | Stefan Behnel <stefan_ml@behnel.de> |
|---|---|
| Subject | Re: pylint for cython? |
| Date | 2014-09-12 18:42 +0200 |
| References | <CANc-5UzRE3dscU4KDF-DUxiSq3h5_Zg1e7Rf_RXnU_bOM0b8ew@mail.gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.13976.1410540152.18130.python-list@python.org> (permalink) |
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 comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: pylint for cython? Stefan Behnel <stefan_ml@behnel.de> - 2014-09-12 18:42 +0200
csiph-web