You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Dian Fu (Jira)" <ji...@apache.org> on 2020/10/31 01:33:00 UTC

[jira] [Closed] (FLINK-19892) Replace __metaclass__ field with metaclass keyword

     [ https://issues.apache.org/jira/browse/FLINK-19892?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dian Fu closed FLINK-19892.
---------------------------
    Fix Version/s: 1.11.3
                   1.12.0
       Resolution: Fixed

Merged to master via a7abe7d6a13bfca168828af912fd3bdb09faeb95 and release-1.11 via 06561515d62deec1b552064b97d5c27495e14f16

> Replace __metaclass__ field with metaclass keyword
> --------------------------------------------------
>
>                 Key: FLINK-19892
>                 URL: https://issues.apache.org/jira/browse/FLINK-19892
>             Project: Flink
>          Issue Type: Improvement
>          Components: API / Python
>            Reporter: Huang Xingbo
>            Assignee: Nicholas Jiang
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.12.0, 1.11.3
>
>
> __metaclass__ is not compatible in some scenarios of python3 e.g.
>  
> {code:java}
> >>> from pyflink.serializers import Serializer
> >>> import inspect
> >>> inspect.isabstract(Serializer)
> False{code}
>  
> We can replace __metaclass__ field with [metaclass|https://www.python.org/dev/peps/pep-3115/] keyword to solve these problem. 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)