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 michael-lazar
Recipients barry, manu-beffara, michael-lazar, petri.lehtinen, r.david.murray
Date 2016-07-13.06:54:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1468392871.92.0.369385722326.issue14977@psf.upfronthosting.co.za>
In-reply-to
Content
That works for me, patch updated to match your suggestion. So to recap, the proposed fix implements the following changes to the api:

getcaps()
   The returned dict now has an additional `lineno` field. There's a *slim* chance that this could break behavior for somebody who relies on the output for something other than passing it to findmatch().

readmailcapfiles()
    Marked as deprecated, but the behavior will remain the same.

lookup(caps, ...)
    If the caps dict contains `lineno`, the metadata will be used to sort the matching entries. If the caps dict does not contain `lineno`, for example if it was constructed manually, the behavior will remain the same.

findmatch(caps, ...)
    Same as lookup()
History
Date User Action Args
2016-07-13 06:54:31michael-lazarsetrecipients: + michael-lazar, barry, r.david.murray, petri.lehtinen, manu-beffara
2016-07-13 06:54:31michael-lazarsetmessageid: <1468392871.92.0.369385722326.issue14977@psf.upfronthosting.co.za>
2016-07-13 06:54:31michael-lazarlinkissue14977 messages
2016-07-13 06:54:31michael-lazarcreate