Re: Dynamically modifying "__setattr__"

2023-09-29 Thread Greg Ewing via Python-list
On 28/09/23 10:44 pm, Stefan Ram wrote: class A: def __init__( self ): self.__setattr__ = self.setattr def setattr( self, key, value ): print( 'setattr called.' ) Any idea how to achieve something like this? class A: def __init__(self): self.x = 17

Re: error of opening Python

2023-09-29 Thread anthony.flury via Python-list
This isn't an error. This is just a normal Python Header message announcing that you are using Python 3.11.3 The rest is just information from the build system : The build Id, the date/time the build was made, and the version of the compiler. There is nothing to fix. -- Original Me