summaryrefslogtreecommitdiffstats
path: root/Doc/tut
Commit message (Collapse)AuthorAgeFilesLines
* Remove heading from orphan section.Fred Drake2003-06-201-1/+1
|
* Include "instances of most classes" in a warning about mutable objectsFred Drake2003-06-181-2/+3
| | | | as default values of function/method parameters.
* Markup nits.Fred Drake2003-05-201-5/+5
|
* More message updates and minor fixes.Raymond Hettinger2003-05-071-10/+9
|
* Update traceback messageRaymond Hettinger2003-05-071-1/+1
|
* add missing parens - verified w/ interpreter - sorry to dismiss your commentSkip Montanaro2003-05-071-1/+1
| | | | Fred
* replace most uses of `...` by repr(...), noting that `...` is discouraged,Skip Montanaro2003-05-071-17/+15
| | | | but convenient in interactive sessions.
* Fix some markup nits.Fred Drake2003-04-221-3/+5
|
* Adding new built-in function sum, with docs and tests.Alex Martelli2003-04-221-1/+4
|
* SF bug #699237: Tutorial uses omitted slice indices before explaining themRaymond Hettinger2003-03-121-11/+11
| | | | Moved up the explanation of slice default arguments.
* - New function sys.exc_clear() clears the current exception. This isGuido van Rossum2003-03-011-8/+9
| | | | | | rarely needed, but can sometimes be useful to release objects referenced by the traceback held in sys.exc_info()[2]. (SF patch #693195.) Thanks to Kevin Jacobs!
* Chapter titles that get split over multiple lines in the typesetFred Drake2002-10-281-5/+3
| | | | | | | formats can't have whitespace after the last non-blank character (bug in LaTeX?); fix up a couple of instances of this. Update an email address.
* Clarify packages in tutorial. Closes SF bug #616211.Raymond Hettinger2002-10-261-0/+3
|
* Describe __path__ along with the rest of the package description.Fred Drake2002-10-221-1/+12
| | | | Closes SF bug #626554.
* Remove mentionings of DOS.Martin v. Löwis2002-10-101-1/+1
|
* Added a tutorial note and example regarding the scope of loop variablesRaymond Hettinger2002-09-061-0/+13
| | | | | | | in a list comprehension. Includes a justification and a comparision to regular for-loops. Closes SF bug 605047.
* Replace all cases of "while 1" with "while True".Raymond Hettinger2002-08-211-7/+7
| | | | Though slightly slower, has better clarity and teaching value.
* This is my patchMichael W. Hudson2002-08-151-6/+5
| | | | | | | | [ 587993 ] SET_LINENO killer Remove SET_LINENO. Tracing is now supported by inspecting co_lnotab. Many sundry changes to document and adapt to this change.
* Remove a broken example of extreme backward compatibility; it isFred Drake2002-08-141-21/+0
| | | | | simply not relevant any more. Closes SF bug #595032.
* GvR pointed out that only enclosing function bodies are part of nested scopes.Raymond Hettinger2002-08-071-5/+5
|
* Describe nested scopes in the tutorial. Closes SF bug 500704.Raymond Hettinger2002-08-071-6/+11
|
* Fix typo reported to python-docs.Fred Drake2002-06-261-1/+1
|
* Close bug 480337: Dict used before dicts explained. Added explanationRaymond Hettinger2002-06-251-2/+11
| | | | and examples of the dict() constructor.
* Fix spacing in loop exampleRaymond Hettinger2002-06-251-3/+3
|
* Completely revise markup for the list of list methods; the new markup matchesFred Drake2002-06-111-26/+35
| | | | | | | the semantics and presentation used in the library reference. Added an explanation of the use of [...] to denote optional arguments, since this is the only use of this in a signature line. Closes SF bug #567127.
* As discussed on python-dev, add a mechanism to indicate featuresNeal Norwitz2002-05-291-16/+17
| | | | | that are in the process of deprecation (PendingDeprecationWarning). Docs could be improved.
* Message for NameError has changedAndrew M. Kuchling2002-05-021-1/+1
|
* Documentation for the enumerate() function/type.Fred Drake2002-04-261-0/+43
| | | | This closes SF patch #547162.
* "Shortcut" should be "short-circuit".Fred Drake2002-03-081-6/+7
| | | | This closes SF bug #526277.
* Revise cheeseshop example so that the order of the keyword output isFred Drake2002-01-291-1/+8
| | | | | | completely determined by the example; dict insertion order and the string hash algorithm no longer affect the output. This fixes SF bug #509281.
* Fix up some examples in the tutorial so we don't contradict our ownFred Drake2001-12-201-2/+2
| | | | | advice on docstrings. This fixes SF bug #495601.
* Include a warning that scripts should not have the same name as standardFred Drake2001-12-041-13/+37
| | | | | | | modules, or the module cannot be properly imported. (Based on a suggestion sent to python-docs.) Update the displayed dir() of the sys and __builtin__ module with Python 2.2.
* Talk about str() in the discussion of string representations of values, andFred Drake2001-12-041-3/+26
| | | | | give examples for which str() and repr() yield different results. This closes SF bug #485446.
* Update lambda description to reflect nested scopes. This was noted byFred Drake2001-12-031-4/+2
| | | | Andrew Koenig.
* Add a scalar product to the example list comprehensions based on a suggestionFred Drake2001-12-031-0/+2
| | | | sent to python-docs.
* Clean up some markup cruft. A number of the macros that take noFred Drake2001-11-281-6/+6
| | | | | | | | 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.
* Fix thinko in a comment about seeking with a file object.Fred Drake2001-10-161-1/+1
| | | | Reported by Francesco Trentini.
* Exceptions in interactive examlpes did not always include the indication ofFred Drake2001-09-211-19/+85
| | | | | | | | | the source file using "in ?". Added a description of the bare "raise" statement. Added more description and examples for user-defined exceptions; this is part of a response to SF bug #443559.
* Clarified the interaction between string literals and continuation lines.Fred Drake2001-09-061-5/+28
| | | | Fixes bug reported as SF bug #453728.
* Make the examples for "Default Argument Values" more presentable andFred Drake2001-09-061-9/+13
| | | | | less hostile to newbie use at the interactive prompt. This is in response to SF bug #458654.
* Clarify the prompt in an example.Fred Drake2001-08-141-1/+1
| | | | This closes SF bug #450633.
* Minor re-wording in the exaplantion of sequence comparisons.Fred Drake2001-08-011-3/+4
| | | | This closes SF bug #445749.
* Add a more substantial example startup file for the interactive shell;Fred Drake2001-07-181-7/+44
| | | | | | | | sample startup script provided by Itamar Shtull-Trauring. This closes SF patch #410890. Add some logical markup where it was missing.
* Minor changes to match the style guide.Fred Drake2001-07-141-4/+4
|
* Fix up a few style nits -- avoid "e.g." and "i.e." -- these makeFred Drake2001-07-061-58/+62
| | | | | translation more difficult, as well as reading the English more difficult for non-native speakers.
* Use the more conventional "self" as the name of the self parameter in anFred Drake2001-06-291-1/+1
| | | | example. It actually confused a reader.
* Update to include the license information in a less annoying place.Fred Drake2001-06-201-0/+3
|
* Clarification in the fp appendix suggested on c.l.py by Michael Chermside.Tim Peters2001-06-171-2/+3
| | | | | Also replaced a *star* style emphasis in the Representation Error section with an \emph{} thingie.
* Fix the attributions for the new floating point text.Fred Drake2001-06-081-2/+1
|
* Added credits in the right places.Fred Drake2001-06-081-0/+2
|