[ 
https://issues.apache.org/jira/browse/ARROW-1753?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16226847#comment-16226847
 ] 

ASF GitHub Bot commented on ARROW-1753:
---------------------------------------

pcmoritz commented on issue #1272: ARROW-1753 [Python] Provide for matching 
subclasses with register_type in serialization context
URL: https://github.com/apache/arrow/pull/1272#issuecomment-340764058
 
 
   So to make this also work for the `type` class, I had to replace `.mro()` by 
`.__mro__`, see 
https://stackoverflow.com/questions/34358767/why-does-mro-on-a-metaclass-have-a-different-signature-descriptor-mro-of

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


> [Python] Provide for matching subclasses with register_type in serialization 
> context
> ------------------------------------------------------------------------------------
>
>                 Key: ARROW-1753
>                 URL: https://issues.apache.org/jira/browse/ARROW-1753
>             Project: Apache Arrow
>          Issue Type: Improvement
>          Components: Python
>            Reporter: Wes McKinney
>              Labels: pull-request-available
>             Fix For: 0.8.0
>
>
> Copied from https://github.com/apache/arrow/issues/1269
> To allow factoring out serialization code to a common base class it would be 
> useful if register_type matches all subclasses rather than simply an exact 
> match on the specific type.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to