[issue38922] code.replace() does not raise audit event

2019-11-26 Thread miss-islington
miss-islington added the comment: New changeset 191f94cca6f8cf59535e7459c1113e4a1cdfe201 by Miss Islington (bot) in branch '3.8': bpo-38922: Raise code.__new__ audit event when code object replace() is called (GH-17394)

[issue38922] code.replace() does not raise audit event

2019-11-26 Thread Steve Dower
Change by Steve Dower : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue38922] code.replace() does not raise audit event

2019-11-26 Thread Steve Dower
Steve Dower added the comment: New changeset c7c01ab1e5415b772c68e15f1aba51e520010830 by Steve Dower in branch 'master': bpo-38922: Raise code.__new__ audit event when code object replace() is called (GH-17394)

[issue38922] code.replace() does not raise audit event

2019-11-26 Thread miss-islington
Change by miss-islington : -- pull_requests: +16877 pull_request: https://github.com/python/cpython/pull/17396 ___ Python tracker ___

[issue38922] code.replace() does not raise audit event

2019-11-26 Thread Steve Dower
Change by Steve Dower : -- keywords: +patch pull_requests: +16876 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17394 ___ Python tracker ___

[issue38922] code.replace() does not raise audit event

2019-11-26 Thread Steve Dower
New submission from Steve Dower : Because code.replace() manually creates a new code object (that is, with arbitrary co_code rather than via the compiler), it should raise code.__new__ with its arguments. -- assignee: steve.dower messages: 357529 nosy: steve.dower priority: normal