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 xiang.zhang
Recipients ellingtonjp, rhettinger, xiang.zhang
Date 2016-05-24.03:55:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1464062137.99.0.158563247257.issue27100@psf.upfronthosting.co.za>
In-reply-to
Content
This seems to be designed. From PEP343 it tells clearly:

    If either of the relevant methods are not found
    as expected, the interpreter will raise AttributeError, in the
    order that they are tried (__exit__, __enter__).

But currently I don't find out why.
History
Date User Action Args
2016-05-24 03:55:38xiang.zhangsetrecipients: + xiang.zhang, rhettinger, ellingtonjp
2016-05-24 03:55:37xiang.zhangsetmessageid: <1464062137.99.0.158563247257.issue27100@psf.upfronthosting.co.za>
2016-05-24 03:55:37xiang.zhanglinkissue27100 messages
2016-05-24 03:55:37xiang.zhangcreate