listcomp

From Wiktionary, the free dictionary
Jump to navigation Jump to search

English

[edit]

Noun

[edit]

listcomp (plural listcomps)

  1. (programming, Python) A list comprehension.
    • 2016, Paul Barry, Head First Python: A Brain-Friendly Guide, O'Reilly, →ISBN, page 508:
      When you come across something that looks like a listcomp but is surrounded by parentheses, you're looking at a generator: []