microsoft / xlang

MIT License
877 stars 103 forks source link

python: fix __enter__() and __exit__() methods #750

Closed dlech closed 2 years ago

dlech commented 3 years ago

The __enter__() method takes no arguments (other than self) and the __exit__() method takes 3 arguments (in addition to self), so METH_O (which indicates 1 argument in addition to self) was wrong in both cases.