Skip to content

Instantly share code, notes, and snippets.

@mattip
Created June 23, 2015 18:47
Show Gist options
  • Save mattip/76d48924ee2e8ed8ea0e to your computer and use it in GitHub Desktop.
Save mattip/76d48924ee2e8ed8ea0e to your computer and use it in GitHub Desktop.
poor choice of function name
#The function __A_ctor becomes _A__A_ctor automatically, causing
# https://bitbucket.org/pypy/numpy/issue/30
class A():
def get_ctor(self):
return __A_ctor()
def __A_ctor():
return A()
if __name__ == '__main__':
a = A()
a.get_ctor()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment