Try to clarify parens a bit

This commit is contained in:
Neal Norwitz 2006-02-27 17:38:27 +00:00
parent baa6e3c955
commit ee1191f906
1 changed files with 5 additions and 4 deletions

View File

@ -71,10 +71,11 @@ Core language
* Cleanup the Py_InitModule() variants {,3,4} (also import and parser APIs) * Cleanup the Py_InitModule() variants {,3,4} (also import and parser APIs)
* Cleanup the APIs exported in pythonrun, etc. * Cleanup the APIs exported in pythonrun, etc.
* Fix (or remove) {}.setdefault() [21]_ * Fix (or remove) {}.setdefault() [21]_
* List comprehensions will require parentheses around the iterables. * Some expressions will require paretheses that didn't in 2.x:
This will make list comprehensions more similar to generator comprehensions. - List comprehensions will require parentheses around the iterables.
[x for x in 1, 2] will need to be: [x for x in (1, 2)] This will make list comprehensions more similar to generator comprehensions.
* Lambdas will have to be parenthesized [23]_ [x for x in 1, 2] will need to be: [x for x in (1, 2)]
- Lambdas will have to be parenthesized [23]_
To be removed: To be removed: