<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu., May 16, 2019, 15:56 Steve Dower, <<a href="mailto:steve.dower@python.org">steve.dower@python.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 16May2019 1548, Pablo Galindo Salgado wrote:<br>
>  > Will the folks using forks be happy to switch to the stdlib version?<br>
>>For example I can imagine that if black wants to process 3.7 input<br>
>>code while running on 3.6, it might prefer a parser on PyPI even if<br>
>>he stdlib version were public, since the PyPI version can be updated<br>
>>independently of the host Python.<br>
> The tool can parse arbitrary grammars, the one that is packed into is <br>
> just one of them.<br>
> <br>
> I think it would be useful, among other things because the standard library<br>
> lacks currently a proper CST solution. The ast module is heavily <br>
> leveraged for<br>
> things like formatters, static code analyzers...etc but CST can be very <br>
> useful as<br>
> Łukasz describes here:<br>
> <br>
> <a href="https://bugs.python.org/issue33337" rel="noreferrer noreferrer" target="_blank">https://bugs.python.org/issue33337</a><br>
> <br>
> I think is missing an important gap in the stdlib and the closest thing <br>
> we have<br>
> (the current parser module) is not useful for any of that. Also, the <br>
> core to generating<br>
> the hypothetical new package (with some new API over it may be) is <br>
> already undocumented<br>
> as an implementation detail of lib2to3 (and some people are already <br>
> using it directly).<br>
<br>
We still have the policy of not removing modules that exist in the <br>
Python 2 standard library. But 3.9 won't be covered by that :)<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">Correct. 😁 We should deprecate in 3.8 for removal in 3.9.</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
But I'm in favor of having a proper CST module that matches the version <br>
of Python it's in. It doesn't help people on earlier versions (yet), but <br>
given how closely tied it is to the Python version you're on I think it <br>
makes sense in the stdlib.<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">+1. I think someone brought up the API, and probably talking to projects that are using pgen2 out of lib2to3 would be good.</div><div dir="auto"><br></div><div dir="auto">-Brett</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Cheers,<br>
Steve<br>
_______________________________________________<br>
Python-Dev mailing list<br>
<a href="mailto:Python-Dev@python.org" target="_blank" rel="noreferrer">Python-Dev@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/python-dev" rel="noreferrer noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/python-dev</a><br>
Unsubscribe: <a href="https://mail.python.org/mailman/options/python-dev/brett%40python.org" rel="noreferrer noreferrer" target="_blank">https://mail.python.org/mailman/options/python-dev/brett%40python.org</a><br>
</blockquote></div></div></div>