summaryrefslogtreecommitdiffstats
path: root/Doc/ext
Commit message (Collapse)AuthorAgeFilesLines
* Fix spacing markup and other sundries.Raymond Hettinger2003-09-081-2/+2
|
* fix \NULL with following space and no {} (two instances)Fred Drake2003-09-071-2/+2
|
* SF patch#786531 'the the' typo. Contributed by George YoshidaRaymond Hettinger2003-08-121-1/+1
|
* normalize markup for consistencyFred Drake2003-07-011-15/+16
|
* A few minor improvementsBarry Warsaw2003-06-281-3/+4
|
* Rewrote the docs for supporting cyclic garbage collection to reflectJim Fulton2003-06-285-103/+394
| | | | | | | the new way that once writes types. Deleted the old section and sample code and added a new section building on the Noddy example.
* Added tests for sample modules.Jim Fulton2003-06-281-0/+121
|
* Added s setup module to make it easier to test the sample modules.Jim Fulton2003-06-281-0/+8
|
* Fixed bug in implementation of tp_init function. It should be an intJim Fulton2003-06-282-8/+6
| | | | function, not a PyObject *.
* Changed the assignment of PyType_GenericNew to tp_new slot. Now doJim Fulton2003-06-281-17/+1
| | | | | | 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.
* Changed the assignment of PyType_GenericNew to tp_new slot. Now doJim Fulton2003-06-281-23/+12
| | | | | | | | | 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 *.
* Fix ref counts in initialization code.Raymond Hettinger2003-05-253-0/+3
|
* Fix missing parethesis.Raymond Hettinger2003-05-201-1/+1
|
* Missing parenthesis.Raymond Hettinger2003-05-161-1/+1
|
* Added some missing PyObject* casts in the deallocators.Jim Fulton2003-05-163-2/+11
| | | | | | | Added some defines for PyMODINIT_FUNC so that the examples work with Python 2.2. I think I'm done hacking this documentation. Yippie! :)
* Added a missing PyObject* cast to the dealloc examples.Jim Fulton2003-05-161-2/+10
| | | | | Added a note that the mechanism for defining new tyoes documented here only works for Python 2.2 and higher.
* Removed reference to the out-of-date (and not very useful)Jim Fulton2003-05-161-23/+9
| | | | | | | Objects/xxobject.c example. Updated the discussion of type checking to refer to PyObject_TypeCheck.
* Updated simple example. This should have been checked in the otherJim Fulton2003-05-121-45/+45
| | | | day, but I missfired in CVS.
* Fixed small typo Pointed out by Michael Hudson.Jim Fulton2003-05-081-1/+1
|
* Fixed a typo in an example dealloc routine that calls it's "self"Jim Fulton2003-05-081-1/+1
| | | | argument "obj" rather than "self".
* Rewrote the basic section of the chapter on defining new types.Jim Fulton2003-05-073-125/+946
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Remove another lie.Michael W. Hudson2003-02-061-4/+2
|
* Rewrite awkward/ungrammatical sentence.Greg Ward2003-01-081-3/+3
| | | | Typo fix.
* Grammatical fix: change possessive "it's" to "its".Greg Ward2003-01-031-3/+3
|
* Two more typo fixes.Greg Ward2002-12-171-2/+2
|
* Typo fix.Greg Ward2002-12-171-1/+1
|
* Fix SF # 626275, missing DECREF's in embedding exampleNeal Norwitz2002-12-171-3/+8
| | | | | | | Tested w/valgrind, all paths except the return on PyInt_AsLong() failure I think I got all of these right. Backport candidate.
* Fix SF # 646578, Documentation TypoNeal Norwitz2002-12-021-1/+1
|
* Remove unused variableNeal Norwitz2002-12-021-1/+1
|
* Fix minor markup nits.Fred Drake2002-11-051-2/+2
|
* Fix peculiar (and ungrammatical) wording in an example program.Greg Ward2002-08-221-2/+2
|
* Replace DL_EXPORT with PyMODINIT_FUNCMark Hammond2002-07-311-1/+1
|
* Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.Mark Hammond2002-07-191-5/+8
|
* Change staticforward and statichere to just use static.Fred Drake2002-07-171-2/+2
| | | | Removed ^M from some line-ends.
* Remove now-obsolete staticforward/statichere discussion.Fred Drake2002-07-171-10/+2
|
* Fix a typo.Thomas Heller2002-07-041-1/+1
|
* Convert the example C code to ANSI rather than K&R.Fred Drake2002-06-221-19/+17
| | | | | This matches the Python C style guide (PEP 7). Closes SF patch #571489.
* Typo fix.Greg Ward2002-06-211-1/+1
|
* Typo.Guido van Rossum2002-05-161-1/+1
|
* Fix broken reference, minor clarification.Fred Drake2002-05-161-8/+10
|
* Typo: build -> builtFred Drake2002-05-161-1/+1
|
* Minor wording changes, plus correct a typo.Fred Drake2002-05-141-7/+7
|
* Clean up the use of version numbers in filenames; always use an "abstract"Fred Drake2002-04-191-6/+17
| | | | | version number, and explain what it is at the top of the chapter. This closes SF bug #225003.
* Move the listing of the type structure, since both the C API reference andFred Drake2002-04-151-76/+0
| | | | the Extending & Embedding manual use it.
* Update the type of the tp_free slot.Fred Drake2002-04-121-1/+1
|
* Do not use PyModule_GetDict().Fred Drake2002-04-121-23/+27
| | | | | Clean up the example of exporting a C-callable API from an extension module. Add a hyperlink to a related section in the Python/C API reference.
* Change example of retrieving & calling a Python function to not useFred Drake2002-04-121-12/+9
| | | | | PyModule_GetDict(), which is also more flexible: it does not assume that the "module" is a real module.
* Change the type of the tp_dealloc back to what it really is.Fred Drake2002-04-121-2/+2
| | | | Change a section title to fit in better.
* Modernize the minimal example of an extension type.Fred Drake2002-04-121-7/+15
|
* Update the type of tp_dealloc.Fred Drake2002-04-121-1/+1
|