(Note: I have mail delivery disabled for this list and read it through
GMane. Please copy me on any responses, so that I can respond with
proper threading.)
From the things that I probably shouldn't spend my free time on
department ...
As background, I'm working on a project that is going to i
(Note: I have mail delivery disabled for this list and read it through
GMane, so I am unable to respond with correct threading if I'm not cc'ed
directly.)
On 1/18/25 8:52 AM, Ian Pilcher wrote:
(And even that wouldn't really be correct, if it worked, because it
doesn't express the fact that the
(Note: I have mail delivery disabled for this list and read it through
GMane, so I am unable to respond with correct threading if I'm not cc'ed
directly.)
On 1/17/25 7:26 PM, dn via Python-list wrote:
On 18/01/25 12:33, Ian Pilcher via Python-list wrote:
I am making my first atte
I am making my first attempt to use type hinting in a new project, and
I'm quickly hitting areas that I'm having trouble understanding. One of
them is how to write type hints for a method decorator.
Here is an example that illustrates my confusion. (Sorry for the
length.)
import collections.a
On 8/22/23 11:13, Greg Ewing via Python-list wrote:
Classes have a __module__ attribute:
>>> logging.Handler.__module__
'logging'
Not sure why I didn't think to look for such a thing. Looks like it's
as simple as f'{cls.__module__}.{cls.__qualname__}'.
Thanks!
--
==
How can I programmatically get the fully qualified name of a class from
its class object? (I'm referring to the name that is shown when str()
or repr() is called on the class object.)
Neither the __name__ or __qualname__ class attributes include the
module. For example:
>>> import logging