On 2017-02-28, Chris Angelico <ros...@gmail.com> wrote:
> On Tue, Feb 28, 2017 at 11:35 AM, Jon Ribbens <jon+use...@unequivocal.eu> 
> wrote:
>> Sorry, I must have missed something here. What are you talking about?
>> "lambda: [1,2,3]" is not acceptable input to ast.literal_eval(), it
>> will throw an exception.
>
> [1,2,3] is, though. Go read my previous posts.

I already did. Perhaps you should too - as well as forgetting what
I have said you seem to be forgetting what you have said! "[1,2,3]" is
both a literal by "my" definition, and is accepted by literal_eval().
There is no mystery there. You brought up the idea of functions
instead, which are neither literals nor accepted by literal_eval()
- no mystery there either.
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to