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 r.david.murray
Recipients MLModel, effbot, eric.araujo, flox, georg.brandl, jaraco, r.david.murray
Date 2010-03-28.22:14:20
SpamBayes Score 2.5243287e-07
Marked as misclassified No
Message-id <1269814462.35.0.721553480167.issue6488@psf.upfronthosting.co.za>
In-reply-to
Content
I think you are incorrect about the comma after element.  Without the comma 'the first matching element or the default value' are tightly bound, meaning that if either of those is true, then the default value is returned.  That's obviously incorrect, so a human will parse the sentence the way you expect.  But I think technically the comma after element turns the sentence into two independent clauses conjoined by 'or', so that either the first matching element is returned, or the default is returned (if no element was found).  I think it also reads better rhythmically (you will note that I used a comma in my sentence, as well, even though in that case no technical ambiguity results from leaving it out).

The comma in the other sentence I think is optional, and I agree that it reads better without it.
History
Date User Action Args
2010-03-28 22:14:22r.david.murraysetrecipients: + r.david.murray, effbot, georg.brandl, jaraco, eric.araujo, MLModel, flox
2010-03-28 22:14:22r.david.murraysetmessageid: <1269814462.35.0.721553480167.issue6488@psf.upfronthosting.co.za>
2010-03-28 22:14:20r.david.murraylinkissue6488 messages
2010-03-28 22:14:20r.david.murraycreate