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 vstinner
Recipients doko, gvanrossum, koobs, ned.deily, python-dev, vstinner, zach.ware
Date 2016-09-09.21:42:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1473457346.05.0.594375683977.issue28027@psf.upfronthosting.co.za>
In-reply-to
Content
> https://codesearch.debian.net/search?q=import+DLFCN

I see 8 projects: boost, trilinos, vtk6, openbabel, gdcm, paraview, ecasound, yade. It doesn't like a giant project to update them.


> boost1.58_1.58.0+dfsg-5.1/libs/mpi/build/__init__.py
>
> import sys
> if sys.platform == 'linux2':
>    import DLFCN as dl

It's not like this code already works on Python 3 :-) sys.platform was replace with "linux" on Python 3.

It's easy to replace this import with:

try:
   import DLFCN as dl
except ImportError
   import os as dl
History
Date User Action Args
2016-09-09 21:42:26vstinnersetrecipients: + vstinner, gvanrossum, doko, ned.deily, python-dev, zach.ware, koobs
2016-09-09 21:42:26vstinnersetmessageid: <1473457346.05.0.594375683977.issue28027@psf.upfronthosting.co.za>
2016-09-09 21:42:26vstinnerlinkissue28027 messages
2016-09-09 21:42:26vstinnercreate