[Python-ideas] slice.literal notation

Antoine Pitrou solipsis at pitrou.net
Wed Jun 10 18:26:42 CEST 2015

On Wed, 10 Jun 2015 12:23:32 -0400
Joseph Jevnik <joejev at gmail.com> wrote:

> I am not sure if this makes sense in the ast module only because it does
> not generate _ast.Slice objects and instead returns the keys.

There's already ast.literal_eval() there, so that was why I thought it
could be related. Thought at literal_eval() *compiles* its input, which
slice.literal wouldn't, so the relationship is quite distant...



More information about the Python-ideas mailing list