[Python-ideas] Re: Universal parsing library in the stdlib to alleviate security issues

2019-07-18 Thread Barry Scott
> On 18 Jul 2019, at 05:23, Nam Nguyen wrote: > > On Wed, Jul 17, 2019 at 12:38 AM Barry Scott > wrote: >> But if your use cases call for performance, it is perfectly fine to >> understand the tradeoffs, and opt in to the more appropriate solutions. And, >> of

[Python-ideas] Re: Scope painting

2019-07-18 Thread Yonatan Zunger
Even that isn't so simple, because these need to vanish when the frame does (you wouldn't want the dict to hold a reference to the frame!). Also, most of the libraries that would be using this (cprofile, tracemalloc, traceback, the new profiler I'm working on) are in C, so it wouldn't be a straight

[Python-ideas] Re: Scope painting

2019-07-18 Thread Andrew Barnert via Python-ideas
On Jul 18, 2019, at 14:50, Yonatan Zunger wrote: > > Even that isn't so simple, because these need to vanish when the frame does > (you wouldn't want the dict to hold a reference to the frame!). Yes, and settrace takes care of that: the dict _can_ hold a reference to a frame, because you get a

[Python-ideas] Re: Scope painting

2019-07-18 Thread Yonatan Zunger
On Thu, Jul 18, 2019 at 3:17 PM Andrew Barnert wrote: > On Jul 18, 2019, at 14:50, Yonatan Zunger wrote: > > > > Even that isn't so simple, because these need to vanish when the frame > does (you wouldn't want the dict to hold a reference to the frame!). > > Yes, and settrace takes care of that:

[Python-ideas] Re: Universal parsing library in the stdlib to alleviate security issues

2019-07-18 Thread Nam Nguyen
On Thu, Jul 18, 2019 at 12:07 AM Barry Scott wrote: > > > On 18 Jul 2019, at 05:23, Nam Nguyen wrote: > > On Wed, Jul 17, 2019 at 12:38 AM Barry Scott > wrote: > >> But if your use cases call for performance, it is perfectly fine to >> understand the tradeoffs, and opt in to the more appropriat