[issue9751] _PyInstance_Lookup() defeats its purpose

2020-05-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Python 2.7 is no longer supported. -- nosy: +serhiy.storchaka resolution: -> out of date stage: needs patch -> resolved status: open -> closed ___ Python tracker _

[issue9751] _PyInstance_Lookup() defeats its purpose

2020-04-19 Thread Zackery Spytz
Zackery Spytz added the comment: Python 2 is EOL. -- nosy: +ZackerySpytz ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue9751] _PyInstance_Lookup() defeats its purpose

2012-05-09 Thread Armin Rigo
Armin Rigo added the comment: Unlike other crashers I'm a bit concerned about this one. It can occur on any code that stores custom instances as keys in the __dict__ of an old-style instance. Such code might be unusual-looking, but certainly not unheard-of. And the segfault that we get the

[issue9751] _PyInstance_Lookup() defeats its purpose

2012-05-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: Well, I don't think there's any point in trying to fixing this now. -- nosy: +pitrou ___ Python tracker ___

[issue9751] _PyInstance_Lookup() defeats its purpose

2012-05-09 Thread Ezio Melotti
Ezio Melotti added the comment: I tracked this down a bit and this is what I found: has_finalizer in Modules/gcmodule.c calls return _PyInstance_Lookup(op, delstr) != NULL; _PyInstance_Lookup in Modules/classobject.c calls v = class_lookup(inst->in_class, name, &klass); where inst is

[issue9751] _PyInstance_Lookup() defeats its purpose

2010-09-12 Thread Armin Rigo
Armin Rigo added the comment: I propose that we first attempt to fix the crasher; depending on the solution we might then either fix the doc or the code for _PyInstance_Lookup(). If no-one is willing to fix this bug I am fine to let it go. But somehow I am sure that there is code *somewhere*

[issue9751] _PyInstance_Lookup() defeats its purpose

2010-09-11 Thread Éric Araujo
Éric Araujo added the comment: It’s not clear whether you want a doc fix or a behavior change. -- nosy: +eric.araujo ___ Python tracker ___ __

[issue9751] _PyInstance_Lookup() defeats its purpose

2010-09-03 Thread Georg Brandl
Georg Brandl added the comment: I'm not sure anyone will be interested in this: it doesn't affect 3.x. -- nosy: +georg.brandl ___ Python tracker ___ _

[issue9751] _PyInstance_Lookup() defeats its purpose

2010-09-03 Thread Armin Rigo
New submission from Armin Rigo : _PyInstance_Lookup() is documented as follows: The point of this routine is that it never calls arbitrary Python code, so is always "safe": all it does is dict lookups. But of course dict lookups can call arbitrary Python code. This function has no pu