Author fabioz
Recipients Mark.Shannon, brett.cannon, dino.viehland, eric.snow, fabioz, vstinner
Date 2019-11-19.12:03:40
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1574165021.04.0.300997732752.issue38500@roundup.psfhosted.org>
In-reply-to
Content
@Mark @Brett

Well, PEP 523 still works (it's just more inconvenient to use now).

Still, if PEP 523 will still be supported I think that having the setter/getter makes sense.

If it is to be deprecated as @Mark is suggesting it doesn't really make sense to add it (but then, it should really be deprecated and ideally there'd be some replacement for the current debugger use... not sure about other use cases such as a jit, which was the initial target of PEP 523 -- @Mark, do you want to go that route/create a PEP to deprecate it so that this discussion takes place in a proper place?).

p.s.: as a note, bytecode modification on the actual object is not a usable approach for the debugger because users could break that in real-world use cases (i.e.: what happens if the user creates a **new** code and sets it to the code which had the breakpoint? What about breakpoint changes? Right now the debugger evaluates all assumptions just before the frame is executed, so, it's easier to get things right -- the case you posted currently does what's expected on pydevd). Still, a callback before the execution so that it could change the frame code before it's executed without the remainder of PEP 523 would be enough (and maybe it could be adopted in other Python implementations too) -- actually, for the debugger it'd be awesome if the frame code could be changed from inside a trace call and then that stack would restart execution (close to what happens with setting the frame line to be executed), but I guess this would be a completely different request ;)

p.s.: please don't reply to my previous p.s. here (let's move the discussion to another place -- either by @Mark creating a PEP for discussion or acknowledging the issue is ok given the current status quo).
History
Date User Action Args
2019-11-19 12:03:41fabiozsetrecipients: + fabioz, brett.cannon, vstinner, dino.viehland, Mark.Shannon, eric.snow
2019-11-19 12:03:41fabiozsetmessageid: <1574165021.04.0.300997732752.issue38500@roundup.psfhosted.org>
2019-11-19 12:03:41fabiozlinkissue38500 messages
2019-11-19 12:03:40fabiozcreate