任务单 #44583

generate_packets.py: avoid map/filter with lambdas

开放日期: 2022-05-14 01:13 最后更新: 2022-05-16 22:15

报告人:
属主:
类型:
状态:
关闭
组件:
里程碑:
优先:
5 - Medium
严重性:
5 - Medium
处理结果:
Fixed
文件:
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.

任务单历史 (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
  • 处理结果 Update from to Accepted
2022-05-16 22:15 Updated by: alienvalkyrie
  • 状态 Update from 开启 to 关闭
  • 处理结果 Update from Accepted to Fixed

编辑

Please login to add comment to this ticket » 登录名