#44584: generate_packets.py: Turn sequence-building loops into expressions Open Date: 2022-05-13 21:49 Last Update: 2022-05-13 21:49 URL for this Ticket: https://osdn.net//projects/freeciv/ticket/44584 RSS feed for this Ticket: https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=44584 --------------------------------------------------------------------- Last Changes/Comment on this Ticket: 2022-05-13 21:49 Updated by: alienvalkyrie * New Ticket "generate_packets.py: Turn sequence-building loops into expressions" 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. There are a number of places where a loop with a relatively small body is used to build up a collection or string element by element. Many of these could be better served with a list/set/dict comprehension or a str.join() call. -- 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/44584 RSS feed for this Ticket: https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=44584