summaryrefslogtreecommitdiffstats
path: root/Doc/tut
Commit message (Collapse)AuthorAgeFilesLines
* Nits.Raymond Hettinger2003-07-151-2/+2
|
* SF patch #726751: Clarify docs for except target assignmentRaymond Hettinger2003-07-121-8/+20
| | | | | Brett found that the tutorial didn't really explain what was happening with exception targets. Hopefully, this sheds some light on the subject.
* Minor fixups and added sections for iterators and generators.Raymond Hettinger2003-07-111-3/+117
|
* - explain about making Python scripts executable on Unix in moreFred Drake2003-07-071-2/+13
| | | | | detail - fix minor markup nit
* SF #751062: Tutorial: remove string exceptions, add parnassus, #postsRaymond Hettinger2003-07-011-8/+9
| | | | | | | | (Contributed by Gerritt Holl) * Remove the last mentions of string exceptions * Reference a third-party repository of programs * Minor clarification of comp.lang.py posting volumes
* SF bug #762990: Awful Grammar in Python TutorialRaymond Hettinger2003-06-301-1/+1
| | | | Fixed a nit.
* minor wordsmithingSkip Montanaro2003-06-291-6/+6
|
* Correct markup errors that prevented formatting.Fred Drake2003-06-281-2/+2
|
* Explain source encodings. Fixes #683486.Martin v. Löwis2003-06-281-0/+33
|
* 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.