Author martin.panter
Recipients Hernan.Grecco, beng94, martin.panter
Date 2016-02-21.07:05:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Tamás, it might be a good idea for you to sign a contributor agreement <>.

I compiled Python in 32-bit mode and tried your v2 patch out, which found the wrong library as I predicted. Then I tried your new regex and it picked out the correct line. I had to edit it to get it to extract just the filename from the line:

r'lib%s\.[^\s]+\s\(%s(?:,\s.*)?\)\s=>\s(.*)' % (re.escape(name), abi_type)

I factored out the closing bracket from the comma + space bit, moved the group brackets to the end to extract the filename, and made it a raw string.

Without the patch, in 32-bit mode it will find 64-bit-only libraries:

>>> find_library("m")  # 32- and 64-bit available
>>> find_library("tcl8.6")  # Only 64-bit version available!

With my edited regex:

>>> find_library("m")
>>> find_library("tcl8.6") is None  # No 32-bit version found
Date User Action Args
2016-02-21 07:05:44martin.pantersetrecipients: + martin.panter, Hernan.Grecco, beng94
2016-02-21 07:05:44martin.pantersetmessageid: <>
2016-02-21 07:05:44martin.panterlinkissue21042 messages
2016-02-21 07:05:43martin.pantercreate