Merge branch 'master' into python-3.3-to-3.5

This commit is contained in:
rocky
2022-04-17 12:21:53 -04:00
2 changed files with 15 additions and 9 deletions

View File

@@ -13,7 +13,7 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
Generators and comprehenison functions
Generators and comprehension functions
"""
@@ -191,7 +191,13 @@ class ComprehensionMixin:
self.preorder(tree[iter_index])
self.prec = p
def comprehension_walk_newer(self, node, iter_index, code_index=-5):
def comprehension_walk_newer(
self,
node,
iter_index,
code_index=-5,
collection_node=None,
):
"""Non-closure-based comprehensions the way they are done in Python3
and some Python 2.7. Note: there are also other set comprehensions.
"""