summaryrefslogtreecommitdiffstats
path: root/Doc/ext
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Update to use the new \csimplemacro macroFred Drake2002-04-091-5/+5
|
* Move reference material on PyArg_Parse*() out of the Extending & EmbeddingFred Drake2002-04-053-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 Drake2002-04-051-1/+1
|
* Add a note warning against semicolons following PyObject_HEAD.Fred Drake2002-04-021-5/+9
| | | | Minor cleanups.
* There is no PyArg_ConvertTuple(); call it by the right name.Fred Drake2002-04-011-1/+1
| | | | This closes SF bug #537511.
* Use the right types for a couple of fields of the type structure.Fred Drake2002-03-291-2/+2
|
* Started updating information about defining attributes on types.Fred Drake2002-03-291-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 Drake2002-03-281-5/+5
|
* Added comments for more entries of the type structure in the exampleFred Drake2002-03-281-19/+19
| | | | type implementation.
* The new files included by \verbatiminput in newtypes.tex.Fred Drake2002-03-282-0/+134
|
* Move some of the longer example code to external fragments, andFred Drake2002-03-281-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 Drake2002-03-281-0/+4
|
* Allow a page break in a code longish example.Fred Drake2002-03-281-1/+3
|
* Describe how to support the iterator protocol in extension types.Fred Drake2002-03-131-4/+60
| | | | This closes SF bug #420851.
* Patch #500136: Update Update ext build documentation. 2.2.1 candidate.Martin v. Löwis2002-03-094-190/+148
|
* That hasn't been my email address for a while!Michael W. Hudson2002-01-161-1/+1
|
* Fixed "u#" parser marker to pass through Unicode objects as-is withoutMarc-André Lemburg2002-01-091-0/+2
| | | | | | going through the buffer interface API. Added tests for this to the _testcapi module and updated docs.
* Replace the "Cookbook approach" with the approach documented inFred Drake2001-12-131-15/+166
| | | | | PC/example_nt/readme.txt; this one does not rely on any external scripts. This "fixes" SF bug #221671 and most of SF bug #225003.
* Added discussion of protecting against screwing up the exception state inFred Drake2001-12-111-0/+48
| | | | an object's deallocator, including an example of how to do this.
* More info about the cycle detector.Guido van Rossum2001-12-071-2/+4
|
* Trivial spelling repair on new cyclic garbage text.Tim Peters2001-12-071-2/+2
|
* Added more information about reference counting limitations and the cycleFred Drake2001-12-071-0/+27
| | | | | detector. This closes SF bug #484950.
* Clarify the description of the creation of an owned reference from an APIFred Drake2001-11-291-5/+5
| | | | | function. This closes SF bug #486657.
* Add an index entry for the discussion of PyEval_CallObject().Fred Drake2001-11-291-8/+9
| | | | This is related to SF bug #485165.
* Clean up some markup cruft. A number of the macros that take noFred Drake2001-11-284-27/+27
| | | | | | | | parameters (like \UNIX) are commonly entered using an empty group to separate the markup from a following inter-word space; this is not needed when the next character is punctuation, or the markup is the last thing in the enclosing group. These cases were marked inconsistently; the empty group is now *only* used when needed.
* Exhibit good form in C code: always provide docstrings in method tables, andFred Drake2001-11-173-19/+25
| | | | | always fill in all slots of table entries. Fixed a few minor markup errors.
* Use the \note and \warning macros where appropriate.Fred Drake2001-10-201-6/+6
|
* Document required return values -1, 0, 1 for tp_compare handler, asGuido van Rossum2001-10-161-2/+11
| | | | suggested in SF patch #424475. Also document exception return.
* SF [#466125] PyLong_AsLongLong works for any integer.Tim Peters2001-09-301-0/+5
| | | | | | Generalize PyLong_AsLongLong to accept int arguments too. The real point is so that PyArg_ParseTuple's 'L' code does too. That code was undocumented (AFAICT), so documented it.
* Remove comment that no longer applies.Fred Drake2001-09-261-3/+0
|
* Document the rule that Python.h must be included before any standardFred Drake2001-09-061-2/+4
| | | | headers. This is the final checkin for SF bug #458768.
* Do not #include <stdio.h> since Python.h already does that.Fred Drake2001-09-061-1/+0
|
* Use the standard argument convention for main(), and conform to theFred Drake2001-09-061-1/+2
| | | | Python/C style guide.
* On Fred's suggestion, convert sprintf() examples to useBarry Warsaw2001-08-291-19/+11
| | | | | PyString_FromFormat(). Also fixed one grammar problem, and a few other mark-up issues. Sample code not checked.
* Split "Extending & Embedding" into separate files, one per chapter.Fred Drake2001-08-206-3158/+3155
|
* A large contribution from Dave Kuhlman describing what each of the slotsFred Drake2001-08-151-6/+385
| | | | | | | | | in the type object is used for, for many of the more commonly used slots. Thanks! (But there is still a lot more to write on this topic.) Markup and organizational changes by your friendly neighborhood documentation czar.
* Lots of new text and example code on embedding Python in C, contributedFred Drake2001-08-042-1/+309
| | | | | | | | | | | by Albert Hofkamp. Some editing has been done for style and markup consistency. This also supplies an example of importing modules and calling a function defined in the module, so this closes SF bug #440037 as well. (The long example code was moved to a separate file so that it would format properly.)
* Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.Martin v. Löwis2001-07-261-2/+2
|