inducer / pyopencl

OpenCL integration for Python, plus shiny features
http://mathema.tician.de/software/pyopencl
Other
1.05k stars 240 forks source link

Better support subclasses in __repr__ #551

Closed alexfikl closed 2 years ago

alexfikl commented 2 years ago

This was motivated by giving a clearer repr to TaggableCLArray in https://github.com/inducer/arraycontext.

A bit shifty because it says cl.TaggableCLArray, which might confuse people to think it's located in pyopencl. What do you think?

inducer commented 2 years ago

I think it's an improvement. I like it better than the full {tp.__module__}.{tp.__name__}. Let's try it and see if anybody hates it.

Thanks for making this!