[Python-checkins] CVS: python/dist/src/Doc/api api.tex,1.104,1.105 refcounts.dat,1.22,1.23

Fred L. Drake fdrake@users.sourceforge.net
Sat, 27 Jan 2001 22:39:37 -0800


Update of /cvsroot/python/python/dist/src/Doc/api
In directory usw-pr-cvs1:/tmp/cvs-serv2723/api

Modified Files:
	api.tex refcounts.dat 
Log Message:

Document the PyInstance_*() functions and data.


Index: api.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/api/api.tex,v
retrieving revision 1.104
retrieving revision 1.105
diff -C2 -r1.104 -r1.105
*** api.tex	2001/01/19 22:48:33	1.104
--- api.tex	2001/01/28 06:39:35	1.105
***************
*** 3695,3698 ****
--- 3695,3728 ----
  
  
+ \subsection{Instance Objects \label{instanceObjects}}
+ 
+ \obindex{instance}
+ There are very few functions specific to instance objects.
+ 
+ \begin{cvardesc}{PyTypeObject}{PyInstance_Type}
+   Type object for class instances.
+ \end{cvardesc}
+ 
+ \begin{cfuncdesc}{int}{PyInstance_Check}{PyObject *obj}
+   Returns true if \var{obj} is an instance.
+ \end{cfuncdesc}
+ 
+ \begin{cfuncdesc}{PyObject*}{PyInstance_New}{PyObject *class,
+                                              PyObject *arg,
+                                              PyObject *kw}
+   Create a new instance of a specific class.  The parameters \var{arg}
+   and \var{kw} are used as the positional and keyword parameters to
+   the object's constructor.
+ \end{cfuncdesc}
+ 
+ \begin{cfuncdesc}{PyObject*}{PyInstance_NewRaw}{PyObject *class,
+                                                 PyObject *dict}
+   Create a new instance of a specific class without calling it's
+   constructor.  \var{class} is the class of new object.  The
+   \var{dict} parameter will be used as the object's \member{__dict__};
+   if \NULL, a new dictionary will be created for the instance.
+ \end{cfuncdesc}
+ 
+ 
  \subsection{Module Objects \label{moduleObjects}}
  
***************
*** 4737,4742 ****
  
  DL_IMPORT
- 
- Py*_Check
  
  _Py_NoneStruct
--- 4767,4770 ----

Index: refcounts.dat
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/api/refcounts.dat,v
retrieving revision 1.22
retrieving revision 1.23
diff -C2 -r1.22 -r1.23
*** refcounts.dat	2001/01/08 05:53:53	1.22
--- refcounts.dat	2001/01/28 06:39:35	1.23
***************
*** 333,336 ****
--- 333,345 ----
  PyImport_ReloadModule:PyObject*:m:0:
  
+ PyInstance_New:PyObject*::+1:
+ PyInstance_New:PyObject*:klass:+1:
+ PyInstance_New:PyObject*:arg:0:
+ PyInstance_New:PyObject*:kw:0:
+ 
+ PyInstance_NewRaw:PyObject*::+1:
+ PyInstance_NewRaw:PyObject*:klass:+1:
+ PyInstance_NewRaw:PyObject*:dict:+1:
+ 
  PyInt_AS_LONG:long:::
  PyInt_AS_LONG:PyIntObject*:io:0: