Changes between Initial Version and Version 1 of Ticket #13394, comment 86


Ignore:
Timestamp:
11/01/13 15:46:26 (8 years ago)
Author:
nbruin
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #13394, comment 86

    initial v1  
    1212}}}
    1313and it's an odd optimization too. The only explanation I can see is that `print` doesn't think `dict` can be subclassed and thus, based on a type test, decides to use `PyDict` routines on it. I'm afraid that our solution won't necessarily work in all places where a `UserDict` would get recognized as a type that needs method resolution.
     14
     15'''EDIT:''' I think the problem is that the `dict` type has its `tp_print` field set, so we inherit that routine. Ideally we should override it, but I don't think cython provides support for that. Bug report to cython?