Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #77814
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!ecngs!feeder2.ecngs.de!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed1a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <python-python-list@m.gmane.org> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.000 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'syntax': 0.04; 'decorator': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'python': 0.11; 'mostly': 0.14; 'changes': 0.15; '.py': 0.16; 'before.': 0.16; 'declarations': 0.16; 'email name:"': 0.16; 'file).': 0.16; 'from:addr:behnel.de': 0.16; 'from:addr:stefan_ml': 0.16; 'from:name:stefan behnel': 0.16; 'make,': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'stefan': 0.19; 'not,': 0.20; 'code,': 0.22; '(in': 0.22; 'header :User-Agent:1': 0.23; 'skip': 0.24; 'file.': 0.24; 'source': 0.25; 'header:X-Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'converting': 0.30; "i'm": 0.30; 'run': 0.32; 'maybe': 0.34; 'tool': 0.35; 'received:84': 0.35; 'there': 0.35; 'version': 0.36; 'really': 0.36; 'subject:?': 0.36; 'url:org': 0.36; 'to:addr :python-list': 0.38; 'rather': 0.38; 'to:addr:python.org': 0.39; 'enough': 0.39; 'received:org': 0.40; 'slowly': 0.60; 'conservative': 0.84 |
| X-Injected-Via-Gmane | http://gmane.org/ |
| To | python-list@python.org |
| From | Stefan Behnel <stefan_ml@behnel.de> |
| Subject | Re: pylint for cython? |
| Date | Fri, 12 Sep 2014 18:42:15 +0200 |
| References | <CANc-5UzRE3dscU4KDF-DUxiSq3h5_Zg1e7Rf_RXnU_bOM0b8ew@mail.gmail.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8 |
| Content-Transfer-Encoding | 7bit |
| X-Gmane-NNTP-Posting-Host | dslb-084-056-017-115.084.056.pools.vodafone-ip.de |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.1.1 |
| In-Reply-To | <CANc-5UzRE3dscU4KDF-DUxiSq3h5_Zg1e7Rf_RXnU_bOM0b8ew@mail.gmail.com> |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.13976.1410540152.18130.python-list@python.org> (permalink) |
| Lines | 20 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1410540152 news.xs4all.nl 2883 [2001:888:2000:d::a6]:38318 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:77814 |
Show key headers only | View raw
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