Fred Drake
797ded0e76
Emphasize the requirement that Python.h be included first more strongly.
...
Closes SF bug #837228 ; backported from the head.
2004-03-31 07:48:14 +00:00
Neal Norwitz
7453478856
SF #894428 , fix typo
2004-02-10 18:08:23 +00:00
Raymond Hettinger
8e784de242
SF patch #838938 : Typos in the docs (Extending/Embedding + Python/C API)
...
(Contributed by Florent Rougon.)
2003-12-07 11:43:56 +00:00
Michael W. Hudson
784f707e25
Backport of 1.26:
...
Fix the problem addressed by patch
[ 819012 ] Fix for former/latter confusion in Extending documentation
although not by using supplied patch.
2003-11-07 12:11:16 +00:00
Walter Dörwald
4958f2741a
Backport checkin:
...
Fix a bunch of typos in documentation, docstrings and comments.
(From SF patch #810751 )
2003-10-20 14:34:48 +00:00
Raymond Hettinger
607e2d786d
Fix spacing markup and other sundries.
2003-09-08 19:01:57 +00:00
Fred Drake
306c285666
fix \NULL with following space and no {} (two instances)
2003-09-07 02:34:58 +00:00
Raymond Hettinger
107638e861
SF patch#786531 'the the' typo. Contributed by George Yoshida
2003-08-11 23:43:04 +00:00
Fred Drake
901a41e757
normalize markup for consistency
2003-07-01 16:17:50 +00:00
Barry Warsaw
6891cd3aa3
A few minor improvements
2003-06-28 15:22:16 +00:00
Jim Fulton
6c71091fbe
Rewrote the docs for supporting cyclic garbage collection to reflect
...
the new way that once writes types.
Deleted the old section and sample code and added a new section
building on the Noddy example.
2003-06-28 13:29:16 +00:00
Jim Fulton
18a6be9748
Added tests for sample modules.
2003-06-28 11:54:40 +00:00
Jim Fulton
f0e38d1cd2
Added s setup module to make it easier to test the sample modules.
2003-06-28 11:54:20 +00:00
Jim Fulton
7050e929e6
Fixed bug in implementation of tp_init function. It should be an int
...
function, not a PyObject *.
2003-06-28 11:54:03 +00:00
Jim Fulton
4b59f9165d
Changed the assignment of PyType_GenericNew to tp_new slot. Now do
...
this in module initialization before calling PyType_Ready. (Sorry
Tim.) This is necessary to compile on cygwin. AFAIK, we support
cygwin. If so, then we need to write extentions this way.
2003-06-28 11:53:29 +00:00
Jim Fulton
db6a569de7
Changed the assignment of PyType_GenericNew to tp_new slot. Now do
...
this in module initialization before calling PyType_Ready. (Sorry
Tim.) This is necessary to compile on cygwin. AFAIK, we support
cygwin. If so, then we need to write extentions this way.
Fixed bug in implementation of tp_init function. It should be an int
function, not a PyObject *.
2003-06-28 11:53:12 +00:00
Raymond Hettinger
8fb665a51a
Fix ref counts in initialization code.
2003-05-25 17:59:38 +00:00
Raymond Hettinger
f9c2eda3c1
Fix missing parethesis.
2003-05-20 05:31:16 +00:00
Raymond Hettinger
047c54bb24
Missing parenthesis.
2003-05-16 14:36:26 +00:00
Jim Fulton
1f325562f0
Added some missing PyObject* casts in the deallocators.
...
Added some defines for PyMODINIT_FUNC so that the examples work
with Python 2.2.
I think I'm done hacking this documentation. Yippie! :)
2003-05-16 13:53:43 +00:00
Jim Fulton
a24d73ddb1
Added a missing PyObject* cast to the dealloc examples.
...
Added a note that the mechanism for defining new tyoes documented here
only works for Python 2.2 and higher.
2003-05-16 13:51:58 +00:00
Jim Fulton
aea763bde7
Removed reference to the out-of-date (and not very useful)
...
Objects/xxobject.c example.
Updated the discussion of type checking to refer to
PyObject_TypeCheck.
2003-05-16 13:32:59 +00:00
Jim Fulton
d2eadc6946
Updated simple example. This should have been checked in the other
...
day, but I missfired in CVS.
2003-05-12 17:42:56 +00:00
Jim Fulton
3ff5bb20b7
Fixed small typo Pointed out by Michael Hudson.
2003-05-08 10:35:07 +00:00
Jim Fulton
83cedcf660
Fixed a typo in an example dealloc routine that calls it's "self"
...
argument "obj" rather than "self".
2003-05-08 10:32:10 +00:00