Ticket #44583

generate_packets.py: avoid map/filter with lambdas

Date d'ouverture: 2022-05-14 01:13 Dernière mise à jour: 2022-05-16 22:15

Rapporteur:
Propriétaire:
Type:
État:
Atteints
Composant:
Jalon:
Priorité:
5 - moyen
Sévérité:
5 - moyen
Résolution:
Fixed
Fichier:
1

Détails

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
  • Résolution Update from Aucun to Accepted
2022-05-16 22:15 Updated by: alienvalkyrie
  • État Update from Ouvert to Atteints
  • Résolution Update from Accepted to Fixed

Modifier

Please login to add comment to this ticket » Connexion