[issue16894] Function attribute access doesn't invoke methods in dict subclasses

2021-01-01 Thread David Beazley
Change by David Beazley : -- stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue16894] Function attribute access doesn't invoke methods in dict subclasses

2020-03-06 Thread Brett Cannon
Change by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue16894] Function attribute access doesn't invoke methods in dict subclasses

2013-01-14 Thread Meador Inge
Changes by Meador Inge : -- nosy: +meador.inge ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue16894] Function attribute access doesn't invoke methods in dict subclasses

2013-01-10 Thread Daniel Urban
Changes by Daniel Urban : -- nosy: +daniel.urban ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue16894] Function attribute access doesn't invoke methods in dict subclasses

2013-01-09 Thread Eric Snow
Eric Snow added the comment: Looks like a case where the concrete dict API is ignoring subtype implementations. In your example the attribute access will be handled by a LOAD_ATTR which calls PyObject_GetAttr() (Python/ceval.c:2369). That ends up calling PyFunction_Type.tp_getattro (inherite

[issue16894] Function attribute access doesn't invoke methods in dict subclasses

2013-01-08 Thread Brett Cannon
Changes by Brett Cannon : -- nosy: +brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue16894] Function attribute access doesn't invoke methods in dict subclasses

2013-01-08 Thread Alex Gaynor
Changes by Alex Gaynor : -- nosy: +alex ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/

[issue16894] Function attribute access doesn't invoke methods in dict subclasses

2013-01-08 Thread David Beazley
New submission from David Beazley: Suppose you subclass a dictionary: class mdict(dict): def __getitem__(self, index): print('Getting:', index) return super().__getitem__(index) Now, suppose you define a function and perform these steps that reassign the function's attribut