Message278385
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). |
|
Date |
User |
Action |
Args |
2016-10-09 19:08:51 | levkivskyi | set | recipients:
+ levkivskyi, gvanrossum, rhettinger, ncoghlan, larry, ned.deily, Arfrever, python-dev, yan12125 |
2016-10-09 19:08:51 | levkivskyi | set | messageid: <1476040131.41.0.340468993114.issue28339@psf.upfronthosting.co.za> |
2016-10-09 19:08:51 | levkivskyi | link | issue28339 messages |
2016-10-09 19:08:51 | levkivskyi | create | |
|