Author levkivskyi
Recipients Arfrever, gvanrossum, larry, levkivskyi, ncoghlan, ned.deily, python-dev, rhettinger, yan12125
Date 2016-10-09.19:08:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1476040131.41.0.340468993114.issue28339@psf.upfronthosting.co.za>
In-reply-to
Content
I tried and all tests pass on 3.7a also with prior import of typing.

A larger fix is not _necessary_, but I would _prefer_ to go with the option 4 that I proposed above, i.e.:

Instead of special casing abc and functools in __subclasshook__ in typing via sys._getframe, I would rather add small changes to abc and functools (they should use __origin__ in subclass checks).

In general, I think we should document __origin__, it could be useful at runtime (especially that we prohibit certain things like class checks for parameterized generics).
History
Date User Action Args
2016-10-09 19:08:51levkivskyisetrecipients: + levkivskyi, gvanrossum, rhettinger, ncoghlan, larry, ned.deily, Arfrever, python-dev, yan12125
2016-10-09 19:08:51levkivskyisetmessageid: <1476040131.41.0.340468993114.issue28339@psf.upfronthosting.co.za>
2016-10-09 19:08:51levkivskyilinkissue28339 messages
2016-10-09 19:08:51levkivskyicreate