Author serhiy.storchaka
Recipients Arfrever, barry, christian.heimes, eric.snow, larry, pitrou, python-dev, r.david.murray, rhettinger, serhiy.storchaka, vstinner
Date 2014-02-26.19:49:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1393444172.25.0.464110646896.issue20784@psf.upfronthosting.co.za>
In-reply-to
Content
May be add temporary replacement for collections.abc?

class _AbcModulePlaceholder(type(_collections_abc)):
    def __warn(self):
        import warnings
        warnings.warn('collections.abc used without importing',
                      DeprecationWarning, 3)
    def __getattr__(self, name):
        self.__warn()
        return getattr(_collections_abc, name)
    def __setattr__(self, name, value):
        self.__warn()
        setattr(_collections_abc, name, value)
    def __delattr__(self, name):
        self.__warn()
        delattr(_collections_abc, name)
    def __dir__(self):
        self.__warn()
        return dir(_collections_abc)

abc = _AbcModulePlaceholder('abc')
History
Date User Action Args
2014-02-26 19:49:32serhiy.storchakasetrecipients: + serhiy.storchaka, barry, rhettinger, pitrou, vstinner, larry, christian.heimes, Arfrever, r.david.murray, python-dev, eric.snow
2014-02-26 19:49:32serhiy.storchakasetmessageid: <1393444172.25.0.464110646896.issue20784@psf.upfronthosting.co.za>
2014-02-26 19:49:32serhiy.storchakalinkissue20784 messages
2014-02-26 19:49:31serhiy.storchakacreate