Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #65813
| From | Mark Lawrence <breamoreboy@yahoo.co.uk> |
|---|---|
| Subject | Re: Pylint across Python versions |
| Date | 2014-02-10 13:03 +0000 |
| References | <317fd2a4-186b-4b97-ad7f-084609d0a9a4@googlegroups.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.6620.1392037432.18130.python-list@python.org> (permalink) |
On 10/02/2014 11:39, thomas.lehmann@adtech.com wrote:
> Hi,
>
> somebody who can tell me about pylint experiences across
> different Python version.
>
> Example:
> I'm using a construct like this:
>
> if sys.version.startswith("3."):
> unicode = str
>
> The reason is that Python 3 does not have this
> function anymore but pylint yells for Python < 3
> about redefinition also it does not happen.
I've no idea what the above is saying but see below anyway.
>
> How to get forward with this?
>
> Regards,
> Thomas
>
>>> import sys
>>> sys.version
'3.4.0b2 (v3.4.0b2:ba32913eb13e, Jan 5 2014, 16:23:43) [MSC v.1600 32
bit (Intel)]'
>>> sys.version.startswith('3.')
True
>>>
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
---
This email is free from viruses and malware because avast! Antivirus protection is active.
http://www.avast.com
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Pylint across Python versions thomas.lehmann@adtech.com - 2014-02-10 03:39 -0800 Re: Pylint across Python versions Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-02-10 13:03 +0000 Re: Pylint across Python versions Chris Angelico <rosuav@gmail.com> - 2014-02-11 00:59 +1100 Re: Pylint across Python versions Ned Batchelder <ned@nedbatchelder.com> - 2014-02-10 10:36 -0500
csiph-web