#27202: Investigate RenameMethodsBase effect on yaml serialization
------------------------------+------------------------------------
     Reporter:  Ilya Semenov  |                    Owner:  nobody
         Type:  Bug           |                   Status:  new
    Component:  Utilities     |                  Version:  1.8
     Severity:  Normal        |               Resolution:
     Keywords:  yaml          |             Triage Stage:  Accepted
    Has patch:  0             |      Needs documentation:  0
  Needs tests:  0             |  Patch needs improvement:  0
Easy pickings:  0             |                    UI/UX:  0
------------------------------+------------------------------------

Comment (by Ryan Castner):

 Ok did a bit of investigating, `RenameMethodsBase` inherits from `type`. I
 may be crazy but that sounds a lot like
 https://docs.python.org/2/library/pickle.html#pickling-and-unpickling-
 extension-types. Specifically:


     When the Pickler encounters an object of a type it knows nothing about
 — such as an extension type — it looks in two places for a hint of how to
 pickle it.

 Those hints are the `__reduce__` and `__reduce_ex__` methods. The
 `__reduce_ex__` method states `method will be called with a single integer
 argument, the protocol version`.

 And that call seems to fail here
 
https://github.com/python/cpython/blob/c30098c8c6014f3340a369a31df9c74bdbacc269/Objects/typeobject.c#L4169

--
Ticket URL: <https://code.djangoproject.com/ticket/27202#comment:2>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/065.02e1aa9879ffe0c9120b8802a45eb8a2%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to