encukou / py3c

A Python 2/3 compatibility layer for C extensions
http://py3c.readthedocs.org
MIT License
59 stars 20 forks source link

Add Barry Warsaw's recommendations from the wiki #1

Open encukou opened 9 years ago

encukou commented 9 years ago

https://wiki.python.org/moin/PortingToPy3k/BilingualQuickRef?action=recall&rev=10

The PyArg_Parse notes and the "%V" for PyUnicode_FromFormat are especially useful

encukou commented 9 years ago

Looking at it closer, %V (REPRV) seems redundant when there's PyStr, at which point all reprs can be native strings.

encukou commented 4 years ago

Status: I believe most of the Python extension modules notes are already incorporated, but it wouldn't hurt to explicitly go through them and make sure they are, or py3c handles things differently.