mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-03 18:44:55 +00:00
We have a use case for saving the EDT object to be able to open it up again later. It would be convenient to be able to do this with the pickle module from stdlib. The only thing stopping us from doing that appears to be the open reference to sys.stderr that's held the edt object even after EDT.__init__ exits. However, there doesn't seem to be a need to keep holding on to this object, and in fact it would be a little bit nicer to drop the reference in case something else (even in the same Python process that created it originally) wants the EDT object around, but might want the warn file closed if its refcount zeroes out. Just drop the reference at the end of __init__ and make EDT._warn() throw an exception if it's attempted to be used after the constructor exits. Make pickle-ability an API guarantee so we can treat any regressions as bugs going forward. Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no> |
||
---|---|---|
.. | ||
checkpatch | ||
ci | ||
coccinelle | ||
dts | ||
footprint | ||
gitlint | ||
kconfig | ||
net | ||
release | ||
sanity_chk | ||
support | ||
tests/sanitycheck | ||
tracing | ||
west_commands | ||
.gitignore | ||
checkpatch.pl | ||
checkstack.pl | ||
coccicheck | ||
dir_is_writeable.py | ||
file2hex.py | ||
filter-known-issues.py | ||
gen_app_partitions.py | ||
gen_cfb_font_header.py | ||
gen_gcov_files.py | ||
gen_kobject_list.py | ||
gen_offset_header.py | ||
gen_relocate_app.py | ||
gen_syscalls.py | ||
mergehex.py | ||
parse_syscalls.py | ||
process_gperf.py | ||
requirements-base.txt | ||
requirements-build-test.txt | ||
requirements-doc.txt | ||
requirements-extras.txt | ||
requirements-run-test.txt | ||
requirements.txt | ||
sanitycheck | ||
series-push-hook.sh | ||
spelling.txt | ||
subfolder_list.py | ||
tags.sh | ||
user_wordsize.py | ||
valgrind.supp | ||
west-commands.yml | ||
zephyr_module.py |