Author vstinner
Recipients alexey-smirnov, amaury.forgeotdarc, neologix, sbt, vstinner
Date 2013-01-03.15:30:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1357227004.81.0.80107872477.issue16850@psf.upfronthosting.co.za>
In-reply-to
Content
> The problem is the find a portable and safe way to expose the feature

A solution is to add a "e" mode to open() which would raise a NotImplementedError if the platform is not known to support this feature. For example, if the OS is linux, we would check if the kernel version is at least 2.6.23, otherwise an exception would be raised.

The check (on the OS/version) would be done at the first call the function (if the "e" mode if used).

We already have such behaviour on other functions.
History
Date User Action Args
2013-01-03 15:30:04vstinnersetrecipients: + vstinner, amaury.forgeotdarc, neologix, sbt, alexey-smirnov
2013-01-03 15:30:04vstinnersetmessageid: <1357227004.81.0.80107872477.issue16850@psf.upfronthosting.co.za>
2013-01-03 15:30:04vstinnerlinkissue16850 messages
2013-01-03 15:30:04vstinnercreate