This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author jdufresne
Recipients jdufresne
Date 2017-05-07.13:08:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1494162484.35.0.941296488498.issue30296@psf.upfronthosting.co.za>
In-reply-to
Content
Lib has some patterns that could be easily discovered and cleaned up. Doing so will reduce the number of unnecessary temporary lists in memory and unnecessary function calls. It will also take advantage of Python's own rich features in a way that better dog foods the language. For example:

* Replace list(<generator expression>) with list comprehension
* Replace dict(<generator expression>) with dict comprehension
* Replace set(<generator expression>) with set comprehension
* Replace builtin func(<list comprehension>) with func(<generator expression>) when supported (e.g. any(), all(), tuple(), min(), & max())
History
Date User Action Args
2017-05-07 13:08:04jdufresnesetrecipients: + jdufresne
2017-05-07 13:08:04jdufresnesetmessageid: <1494162484.35.0.941296488498.issue30296@psf.upfronthosting.co.za>
2017-05-07 13:08:04jdufresnelinkissue30296 messages
2017-05-07 13:08:04jdufresnecreate