Commit Graph

307 Commits

Author SHA1 Message Date
Georg Brandl e51d1d11f0 Bug #1769002: fix a now-wrong sentence in the tutorial.
(backport from rev. 56797)
2007-08-07 07:13:27 +00:00
Georg Brandl 00247d85bd try-except-finally is new in 2.5.
(backport from rev. 56614)
2007-07-29 09:11:19 +00:00
Georg Brandl 78d59d65c7 Bug #1637365: add subsection about "__name__ == __main__" to the
Python tutorial.
 (backport from rev. 56306)
2007-07-12 09:37:53 +00:00
Neal Norwitz bb56e2a558 Backport 55882: SF #1734732, lower case the module names per PEP 8. 2007-06-11 05:36:48 +00:00
Georg Brandl be69a0acc4 Bug #1710295: exceptions are now new-style classes.
(backport from rev. 55036)
2007-05-01 06:04:20 +00:00
Georg Brandl c22aee03c6 Version fix (bug #1708710) 2007-04-27 19:19:29 +00:00
Raymond Hettinger 95289052f7 SF #1382213: Tutorial section 9.5.1 ignores MRO for new-style classes 2007-04-03 01:37:56 +00:00
Fred Drake b17830e709 fix typo (extraneous ")") 2007-01-26 16:27:45 +00:00
Georg Brandl b57ebfb7bc Bug #1560114: the Mac filesystem does have accurate information
about the case of filenames.
 (backport from rev. 52309)
2006-10-12 11:47:00 +00:00
Georg Brandl 2b48f9490f Bug #1567375: a minor logical glitch in example description.
(backport from rev. 52053)
2006-09-30 07:24:56 +00:00
George Yoshida bd42596179 SF bug #1567976 : fix typo(backport from r52048)
Since this paragraph is about exception's message attribute(2.5 feature),
I will not backport to 2.4 branch.
2006-09-30 05:22:23 +00:00
Georg Brandl 097bbea4b6 evalfile() should be execfile().
(backport from rev. 51677)
2006-09-01 22:30:56 +00:00
Nick Coghlan 94a98e4fc6 Update the tutorial section on relative imports 2006-07-06 13:04:56 +00:00
Richard Jones 7b9558d37d Conversion of exceptions over from faked-up classes to new-style C types. 2006-05-27 12:29:24 +00:00
Fred Drake f25fa6ddb9 avoid ugly markup based on the unfortunate conversions of ">>" and "<<" to
guillemets; no need for magic here
2006-05-03 02:04:40 +00:00
Fred Drake a5f1fd09eb minor adjustment suggested by Peter Gephardt 2006-04-26 05:19:39 +00:00
Nick Coghlan 09b1bc39e7 Take 2 on mentioning the with statement, this time without inadvertently killing the Unicode examples 2006-04-23 16:35:19 +00:00
Nick Coghlan e0ea50bc3b Add a (very) brief mention of the with statement to the end of chapter 8 2006-04-23 16:05:04 +00:00
Georg Brandl 9d548374e4 Add two entries about how to actually clear a list. 2006-04-13 08:04:56 +00:00
Fredrik Lundh 31fe35bdee end the sentence... 2006-04-02 07:59:55 +00:00
Georg Brandl 8a85ac660b Update tutorial wrt PEP 341 try-except-finally statement 2006-03-19 11:20:29 +00:00
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
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
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
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
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