summaryrefslogtreecommitdiffstats
path: root/Doc
Commit message (Collapse)AuthorAgeFilesLines
* Add the 'bool' type and its values 'False' and 'True', as described inGuido van Rossum2002-04-033-13/+58
| | | | | | | | | | | | | PEP 285. Everything described in the PEP is here, and there is even some documentation. I had to fix 12 unit tests; all but one of these were printing Boolean outcomes that changed from 0/1 to False/True. (The exception is test_unicode.py, which did a type(x) == type(y) style comparison. I could've fixed that with a single line using issubtype(x, type(y)), but instead chose to be explicit about those places where a bool is expected. Still to do: perhaps more documentation; change standard library modules to return False/True from predicates.
* Updated PEP link to point to the now-canonical site.Fred Drake2002-04-031-1/+1
|
* Update the PEP URL format to point to python.org.Fred Drake2002-04-031-1/+1
|
* Add a note warning against semicolons following PyObject_HEAD.Fred Drake2002-04-021-5/+9
| | | | Minor cleanups.
* Add an itemAndrew M. Kuchling2002-04-021-0/+20
|
* Add an experimental mechanism to support extending the pprint formatting.Fred Drake2002-04-021-0/+23
| | | | Partly responds to SF bug #505152.
* Explain that os.spawn*() return the process handle on Windows.Fred Drake2002-04-011-3/+5
| | | | | Clarify that os.waitpid() on Windows takes a process handle, not a process ID. This closes SF bug #537582.
* There is no PyArg_ConvertTuple(); call it by the right name.Fred Drake2002-04-011-1/+1
| | | | This closes SF bug #537511.
* Fix up the documentation of the type codes to give both the C and PythonFred Drake2002-04-011-17/+24
| | | | | | | | | types for each code, and give the actual C types. Clarified the support for slice operations and note when some TypeError exceptions are raised. This closes SF bugs 518767 and 536469.
* Change reference to execframes to naming.Jeremy Hylton2002-04-011-1/+1
|
* Restore a minimal definition of execution frame, since other parts ofJeremy Hylton2002-04-011-0/+6
| | | | | | | | the manual refer to it. XXX Not sure that it belongs in this section, or that the concept is particularly important for writing documentation. Perhaps references to the frame should be removed entirely.
* Update programmer's note on nested functions.Jeremy Hylton2002-04-011-5/+5
|
* Reword explanation of global statement since an undeclared global is aJeremy Hylton2002-04-011-3/+3
| | | | free variable and is subject to those rules.
* Note the sole case in which the ban on "from ... import *" within aJeremy Hylton2002-04-011-1/+5
| | | | function is enforced.
* Remove the following restriction:Jeremy Hylton2002-04-011-4/+0
| | | | | | | Names bound by import statements may not occur in global statements in the same scope. Why not?
* Note that it is illegal to delete a cell variable.Jeremy Hylton2002-04-011-2/+6
| | | | Note that deleteing an unbound local will raise a NameError.
* Given lambda its own section, instead of burying it in boolean operators.Jeremy Hylton2002-04-011-30/+7
|
* Update / simplify Identifiers section for nested scopes.Jeremy Hylton2002-04-011-18/+2
| | | | How do I create a cross reference to section 4.1?
* Update docs for nested scopes.Jeremy Hylton2002-04-012-257/+134
| | | | | | | | | | | | | Replace section 4.1 with section A.3. The new section 4.1 is titled "Naming and binding." It includes the text of section A.3 augmented with some of the detailed text from the old section 4.1. The \dfn, \index stuff is probably wrong, but I tried. Also update other parts of appendix A to mention that nested scopes and generators are standard features.
* Update to push the docs to python.org instead of python.sf.net.Fred Drake2002-04-012-9/+12
|
* Copy section on generators from the 2.2 document with a bit of rewritingAndrew M. Kuchling2002-04-011-1/+153
| | | | Add an item
* Mention 2.2.1 in intro and in bug/patch countsAndrew M. Kuchling2002-04-011-8/+11
| | | | Fix two typos spotted by Joonas Paalasmaa
* Update documentation of code objects.Jeremy Hylton2002-04-011-10/+15
| | | | | | | | Split the description of co_flags into two paragraphs. The first describes the flags that are used for non-future purposes, where CO_GENERATOR was added. The second describes __future__'s use of co_flags and mentions the only one currently meaningful, CO_FUTURE_DIVISION.
* Minor adjustments.Fred Drake2002-04-011-1/+2
|
* Small fixes for description of function attributes.Jeremy Hylton2002-04-011-5/+3
| | | | | | func_closure is a readonly attribute. Add \ttindex{} for func_closure. Remove discussion of func_closure specific to 2.1.
* 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
|
* Extend \verbatiminput so that the typeset version provides the same appearanceFred Drake2002-03-281-0/+14
| | | | as a verbatim environment. (The HTML version is already fine.)
* Minor wording change.Fred Drake2002-03-281-1/+1
|
* add exception class hierarchy. This should probably be done differently,Skip Montanaro2002-03-281-0/+44
| | | | but at least the content is there.
* Allow a page break in a code longish example.Fred Drake2002-03-281-1/+3
|
* Add documentation on the hasfree data object.Fred Drake2002-03-281-0/+4
|
* Minor consistency adjustments.Fred Drake2002-03-281-11/+12
|
* Introduce two new flag bits that can be set in a PyMethodDef methodFred Drake2002-03-281-2/+30
| | | | | | | | | | | | | | | | | | | descriptor, as used for the tp_methods slot of a type. These new flag bits are both optional, and mutually exclusive. Most methods will not use either. These flags are used to create special method types which exist in the same namespace as normal methods without having to use tedious construction code to insert the new special method objects in the type's tp_dict after PyType_Ready() has been called. If METH_CLASS is specified, the method will represent a class method like that returned by the classmethod() built-in. If METH_STATIC is specified, the method will represent a static method like that returned by the staticmethod() built-in. These flags may not be used in the PyMethodDef table for modules since these special method types are not meaningful in that case; a ValueError will be raised if these flags are found in that context.
* Ignore new output directory.Fred Drake2002-03-271-0/+1
|
* Expose C library's gettext. Fixes #516412.Martin v. Löwis2002-03-271-0/+18
|
* add seealso referring to site module doc where people can learn how toSkip Montanaro2002-03-271-0/+6
| | | | extend sys.path using .pth files.
* fix a typo in PyErr_Format table and add row for 'p' format charSkip Montanaro2002-03-271-1/+2
| | | | closes bug 534495
* Fill in this document a bit, adding reminders of items that should be includedAndrew M. Kuchling2002-03-271-5/+99
|
* Add the "What's New" document to the index of HTML documents.Fred Drake2002-03-262-11/+30
|
* The <link> to the stylesheet should include the type attribute.Fred Drake2002-03-261-1/+1
|
* Wire up the makefile to more fully support the "What's New" documents.Fred Drake2002-03-261-2/+14
|
* Wire in the "What's New" document.Fred Drake2002-03-261-4/+21
|
* Add a starter for the next "What's New" document.Fred Drake2002-03-261-0/+21
|
* Make \url to force horizontal mode.Fred Drake2002-03-261-0/+1
|