[issue28202] Python 3.5.1 C API, the global variable is not destroyed when delete the module

2016-09-19 Thread Jack Liu
Jack Liu added the comment: I wrote the test code as below. I also attached the files in attachment. Python = class Simple: def __init__( self ): print('Simple__init__') def __del__( self ): print(

[issue28202] Python 3.5.1 C API, the global variable is not destroyed when delete the module

2016-09-19 Thread Jack Liu
Jack Liu added the comment: I know there is a workaround to set the global variables to None at last in Python scripts. But my app just provide a framework for my customers to run python scripts. That means the workaround requires my customers to update their python scripts. That may make

[issue28202] Python 3.5.1 C API, the global variable is not destroyed when delete the module

2016-09-20 Thread Jack Liu
Jack Liu added the comment: The problem is resolved if call PyGC_Collect() after PyDict_DelItemString(). Is it expected to call PyGC_Collect() here? -- ___ Python tracker <http://bugs.python.org/issue28

[issue28202] Python 3.5.1 C API, the global variable is not destroyed when delete the module

2016-09-20 Thread Jack Liu
Jack Liu added the comment: Looks to me, there is NO reference cycle on the Simple object in the python test code. Why needs to call PyGC_Collect() here? -- ___ Python tracker <http://bugs.python.org/issue28

[issue28202] Python 3.5.1 C API, the global variable is not destroyed when delete the module

2016-09-20 Thread Jack Liu
Jack Liu added the comment: @serhiy.storchaka, The reference counts before PyDict_DelItemString are same on Python 3.3, 3.5 and 3.6. Py_REFCNT(py_module)1 Py_REFCNT(py_dict)4 -- ___ Python tracker <http://bugs.python.org/issue28

[issue28202] Python 3.5.1 C API, the global variable is not destroyed when delete the module

2016-09-22 Thread Jack Liu
Changes by Jack Liu : -- nosy: +pitrou ___ Python tracker <http://bugs.python.org/issue28202> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue20766] reference leaks in pdb

2016-09-28 Thread Jack Liu
Jack Liu added the comment: Will the issue be fixed in Python formal build? I still meet the same issue with Python 3.5.1. It cost me a bit time to track down this issue. I'm using pdb to debug a Python script, there are global variables in the script. Duo the leak of sigint_handler, ca

[issue20766] reference leaks in pdb

2016-09-28 Thread Jack Liu
Jack Liu added the comment: Now, I have to set nosigint to True to fix the reference leaks issue for my app. -- ___ Python tracker <http://bugs.python.org/issue20

[issue28520] Failed to install Python 3.3.5 on OSX 10.11.6

2016-10-24 Thread Jack Liu
New submission from Jack Liu: For some reason. I need to install Python 3.3.5 (64-bit) on OSX 10.11.6. I got installer from http://www.python.org/ftp/python/3.3.5/python-3.3.5-macosx10.6.dmg, failed to install Python 3.3.5 on OSX 10.11.6. See error in attached screenshot. I know it's ab

[issue20766] reference leaks in pdb

2016-10-24 Thread Jack Liu
Jack Liu added the comment: Good to know the fix will be included Python official builds. Thanks. -- ___ Python tracker <http://bugs.python.org/issue20

<    1   2   3   4   5