Neal Norwitz wrote: > Already done for gcc, see Py_DEPRECATED in pyport.h. Would be nice if > someone could add support on Windows. >
The manner that macro is used can't be leveraged to work in the VC compiler. I admit to not having done an extensive search for the usage of Py_DEPRECATED, but to take from object.h: typedef PyObject *(*intargfunc)(PyObject *, int) Py_DEPRECATED(2.5); In GCC, you tag on __attribute__((__deprecated__)) but there is no equivalent tagging method in VC. In VC, you should instead put a pragma for the identifier: #pragma deprecated(intargfunc). AFAIK, you can't put a #pragma in a #define, so it seems wise to only mark functions deprecated (which you can do via __declspec(deprecated)). -- Scott Dial [EMAIL PROTECTED] [EMAIL PROTECTED] _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com