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

Replace the implementation of `six.with_metaclass` with the Flask one.

Originally reported by: charettes (Bitbucket: charettes, GitHub: charettes)

The actual implementation of six.with_metaclass creates an instance of the provided metaclass which ends up leaving NewBase artefacts in the __mro__. Those undesirable bases can then be a pain to deal with.

The nifty Flask implementation on the other hand does not seems to suffer from theese limitations and is BSD licensed.

I propose to replace the actual implementation by the Flask one.

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

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

  • 写回答

5条回答 默认 最新

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

    Merged in bendavis78/six/issues/66 (pull request #35)

    Fixed #66: Replace the implementation of six.with_metaclass with the Flask one.

    评论

报告相同问题?