Fix selective_dyn
handling issue in python>=3.12
#4097
Merged
Loading