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 stutzbach
Recipients amaury.forgeotdarc, dwt, eric.araujo, stutzbach
Date 2012-01-17.19:42:34
SpamBayes Score 0.006016752
Marked as misclassified No
Message-id <1326829354.98.0.476997337245.issue13804@psf.upfronthosting.co.za>
In-reply-to
Content
If I'm understanding Martin Häcker's code correctly, the list comprehension equivalent is:

self.questions = [topic.questions for topic in self.topics]

The reduce() variants are not only much harder to read, but they will take O(n**2) operations because they create an O(n) list O(n) times.
History
Date User Action Args
2012-01-17 19:42:35stutzbachsetrecipients: + stutzbach, amaury.forgeotdarc, eric.araujo, dwt
2012-01-17 19:42:34stutzbachsetmessageid: <1326829354.98.0.476997337245.issue13804@psf.upfronthosting.co.za>
2012-01-17 19:42:34stutzbachlinkissue13804 messages
2012-01-17 19:42:34stutzbachcreate