Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | SF patch #838938: Typos in the docs (Extending/Embedding + Python/C API) | Raymond Hettinger | 2003-12-07 | 1 | -2/+2 |
| | | | | (Contributed by Florent Rougon.) | ||||
* | Fix the problem addressed by patch | Michael W. Hudson | 2003-11-07 | 1 | -1/+1 |
| | | | | | | [ 819012 ] Fix for former/latter confusion in Extending documentation although not by using supplied patch. | ||||
* | Fix a bunch of typos in documentation, docstrings and comments. | Walter Dörwald | 2003-10-20 | 1 | -1/+1 |
| | | | | (From SF patch #810751) | ||||
* | Fix spacing markup and other sundries. | Raymond Hettinger | 2003-09-08 | 1 | -2/+2 |
| | |||||
* | fix \NULL with following space and no {} (two instances) | Fred Drake | 2003-09-07 | 1 | -2/+2 |
| | |||||
* | SF patch#786531 'the the' typo. Contributed by George Yoshida | Raymond Hettinger | 2003-08-12 | 1 | -1/+1 |
| | |||||
* | normalize markup for consistency | Fred Drake | 2003-07-01 | 1 | -15/+16 |
| | |||||
* | A few minor improvements | Barry Warsaw | 2003-06-28 | 1 | -3/+4 |
| | |||||
* | Rewrote the docs for supporting cyclic garbage collection to reflect | Jim Fulton | 2003-06-28 | 5 | -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 Fulton | 2003-06-28 | 1 | -0/+121 |
| | |||||
* | Added s setup module to make it easier to test the sample modules. | Jim Fulton | 2003-06-28 | 1 | -0/+8 |
| | |||||
* | Fixed bug in implementation of tp_init function. It should be an int | Jim Fulton | 2003-06-28 | 2 | -8/+6 |
| | | | | function, not a PyObject *. | ||||
* | Changed the assignment of PyType_GenericNew to tp_new slot. Now do | Jim Fulton | 2003-06-28 | 1 | -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 do | Jim Fulton | 2003-06-28 | 1 | -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 Hettinger | 2003-05-25 | 3 | -0/+3 |
| | |||||
* | Fix missing parethesis. | Raymond Hettinger | 2003-05-20 | 1 | -1/+1 |
| | |||||
* | Missing parenthesis. | Raymond Hettinger | 2003-05-16 | 1 | -1/+1 |
| | |||||
* | Added some missing PyObject* casts in the deallocators. | Jim Fulton | 2003-05-16 | 3 | -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 Fulton | 2003-05-16 | 1 | -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 Fulton | 2003-05-16 | 1 | -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 other | Jim Fulton | 2003-05-12 | 1 | -45/+45 |
| | | | | day, but I missfired in CVS. | ||||
* | Fixed small typo Pointed out by Michael Hudson. | Jim Fulton | 2003-05-08 | 1 | -1/+1 |
| | |||||
* | Fixed a typo in an example dealloc routine that calls it's "self" | Jim Fulton | 2003-05-08 | 1 | -1/+1 |
| | | | | argument "obj" rather than "self". | ||||
* | Rewrote the basic section of the chapter on defining new types. | Jim Fulton | 2003-05-07 | 3 | -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. Hudson | 2003-02-06 | 1 | -4/+2 |
| | |||||
* | Rewrite awkward/ungrammatical sentence. | Greg Ward | 2003-01-08 | 1 | -3/+3 |
| | | | | Typo fix. | ||||
* | Grammatical fix: change possessive "it's" to "its". | Greg Ward | 2003-01-03 | 1 | -3/+3 |
| | |||||
* | Two more typo fixes. | Greg Ward | 2002-12-17 | 1 | -2/+2 |
| | |||||
* | Typo fix. | Greg Ward | 2002-12-17 | 1 | -1/+1 |
| | |||||
* | Fix SF # 626275, missing DECREF's in embedding example | Neal Norwitz | 2002-12-17 | 1 | -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 Typo | Neal Norwitz | 2002-12-02 | 1 | -1/+1 |
| | |||||
* | Remove unused variable | Neal Norwitz | 2002-12-02 | 1 | -1/+1 |
| | |||||
* | Fix minor markup nits. | Fred Drake | 2002-11-05 | 1 | -2/+2 |
| | |||||
* | Fix peculiar (and ungrammatical) wording in an example program. | Greg Ward | 2002-08-22 | 1 | -2/+2 |
| | |||||
* | Replace DL_EXPORT with PyMODINIT_FUNC | Mark Hammond | 2002-07-31 | 1 | -1/+1 |
| | |||||
* | Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT. | Mark Hammond | 2002-07-19 | 1 | -5/+8 |
| | |||||
* | Change staticforward and statichere to just use static. | Fred Drake | 2002-07-17 | 1 | -2/+2 |
| | | | | Removed ^M from some line-ends. | ||||
* | Remove now-obsolete staticforward/statichere discussion. | Fred Drake | 2002-07-17 | 1 | -10/+2 |
| | |||||
* | Fix a typo. | Thomas Heller | 2002-07-04 | 1 | -1/+1 |
| | |||||
* | Convert the example C code to ANSI rather than K&R. | Fred Drake | 2002-06-22 | 1 | -19/+17 |
| | | | | | This matches the Python C style guide (PEP 7). Closes SF patch #571489. | ||||
* | Typo fix. | Greg Ward | 2002-06-21 | 1 | -1/+1 |
| | |||||
* | Typo. | Guido van Rossum | 2002-05-16 | 1 | -1/+1 |
| | |||||
* | Fix broken reference, minor clarification. | Fred Drake | 2002-05-16 | 1 | -8/+10 |
| | |||||
* | Typo: build -> built | Fred Drake | 2002-05-16 | 1 | -1/+1 |
| | |||||
* | Minor wording changes, plus correct a typo. | Fred Drake | 2002-05-14 | 1 | -7/+7 |
| | |||||
* | Clean up the use of version numbers in filenames; always use an "abstract" | Fred Drake | 2002-04-19 | 1 | -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 and | Fred Drake | 2002-04-15 | 1 | -76/+0 |
| | | | | the Extending & Embedding manual use it. | ||||
* | Update the type of the tp_free slot. | Fred Drake | 2002-04-12 | 1 | -1/+1 |
| | |||||
* | Do not use PyModule_GetDict(). | Fred Drake | 2002-04-12 | 1 | -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 use | Fred Drake | 2002-04-12 | 1 | -12/+9 |
| | | | | | PyModule_GetDict(), which is also more flexible: it does not assume that the "module" is a real module. |