cpython/Doc/ext
Jim Fulton aed0a4a138 Rewrote the basic section of the chapter on defining new types.
Changed the example to show how to create types the new way:

- Use a class new method rather than a new function.

- Use self->ob_type->tp_free in deallocators

- Use attribute descriptors rather than set/getattr methods.

- Make the type usable as a base type.

I split the example into 3 parts:

1. The minimal new type

2. Adding attributes and methods.

3. Finer control over attributes.

It's much simpler to define builtin types. These updates hopefully
show this.

I also made minor wording changes in two other places.

I still need to update xxobject.c
2003-05-07 19:48:13 +00:00
..
.cvsignore Updates to reflect pending changes to the XML conversion process. 2000-11-22 16:42:37 +00:00
building.tex Typo. 2002-05-16 14:45:37 +00:00
cycle-gc.c Move reference material on PyArg_Parse*() out of the Extending & Embedding 2002-04-05 23:01:14 +00:00
embedding.tex Fix SF # 646578, Documentation Typo 2002-12-02 04:42:58 +00:00
ext.tex Patch #500136: Update Update ext build documentation. 2.2.1 candidate. 2002-03-09 10:06:14 +00:00
extending.tex Remove another lie. 2003-02-06 18:38:11 +00:00
newtypes.tex Rewrote the basic section of the chapter on defining new types. 2003-05-07 19:48:13 +00:00
noddy.c Replace DL_EXPORT with PyMODINIT_FUNC 2002-07-31 06:17:46 +00:00
noddy2.c Rewrote the basic section of the chapter on defining new types. 2003-05-07 19:48:13 +00:00
noddy3.c Rewrote the basic section of the chapter on defining new types. 2003-05-07 19:48:13 +00:00
run-func.c Fix SF # 626275, missing DECREF's in embedding example 2002-12-17 00:40:38 +00:00
windows.tex Fix minor markup nits. 2002-11-05 16:52:50 +00:00