eleven xiang <eleven.xi...@gmail.com> added the comment:
Below is the log: // parent process call and increase it from 10 to 11. process 71481, this = 0x7f4f271b5054, m_val = 10, A constructor called!!! process 71481, this = 0x7f4f271b5054, m_val = 11, INC called!!! // child process inherit with 11, and then also increase from 11 to 12 process 71482, this = 0x7f4f271b5054, m_val = 12, INC called!!! // child process free it. process 71482, this = 0x7f4f271b5054, m_val = 12, A destructor called!!! // parent process free it. process 71481, this = 0x7f4f271b5054, m_val = 11, A destructor called!!! ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue45308> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com