pylint-bot / test

0 stars 0 forks source link

Add astroid.parse function, similar to ast.parse #149

Closed pylint-bot closed 8 years ago

pylint-bot commented 9 years ago

Originally reported by: Claudiu Popa (BitBucket: PCManticore, GitHub: @PCManticore?)


For improving the compatibility with the ast module, we could add a new function, called astroid.parse, which will be the equivalent of:

#!python

from astroid.builder import AstroidBuilder
b = AstroidBuilder(manager)
return b.string_build(code, __file__)

pylint-bot commented 8 years ago

Original comment by Claudiu Popa (BitBucket: PCManticore, GitHub: @PCManticore?):


Fixed.