[Distutils] PEX at Twitter (re: PEX - Twitter's multi-platform executable archive format for Python)

Vinay Sajip vinay_sajip at yahoo.co.uk
Sat Feb 1 20:00:16 CET 2014


On Sat, 1/2/14, Brett Cannon <brett at python.org> wrote:

> Yes, that is definitely a design flaw in the ssl module that should
> get remedied. Did you file a bug to add a new API (whether new
> function or new parameters) to accept a file-like object or string
> instead?
 
While that might improve flexibility in how you use the ssl module, it
sadly won't solve the problem in general. Some third party APIs
will expect file paths, whereas others will require passing OS-level
handles, rather than file-like objects - thus effectively requiring a
file which you can open with os.open().

There are other Python APIs which need a pathname - I know
imp.load_dynamic() will be familiar to you :-)

Regards,

Vinay Sajip


More information about the Distutils-SIG mailing list