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

Documentation to exec_ does not match implementation

Originally reported by: Bernhard Gschaider (Bitbucket: bgschaid, GitHub: bgschaid)

In the documentation it says


#!python

six.exec_(code, globals=None, locals=None)

but the implementation is


#!python

def exec_(code, globs=None, locs=None):
        """Execute code in a namespace."""

for the Python 2.x-branch

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

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

  • 写回答

7条回答 默认 最新

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

    Original comment by Bernhard Gschaider (Bitbucket: bgschaid, GitHub: bgschaid):

    That's fine with me. The thing was I saw the docu when porting and thought "Ah. Keyword arguments. That is self-documenting. Lets use it". And I didn't test that particular path on python3 so I didn't see the error of my ways

    评论

报告相同问题?