Message284105
| Author |
steve.dower |
| Recipients |
loewis, ned.deily, python-dev, serhiy.storchaka, steve.dower, tim.golden, zach.ware |
| Date |
2016年12月27日.14:53:45 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1482850425.73.0.203154567305.issue23903@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Unfortunately, there's no way too remove defined names from the DLL during Python 3 at all, except where the prototype was never provided. PyCFunction_New has always been a macro, and PySys_SetDefaultEncoding looks to have been removed before the API was committed.
Maintaining an export and a macro is going to be awkward, so I think we should just change them back to functions. Any half-decent optimizing compiler is going to inline it within core, and it's better than having two implementations in different places of the same function.
But yes I agree, fix the def first and then automate. But I don't want to fix it but adding things that were never usable. |
|