Re: [Python-ideas] Including the unparse module in the standard library

2018-07-16 Thread Chris Barker via Python-ideas
On Mon, Jul 16, 2018 at 12:24 PM, Brett Cannon wrote: > > Since it isn't necessary for Python to function, I would say we probably > don''t want to pull it up. Then the maintenance burden grows much more. > might make sense to put it on pypi though, if someone want to take responsibility for

Re: [Python-ideas] Including the unparse module in the standard library

2018-07-16 Thread Brett Cannon
On Thu, 12 Jul 2018 at 11:21 Andre Roberge wrote: > In the cPython repository, there is an unparse module in the Tools section. > https://github.com/python/cpython/blob/master/Tools/parser/unparse.py > > However, as it is not part of the standard library, it cannot be easily > used; to do so,

Re: [Python-ideas] Including the unparse module in the standard library

2018-07-12 Thread Ryan Gonzalez
If you want to get source code from an AST, you'd probably be better off with a more fully-featured library like Astor: https://github.com/berkerpeksag/astor On July 12, 2018 1:21:23 PM Andre Roberge wrote: In the cPython repository, there is an unparse module in the Tools section.

[Python-ideas] Including the unparse module in the standard library

2018-07-12 Thread Andre Roberge
In the cPython repository, there is an unparse module in the Tools section. https://github.com/python/cpython/blob/master/Tools/parser/unparse.py However, as it is not part of the standard library, it cannot be easily used; to do so, one needs to make a local copy in a place from where it can be