MagicStack / asyncpg

A fast PostgreSQL Database Client Library for Python/asyncio.
Apache License 2.0
6.88k stars 399 forks source link

Use the exact type name in Record.__repr__ #959

Closed jparise closed 1 year ago

jparise commented 1 year ago

We support Record subclasses, so include the exact type name (rather than just 'Record') in the repr() string.

jparise commented 1 year ago

Perhaps _PyType_Name wasn't available in Python 3.6?

jparise commented 1 year ago

Perhaps _PyType_Name wasn't available in Python 3.6?

I provided an implementation of _PyType_Name for Python 3.6. This won't be necessary once support for Python 3.6 is dropped (#940).

elprans commented 1 year ago

I think it's time to pull the plug on 3.6 and merge #940.