[Python-Dev] 2.4a2, and @decorators

Skip Montanaro skip at pobox.com
Mon Aug 2 21:58:01 CEST 2004


    >> Can it?  I must've missed that.  It sure sounds like an incredible
    >> hack -- how to you prevent the default behavior that the list of
    >> decorators is thrown away by the interpreter?

    Phillip> By using sys.settrace (and a careful tracer implementation to
    Phillip> avoid interfering with debuggers or other active tracers):

I suspect Guido might class that as an "incredible hack". ;-)

Skip


More information about the Python-Dev mailing list

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant