Author Soothsayer
Recipients Soothsayer, docs@python
Date 2018-01-30.05:41:01
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1517290861.72.0.467229070634.issue32722@psf.upfronthosting.co.za>
In-reply-to
Content
In the Python tutorial, in "9. Classes", in "9.10 Generator expression", a list of sample generator expressions used as arguments to functions is given. However, one of the examples isn't a generator expression, it's a set comprehension.

sine_table = {x: sin(x*pi/180) for x in range(0, 91)}

Perhaps this used to be a call to set() and was mistakenly converted?
History
Date User Action Args
2018-01-30 05:41:01Soothsayersetrecipients: + Soothsayer, docs@python
2018-01-30 05:41:01Soothsayersetmessageid: <1517290861.72.0.467229070634.issue32722@psf.upfronthosting.co.za>
2018-01-30 05:41:01Soothsayerlinkissue32722 messages
2018-01-30 05:41:01Soothsayercreate