Commit Graph

301 Commits

Author SHA1 Message Date
Brett Cannon 54ac29497e Document PEP 352 changes. Also added GeneratorExit. 2006-03-01 22:10:49 +00:00
Andrew M. Kuchling 50f8169fb6 From a suggestion on c.l.py: modernize the introduction to the tutorial.
* Remove talk of shell scripting, replacing it by some more current examples
  * Mention C++ and Java as well as C

Raymond H., please feel free to rewrite or revert as you see fit.
If the changes are OK, they could be backported to the 2.4-maint branch.
2005-12-13 15:49:37 +00:00
Georg Brandl 3c9f9ac62b Added example for the ** operator in function calls 2005-11-22 19:50:14 +00:00
Martin v. Löwis ab0f947a21 Remove .cvsignore files, as they live in svn:ignore
properties now.
2005-10-30 22:01:41 +00:00
Andrew M. Kuchling 14f4fd0a9e Add more links to the 'What Next?' section; rewrite to be briefer 2005-09-13 19:56:06 +00:00
Andrew M. Kuchling ef369cd9cb Shorten run-on sentence 2005-09-12 12:45:37 +00:00
Andrew M. Kuchling b5d21183b4 Update link 2005-09-12 12:44:20 +00:00
Andrew M. Kuchling 8e13af3f7a Update link 2005-09-12 12:43:57 +00:00
Raymond Hettinger 2e8665ae43 More tutorial nits. 2005-08-23 18:26:00 +00:00
Raymond Hettinger 71da38b1a7 SF bug #1168135: Python 2.5a0 Tutorial errors and observations (Contributed by Michael R Bax.) 2005-08-23 18:02:28 +00:00
Raymond Hettinger e66d437139 SF bug #1168135: Python 2.5a0 Tutorial errors and observations
(Contributed by Michael R Bax.)
2005-08-23 15:00:45 +00:00
Andrew M. Kuchling 5c419a9fe4 In an e-mail to the webmaster alias, some suggested adding this text. Windows users, please correct/expand as necessary. 2005-08-23 13:48:21 +00:00
Raymond Hettinger f755432f41 SF bug #1168135: Python 2.5a0 Tutorial errors and observations
(Contributed by Michael R Bax.)
2005-08-21 12:35:29 +00:00
Georg Brandl 8b687cf683 bug [ 969757 ] function and method objects confounded in Tutorial 2005-07-08 21:36:36 +00:00
Raymond Hettinger 02c64d5684 Note that files are iterable. 2005-06-28 00:16:08 +00:00
Raymond Hettinger 5a34afb745 * Show the keyword argument form of dict().
* Note that dict works with the "in" keyword.
2005-06-27 23:36:47 +00:00
Raymond Hettinger 610d9dd38d Fix typo. 2005-06-17 10:25:33 +00:00
Raymond Hettinger eeed58cd25 SF bug #1219448: small output bug 2005-06-14 08:57:28 +00:00
Raymond Hettinger 0f43983aa3 SF bug #1201807: Glossary listing bug 2005-05-14 17:18:31 +00:00
Michael W. Hudson e8dead47e6 Fix
[ python-Bugs-1190599 ] dir() docs show incorrect output

though not entirely how it's suggested in the bug report.
2005-04-27 09:41:23 +00:00
Brett Cannon 7706c2da14 Update references specifying "Macintosh" to mean OS X semantics and not Mac OS
9.

Applies patch #1095802.  Thanks Jack Jansen.
2005-02-13 22:50:04 +00:00
Fred Drake 2f8c6589f5 fix typo 2005-01-12 19:11:45 +00:00
Raymond Hettinger d4f5b07e5d Add duck-typing to the glossary. 2005-01-11 16:11:13 +00:00
Johannes Gijsbers 158df10341 Bug #1098497: various small typo's, grammar and markup nits. 2005-01-09 00:12:48 +00:00
Raymond Hettinger 68804315e0 SF Patch #1093896: miscellaneous doc typos 2005-01-01 00:28:46 +00:00
Raymond Hettinger 784ab76c87 Remove the deprecated whrandom module. 2004-12-04 10:50:51 +00:00
Raymond Hettinger 65a350d733 SF bug #1076955: Tutorial corrections Part II 2004-12-02 07:29:43 +00:00
Raymond Hettinger aa2b2aa5a3 SF bug #1076955: Tutorial corrections Part I
(Submitted by some anonymous person with an amazing eye for grammer nits.)
2004-12-02 06:08:42 +00:00
Raymond Hettinger 29eb40c365 Fix nit. 2004-12-01 04:22:38 +00:00
Fred Drake 6e3fa2911d REVERT revision 1.260; the trunk is FROZEN.
This change can be made on the trunk and release24-maint branch after
the trunk is unfrozen.
2004-11-29 13:12:44 +00:00
Raymond Hettinger a98825ce48 Fix a nit. 2004-11-29 08:53:14 +00:00
Raymond Hettinger 83e4a146db SF bug #1067018: Obsolete info in Tutorial 9.1
Removed a section that is out of date after type/class unification.
While there was still some validity, the paragraph offered more
confusion that insight.
2004-11-18 06:20:30 +00:00
Raymond Hettinger 88c2595bf6 SF bug #1067023: A small typo
Make a minor clarification between "written" and "displayed".
2004-11-18 06:14:27 +00:00
Fred Drake e808c2341b - show how to use file.write() with a non-string value
(closes SF bug #621057)
- add missing whitespace around assignment operator
2004-11-02 18:24:26 +00:00
Raymond Hettinger df8a0032a4 SF 1053956: help() not in tutorial index 2004-10-26 03:53:35 +00:00
Fred Drake afe73c02a9 - improve the explanation of the -*- coding: ... -*- marker
- fix a minor formatting nit that affected the typeset version
2004-10-25 16:03:49 +00:00
Raymond Hettinger db29e0fe8c SF patch #1035498: -m option to run a module as a script
(Contributed by Nick Coghlan.)
2004-10-07 06:46:25 +00:00
Tim Peters 01ba799244 A number of list examples used 66.6, but I doubt there's any box on which
repr(66.6) == "66.6", so doubt that the claimed output has ever been seen.
Changed it to 66.25 everywhere, and manually verified that the new claimed
output is correct.
2004-09-28 16:12:50 +00:00
Johannes Gijsbers 24f141ab46 Raymond observed that sometimes it's better not to link modules, so I reverted
part of my previous last changes.
2004-09-25 00:55:38 +00:00
Johannes Gijsbers 27ebcae450 - Use itemize instead of plain-text '*' for marking up a list.
- Add more ulink's to modules (this should probably become a standard macro).
2004-09-24 23:25:25 +00:00
Raymond Hettinger 879ddf30d0 Tweak the wording. Improve examples. Make more brief. 2004-09-14 06:32:20 +00:00
Raymond Hettinger 29c6a79b7d Cover string.Template in the tutorial's library tour. 2004-09-14 05:21:42 +00:00
Johannes Gijsbers 6ab4b99f95 Patch #1025795: clarify language in Data Structures chapter of tutorial:
- Dictionary keys are in arbitrary order, but not random (which implies, well,
  intentional randomness).
- Move a footnote closer to what it's talking about so that it doesn't look
  like we're saying that "0 == 0.0" can't be relied on.
- Minor language tweaks in the vicinity.

Thanks Dima Dorfman!
2004-09-11 17:48:21 +00:00
Raymond Hettinger d3b0babf66 SF bug #1013760: Error in Chapter 4 of Tutorial
Fit a nit.
2004-08-22 15:24:33 +00:00
Raymond Hettinger d3fe2395b4 Minor improvements to the threading introduction:
* Expand the example to show a join.

* Mention the use case of I/O running concurrent with a computational
  thread.

* Be a tad more forceful about recommending Queue over other approaches
  to synchonization.

* Eliminate discussion around having a single interpreter.  This is a
  more advanced discussion that belongs in the library reference and
  in a section on extending and embedding.
2004-08-16 05:11:04 +00:00
Fred Drake 830d8b8b80 fix markup nit 2004-08-09 14:06:58 +00:00
Michael W. Hudson b6d9fc38e8 Patch:
[ 1003863 ] adds an index entry for __all__ to the tutorial
2004-08-07 17:05:42 +00:00
Fred Drake 4ab0e9e541 revise wording to avoid confusion for non-native English speakers
(second occurance of the same wording)
2004-07-21 17:36:47 +00:00
Fred Drake 20938f57ba revise wording to avoid confusion for non-native English speakers 2004-07-21 17:18:19 +00:00
Raymond Hettinger 44dc13bf3e Fix decimal write-up nits. 2004-07-11 12:49:47 +00:00