> Yes, that is definitely a design flaw in the ssl module that shouldWhile that might improve flexibility in how you use the ssl module, it
> 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?
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 :-)