[Freeciv-tickets] [freeciv] #44583: generate_packets.py: avoid map/filter with lambdas

Back to archive index
OSDN Ticket System norep****@osdn*****
Sat May 14 01:13:03 JST 2022


#44583: generate_packets.py: avoid map/filter with lambdas

  Open Date: 2022-05-13 18:13
Last Update: 2022-05-13 18:13

URL for this Ticket:
    https://osdn.net//projects/freeciv/ticket/44583
RSS feed for this Ticket:
    https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=44583

---------------------------------------------------------------------

Last Changes/Comment on this Ticket:
2022-05-13 18:13 Updated by: alienvalkyrie
 * New Ticket "generate_packets.py: avoid map/filter with lambdas" created


---------------------------------------------------------------------
Ticket Status:

      Reporter: alienvalkyrie
         Owner: alienvalkyrie
          Type: Patches
        Status: Open [Owner assigned]
      Priority: 5 - Medium
     MileStone: 3.2.0
     Component: Bootstrap
      Severity: 5 - Medium
    Resolution: None
---------------------------------------------------------------------

Ticket 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 information of Freeciv project
Freeciv Project is hosted on OSDN

Project URL: https://osdn.net/projects/freeciv/
OSDN: https://osdn.net

URL for this Ticket:
    https://osdn.net/projects/freeciv/ticket/44583
RSS feed for this Ticket:
    https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=44583



More information about the Freeciv-tickets mailing list
Back to archive index