Message285520
In principle, such a function could be added if it is not called ``isinstance``. For example, we could add a helper ``is_union(tp)`` (or maybe also ``is_generic(tp)`` etc). Such function(s) will be simple one-liners wrapping private API in a right way (e.g. using _gorg instead of __origin__ where needed etc).
Guido, what do you think? |
|
Date |
User |
Action |
Args |
2017-01-15 22:07:26 | levkivskyi | set | recipients:
+ levkivskyi, gvanrossum, flying sheep, evan_ |
2017-01-15 22:07:26 | levkivskyi | set | messageid: <1484518046.1.0.299878740158.issue29262@psf.upfronthosting.co.za> |
2017-01-15 22:07:26 | levkivskyi | link | issue29262 messages |
2017-01-15 22:07:25 | levkivskyi | create | |
|