Skip to content
This repository was archived by the owner on Apr 24, 2025. It is now read-only.
This repository was archived by the owner on Apr 24, 2025. It is now read-only.

如何添加回调函数? #1

@arnozeng

Description

@arnozeng

为了指定文件在回调函数里面处理加解密操作,在_io_FileIO___init___imp函数里增加了回调函数 ,
image
ModuleCallBack 的定义如下
image
但是回调函数ModuleCallBack的值是空的, 没有被赋值。 实际程序main里面已经赋值了。
image
image

setModuleCallBack是主程序定义的函数体

请问这个cpython如更改,增加一个回调函数,给在主程序里面处理加解密操作?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions