]> granicus.if.org Git - python/commit
The list comp patch checked for the second child node of the 'listmaker'
authorThomas Wouters <thomas@python.org>
Sun, 13 Aug 2000 17:05:17 +0000 (17:05 +0000)
committerThomas Wouters <thomas@python.org>
Sun, 13 Aug 2000 17:05:17 +0000 (17:05 +0000)
commit87df80d542b5bc0adeca2c864b6db19afe7f64aa
tree2a34c54bc90e5b92fbd73619ba6d6e260ab9cdda
parentdcb45c34f59d7f35f27364eb66cafd94eb31e30e
The list comp patch checked for the second child node of the 'listmaker'
node, without checking if the node actually had more than one child. It can
have only one node, though: '[' test ']'. This fixes it.
Python/compile.c