[pywin32-checkins] pywin32/com/win32com/src PythonCOM.cpp, 1.55, 1.56
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
|
From: Mark H. <mha...@us...> - 2009-01-08 02:45:42
|
Update of /cvsroot/pywin32/pywin32/com/win32com/src In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv1109/com/win32com/src Modified Files: PythonCOM.cpp Log Message: pythoncom.MakeTime and MakeIID are marked as deprecated and removed from autoduck Index: PythonCOM.cpp =================================================================== RCS file: /cvsroot/pywin32/pywin32/com/win32com/src/PythonCOM.cpp,v retrieving revision 1.55 retrieving revision 1.56 diff -C2 -d -r1.55 -r1.56 *** PythonCOM.cpp 19 Dec 2008 02:28:48 -0000 1.55 --- PythonCOM.cpp 8 Jan 2009 02:45:31 -0000 1.56 *************** *** 742,758 **** } - // @pymethod <o PyIID>|pythoncom|MakeIID|Creates a new IID object. static PyObject *pythoncom_MakeIID(PyObject *self, PyObject *args) { ! // @comm This is simply an alias for <om pywintypes.IID>. Please see that method ! // for details. return PyWinMethod_NewIID(self, args); } ! // @pymethod <o PyTime>|pythoncom|MakeTime|Creates a new time object. static PyObject *pythoncom_MakeTime(PyObject *self, PyObject *args) { ! // @comm This is simply an alias for <om pywintypes.Time>. Please see that method ! // for details. return PyWinMethod_NewTime(self, args); } --- 742,755 ---- } static PyObject *pythoncom_MakeIID(PyObject *self, PyObject *args) { ! PyErr_WarnEx(PyExc_PendingDeprecationWarning, "MakeIID is deprecated - please use pywintypes.IID() instead.", 1); return PyWinMethod_NewIID(self, args); } ! // no autoduct - this is deprecated. static PyObject *pythoncom_MakeTime(PyObject *self, PyObject *args) { ! PyErr_WarnEx(PyExc_PendingDeprecationWarning, "MakeTime is deprecated - please use pywintypes.Time() instead.", 1); return PyWinMethod_NewTime(self, args); } *************** *** 1898,1903 **** { "LoadRegTypeLib", pythoncom_loadregtypelib, 1 }, // @pymeth LoadRegTypeLib|Loads a registered type library by CLSID { "LoadTypeLib", pythoncom_loadtypelib, 1 }, // @pymeth LoadTypeLib|Loads a type library by name ! { "MakeIID", pythoncom_MakeIID, 1 }, // @pymeth MakeIID|Makes an IID object from a string. ! { "MakeTime", pythoncom_MakeTime, 1 }, // @pymeth MakeTime|Makes a time object from the argument. Argument can be an integer/float or a tuple (as returned by time module functions). { "MakePyFactory", pythoncom_MakePyFactory, 1 }, // @pymeth MakePyFactory|Creates a new <o PyIClassFactory> object wrapping a PythonCOM Class Factory object. #ifndef MS_WINCE --- 1895,1900 ---- { "LoadRegTypeLib", pythoncom_loadregtypelib, 1 }, // @pymeth LoadRegTypeLib|Loads a registered type library by CLSID { "LoadTypeLib", pythoncom_loadtypelib, 1 }, // @pymeth LoadTypeLib|Loads a type library by name ! { "MakeIID", pythoncom_MakeIID, 1 }, ! { "MakeTime", pythoncom_MakeTime, 1 }, { "MakePyFactory", pythoncom_MakePyFactory, 1 }, // @pymeth MakePyFactory|Creates a new <o PyIClassFactory> object wrapping a PythonCOM Class Factory object. #ifndef MS_WINCE |