weixin_39942191 2020-11-20 20:32
浏览 0

Add abc.ABC class?

Originally reported by: Antoine Pitrou (Bitbucket: pitrou, GitHub: pitrou)

It would be nice to add an implementation of abc.ABC, in order to make it easier to implement ABCs in 2-and-3 compatible code.

  • Bitbucket: https://bitbucket.org/gutworth/six/issue/119

该提问来源于开源项目:benjaminp/six

  • 写回答

6条回答 默认 最新

  • weixin_39942191 2020-11-20 20:32
    关注

    Original comment by Matthias Liebig (Bitbucket: mliebig, GitHub: Unknown):

    Python 3.4 provides the following class in that module, which Antoine would like to see in six:

    
    #!python
    
    class ABC(metaclass=ABCMeta): pass
    
    评论

报告相同问题?