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 rosslagerwall
Recipients Arfrever, amaury.forgeotdarc, eric.araujo, nadeem.vawda, ned.deily, neologix, pitrou, rosslagerwall, terry.reedy, vstinner
Date 2011-10-29.18:33:50
SpamBayes Score 0.000189821
Marked as misclassified No
Message-id <>
Before I implement it properly, is this the kind of api that's desired?

import os
import io

class MyOpener:
    def __init__(self, dirname):
        self.dirfd =, os.O_RDONLY)

    def open(self, path, flags, mode):
        return os.openat(self.dirfd, path, flags, mode)

myop = MyOpener("/tmp")
f = open("testfile", "w",
Date User Action Args
2011-10-29 18:33:51rosslagerwallsetrecipients: + rosslagerwall, terry.reedy, amaury.forgeotdarc, pitrou, vstinner, nadeem.vawda, ned.deily, eric.araujo, Arfrever, neologix
2011-10-29 18:33:51rosslagerwallsetmessageid: <>
2011-10-29 18:33:51rosslagerwalllinkissue12797 messages
2011-10-29 18:33:50rosslagerwallcreate