Le vendredi 23 décembre 2005 à 16:23 +0100, Gregor Horvath a écrit :
> Hi,
>
> Is there a possibility to format a log message to give the function name
> where the log appears?
>
> Example
>
> import logging
>
> def aTestFunction():
>logger.debug("This is a message")
>
> The log should re
inline wrote:
> Hello!
> I want to assign self to object of parent class in constructor, like
>
> def my_func():
> ...
> return ParentClass()
>
> class MyClass (ParentClass):
> def __init__(self):
> self = my_func()
>
> but it not work, because "object not initialized". What