Ticket #44583

generate_packets.py: avoid map/filter with lambdas

오픈 날짜: 2022-05-14 01:13 마지막 업데이트: 2022-05-16 22:15

Reporter:
소유자:
Type:
Status:
Closed
Component:
MileStone:
Priority:
5 - Medium
Severity:
5 - Medium
Resolution:
Fixed
File:
1

Details

Part of #43927. Generator expressions of the form (value for x in data if condition) are clearer, more concise and more pythonic than map() and filter() in cases where the appropriate value selector or predicate would need to be defined as a lambda expression. Furthermore, where those generators would be passed to list(), set() or dict(), comprehensions are even more concise.

Ticket History (3/4 Histories)

2022-05-14 01:13 Updated by: alienvalkyrie
  • New Ticket "generate_packets.py: avoid map/filter with lambdas" created
2022-05-14 01:57 Updated by: alienvalkyrie
  • Resolution Update from None to Accepted
2022-05-16 22:15 Updated by: alienvalkyrie
  • Status Update from Open to Closed
  • Resolution Update from Accepted to Fixed

Edit

Please login to add comment to this ticket » Login