Pylint bug in python35 b2

2015-07-02 Thread Florent Quesselaire
i installed python35 b2
and tested to pip install / easy install pylint plgin
but i got an :

AttributeError : 'Call' object has no attribute starargs.

i feel this error more python side than pylint side because it is the same
version who works fine in 3.4.3

The exe installer is amazing.

thanks.
Regards,
Florent Quesselaire
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Pylint bug in python35 b2

2015-07-02 Thread Peter Otten
Florent Quesselaire wrote:

 i installed python35 b2
 and tested to pip install / easy install pylint plgin
 but i got an :
 
 AttributeError : 'Call' object has no attribute starargs.
 
 i feel this error more python side than pylint side because it is the same
 version who works fine in 3.4.3

That looks like a change in the ast that breaks backwards compatibility 
rather than a bug:

$ python3.4
Python 3.4.0 (default, Jun 19 2015, 14:20:21) 
[GCC 4.8.2] on linux
Type help, copyright, credits or license for more information.
 import ast
 module = ast.parse(f(*x))
 module.body[0].value
_ast.Call object at 0x7f082ce07860
 _.starargs
_ast.Name object at 0x7f082cd8c240
 _.id
'x'
 
$ python3.5
Python 3.5.0b2+ (3.5:9aee273bf8b7+, Jun 25 2015, 09:25:29) 
[GCC 4.8.4] on linux
Type help, copyright, credits or license for more information.
 import ast
 module = ast.parse(f(*x))
 call = module.body[0].value
 call.starargs
Traceback (most recent call last):
  File stdin, line 1, in module
AttributeError: 'Call' object has no attribute 'starargs'
 call.args
[_ast.Starred object at 0x7f6e633cb208]
 call.args[0].value.id
'x'

pylint likely needs an update to support 3.5 anyway as there is some new 
syntax.

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Pylint bug in python35 b2

2015-07-02 Thread Mark Lawrence

On 02/07/2015 15:07, Peter Otten wrote:

Florent Quesselaire wrote:


i installed python35 b2
and tested to pip install / easy install pylint plgin
but i got an :

AttributeError : 'Call' object has no attribute starargs.

i feel this error more python side than pylint side because it is the same
version who works fine in 3.4.3


That looks like a change in the ast that breaks backwards compatibility
rather than a bug:



Hardly surprising as there are no guarantees.  From 
https://docs.python.org/3/library/ast.html The abstract syntax itself 
might change with each Python release; this module helps to find out 
programmatically what the current grammar looks like.


--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence

--
https://mail.python.org/mailman/listinfo/python-list