Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | 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. | |||||
* | Change the type of the tp_dealloc back to what it really is. | Fred Drake | 2002-04-12 | 1 | -2/+2 | |
| | | | | Change a section title to fit in better. | |||||
* | Modernize the minimal example of an extension type. | Fred Drake | 2002-04-12 | 1 | -7/+15 | |
| | ||||||
* | Update the type of tp_dealloc. | Fred Drake | 2002-04-12 | 1 | -1/+1 | |
| | ||||||
* | Update to use the new \csimplemacro macro | Fred Drake | 2002-04-09 | 1 | -5/+5 | |
| | ||||||
* | Move reference material on PyArg_Parse*() out of the Extending & Embedding | Fred Drake | 2002-04-05 | 3 | -375/+115 | |
| | | | | | | | | document to the C API reference. Move some instructional text from the API reference to the Extending & Embedding manual. Fix the descriptions of the es and es# formats for PyArg_Parse*(). This closes SF bug #536516. | |||||
* | Remove weird spacing in typeset version of the chapter head. | Fred Drake | 2002-04-05 | 1 | -1/+1 | |
| | ||||||
* | Add a note warning against semicolons following PyObject_HEAD. | Fred Drake | 2002-04-02 | 1 | -5/+9 | |
| | | | | Minor cleanups. | |||||
* | There is no PyArg_ConvertTuple(); call it by the right name. | Fred Drake | 2002-04-01 | 1 | -1/+1 | |
| | | | | This closes SF bug #537511. | |||||
* | Use the right types for a couple of fields of the type structure. | Fred Drake | 2002-03-29 | 1 | -2/+2 | |
| | ||||||
* | Started updating information about defining attributes on types. | Fred Drake | 2002-03-29 | 1 | -7/+171 | |
| | | | | | There's still a long way to go, but we're starting to see some real content in the docs. | |||||
* | Mark a couple of types that had not been marked. | Fred Drake | 2002-03-28 | 1 | -5/+5 | |
| | ||||||
* | Added comments for more entries of the type structure in the example | Fred Drake | 2002-03-28 | 1 | -19/+19 | |
| | | | | type implementation. | |||||
* | The new files included by \verbatiminput in newtypes.tex. | Fred Drake | 2002-03-28 | 2 | -0/+134 | |
| | ||||||
* | Move some of the longer example code to external fragments, and | Fred Drake | 2002-03-28 | 1 | -148/+31 | |
| | | | | | | | | | | | | | | include them using \verbatiminput. This has the advantage that pages can still break at reasonable places, and examples that go longer than a page won't get cut off. Make a few small markup adjustments for consistency. Explain that PyObject_New() is not a C function but a polymorphic beast that returns a pointer to the type that's passed as the first arg. Explain why type objects use the PyObject_VAR_HEAD. | |||||
* | Added index entries. | Fred Drake | 2002-03-28 | 1 | -0/+4 | |
| | ||||||
* | Allow a page break in a code longish example. | Fred Drake | 2002-03-28 | 1 | -1/+3 | |
| | ||||||
* | Describe how to support the iterator protocol in extension types. | Fred Drake | 2002-03-13 | 1 | -4/+60 | |
| | | | | This closes SF bug #420851. |