summaryrefslogtreecommitdiffstats
path: root/Doc/ref/ref5.tex
Commit message (Collapse)AuthorAgeFilesLines
* Patch #1489771: update syntax rules in Python Reference Manual.Žiga Seilnacht2007-03-241-24/+162
| | | | | | | | Python 2.5 added support for explicit relative import statements and yield expressions, which were missing in the manual. Also fix grammar productions that used the names from the Grammar file, markup that broke the generated grammar.txt, and wrap some lines that broke the pdf output. Will backport.
* Bug #1501122: mention __gt__ &co in description of comparison order.Georg Brandl2006-06-141-2/+6
|
* End of Ch.3 is now about "with statement".George Yoshida2006-05-271-3/+3
| | | | Avoid obsolescence by directly referring to the section.
* minor markup nitsGeorge Yoshida2006-05-271-1/+2
|
* avoid ugly markup based on the unfortunate conversions of ">>" and "<<" toFred Drake2006-05-031-1/+1
| | | | guillemets; no need for magic here
* Note version added for conditional expressionsNeal Norwitz2006-02-271-1/+1
|
* PEP 308 implementation, including minor refdocs and some testcases. ItThomas Wouters2006-02-271-3/+8
| | | | | | | | | | | | | | | | | | | | | | | | | breaks the parser module, because it adds the if/else construct as well as two new grammar rules for backward compatibility. If no one else fixes parsermodule, I guess I'll go ahead and fix it later this week. The TeX code was checked with texcheck.py, but not rendered. There is actually a slight incompatibility: >>> (x for x in lambda:0) Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: iteration over non-sequence changes into >>> (x for x in lambda: 0) File "<stdin>", line 1 (x for x in lambda: 0) ^ SyntaxError: invalid syntax Since there's no way the former version can be useful, it's probably a bugfix ;)
* Add markup to a "Python Standard Library" doc reference I added for bug 839585.Georg Brandl2006-01-201-2/+3
|
* Bug #839585: mention % string operator in language refGeorg Brandl2005-12-261-0/+6
|
* Empty sets and frozensets are also false.Georg Brandl2005-08-211-3/+3
|
* Mention explicitly the False is considered false.Georg Brandl2005-08-211-3/+3
|
* fix a bunch of spelling errorsFred Drake2005-01-191-1/+1
| | | | (closes SF patch #1104868)
* SF Patch #1093896: miscellaneous doc typosRaymond Hettinger2005-01-011-1/+1
|
* Fix SF bug #1061770: Manual typesets bit-shift operators as guillemetFred Drake2004-11-111-1/+2
|
* clarify trailing comma in function argument listFred Drake2004-11-021-2/+2
| | | | (SF bug #798652)
* Patch #1042969: add closing brace for \token {generator_expression}. ThanksJohannes Gijsbers2004-10-091-1/+1
| | | | George Yoshida!
* SF patch #872326: generator expression implementationRaymond Hettinger2004-08-151-1/+46
| | | | | | (Contributed by Jiwon Seo.) Add genexps to the reference manual.
* [Bug #827209] Add footnote from Alex M. about listcomps leaking their index ↵Andrew M. Kuchling2004-08-071-1/+5
| | | | variables
* Move grammar rule for lambda_form into section on lambdas. Fixes #964525.Martin v. Löwis2004-06-021-2/+5
|
* SF bug #940579: section 5.10: 'not' returns boolean, not intRaymond Hettinger2004-04-231-4/+4
|
* clarified (in the 5.14 summary) that tests and comparisons all chain,Alex Martelli2003-11-091-3/+3
| | | | | added a specific \ref to 5.9 in lieu of previous vague "see above". (same as commit of Sun Nov 2 to the release23-maint branch)
* Patch #821093: Fix various typos.Martin v. Löwis2003-10-191-1/+1
|
* - create a hyperlink for a section reference (also more robust in theFred Drake2003-09-061-4/+4
| | | | | face of section re-ordering) - fix minor markup nits for better presentation
* Add definitions of the test and testlist symbols in the grammar soFred Drake2003-06-271-0/+5
| | | | | there are no gaps in the definitions. Closes SF bug #726150.
* SF patch #760792: "wo" in "word" now valid but not documented as suchRaymond Hettinger2003-06-261-4/+7
| | | | | | Revised version of a contribution from Gerrit Holl. Update the docs for the extended behavior of __contains__
* * Fixed an unmatched parenthesis early in the text.Raymond Hettinger2003-06-261-2/+10
| | | | | * Clarified the meaning of lexicographic sequence ordering as discussed on comp.lang.python: http://groups.google.com/groups?th=e163c9f9ba114493
* SF bug #749759: comparisons yield bool not intRaymond Hettinger2003-06-061-1/+1
| | | | Minor documentation fix.
* Add a space after expression to be consistentNeal Norwitz2003-04-101-1/+1
|
* Fixing bugGustavo Niemeyer2002-12-161-0/+18
| | | | | | | | | | | | | | | | | | [#448679] Left to right * Python/compile.c (com_dictmaker): Reordered evaluation of dictionaries to follow strict LTR evaluation. * Lib/compiler/pycodegen.py (CodeGenerator.visitDict): Reordered evaluation of dictionaries to follow strict LTR evaluation. * Doc/ref/ref5.tex Documented the general LTR evaluation order idea. * Misc/NEWS Documented change in evaluation order of dictionaries.
* * Doc/ref/ref5.texGustavo Niemeyer2002-11-261-1/+1
| | | | Fixed minor bug preventing documentation compilation.
* Repaired inaccuracies in the % docs. In particular, we don't (and can't)Tim Peters2002-11-241-3/+14
| | | | | | | guarantee abs(x%y) < abs(y) in all cases when a float is involved. math.fmod() should, though, so noted that too. Bugfix candidate. Someone should check the LaTeX here first, though.
* Update: Older versions of Python crashed when calling repr()Fred Drake2002-11-131-3/+5
| | | | | | (including the implied call using back-ticks) of a recursive object, but this is no longer the case. Reported by Manus Hand via email.
* Closes SF bug #634069 reporting the docs on the ** operator were outRaymond Hettinger2002-11-081-4/+14
| | | | of date and did not reflect the current CPython implementation.
* Clarify deprecation of the floor div operator, modulo operator,Raymond Hettinger2002-10-111-5/+4
| | | | | | and divmod() function for complex numbers. Closes SF Bug 621708: Unclear deprecation.
* Modified presentation of the grammar for calls to be easier to readFred Drake2002-10-071-4/+5
| | | | | for both HTML and typeset renderings. Corresponds to revision 1.53.4.8 on the r22-maint branch.
* Minor English grammar correctionRaymond Hettinger2002-06-251-1/+1
|
* Simplify the production for argument list, making sure that itFred Drake2002-06-201-4/+4
| | | | | | actually allows all the legal syntax, and nothing else. Previously, it did not allow a call like func(arg, **dictionary). This closes (again!) SF bug #493243.
* Played contortionist games with the argument_list production so itFred Drake2002-06-181-4/+4
| | | | | might be easier to understand. This relates to SF bug #493243, which will be closed.
* Patch 543387. Document deprecation of complex %, //,and divmod().Raymond Hettinger2002-05-211-3/+8
|
* Added a missing "|" in the grammar productions used in the reference manualFred Drake2002-04-301-7/+9
| | | | | | | (reported by François Pinard). Added some missing "_" characters in the same cluster of productions. Added missing floor division operator in m_expr production, and mention floor division in the relevant portion of the text.
* Fix typo: coverted --> converted. Reported by Francois Pinard.Fred Drake2002-04-091-1/+1
|
* 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?
* Fix up unescaped tilde; reported by several people.Fred Drake2002-03-181-1/+1
|
* Markup error: braces not properly marked in dictionary displayFred Drake2002-03-161-1/+1
| | | | | grammer productions. Fixes SF bug #520959.
* Revise the markup related to the grammar productions to increase theFred Drake2002-03-151-16/+14
| | | | | | level of predictability. This is not really "good" markup, but is arguably better than we had before. This closes SF bug #523117.
* Work around the problem of spaces after a "}" being dropped by LaTeX2HTML ifFred Drake2001-12-141-5/+5
| | | | | they were represented by newlines in the document source. Partially fixes SF bug #493243.
* Fix forMichael W. Hudson2001-12-121-2/+45
| | | | [ #429329 ] actual-parameters *arg, **kws not doc'd
* Removed stray backslash (a typo -- my fault).Tim Peters2001-10-011-1/+1
|
* The description of dictionary comparison was out of date. Rather thanTim Peters2001-10-011-9/+12
| | | | | | try to explain the complex general scheme we actually use now, I decided to spell out only what equality means (which is easy to explain and intuitive), leaving the other outcomes unspecified beyond consistency.