[issue32759] multiprocessing.Array do not release shared memory

2018-02-03 Thread OO O

OO O <dogod...@gmail.com> added the comment:

mp.heap.BufferWrapper._heap = mp.heap.Heap ()
gc.collect ()

This is working!! The memory is cleared.
Just delete the globe _heap and recreate a new one, but is the the correct 
way???

--

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32759>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32759] multiprocessing.Array do not release shared memory

2018-02-03 Thread OO O

Change by OO O <dogod...@gmail.com>:


--
versions: +Python 3.5

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32759>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32759] multiprocessing.Array do not release shared memory

2018-02-03 Thread OO O

New submission from OO O <dogod...@gmail.com>:

OS: Win10 / 8.1
Python: 3.5 / 3.6

My program use mp.Array to share huge data.
But suffer from out of memory after running for a while. 

But Windows task manager didn't show which process use that huge memory. And I 
use pympler to check my python memory usage. Still shows noting. So, I use 
RamMap to check, it shows a huge shared memory is used.

I can reproduce the case by the simple test code:
   #---
   import numpy as np
   import multiprocessing as mp
   import gc

   def F ():
   a = mp.Array ( 'I', 18, lock = False )

   #
   F ()
   gc.collect ()
   #---

No matter how hard I tried. the memory is not released.
I put what I tried in the attachment picture.

--
components: Windows
files: result.jpg
messages: 311571
nosy: OO O, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: multiprocessing.Array do not release shared memory
type: resource usage
versions: Python 3.6
Added file: https://bugs.python.org/file47424/result.jpg

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32759>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29162] pyshell.py: name 'sys' is not defined

2017-01-04 Thread OO O

OO O added the comment:

to msg284696 - (view):

OK~ 
Sorry I found i forget to install tkinter before I run make.
so the "from tkinter import *" failed. ( sys not import ).

--
status: open -> closed

___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue29162>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29164] make test always fail at 218/405 ( AssertionError: ', ' not found in '1234.5' )

2017-01-04 Thread OO O

New submission from OO O:

make test always fail at 218/405
at test_format.py line 426

message:

[218/405/1] test test_format failed -- Traceback (most recent call last):
  File "/home/vm00/Downloads/Python-3.6.0/Lib/test/test_format.py", line 426, 
in test_locale
self.assertIn(sep, text)
AssertionError: ',' not found in '1234.5'

--
components: Installation
messages: 284692
nosy: OO O
priority: normal
severity: normal
status: open
title: make test always fail at 218/405 ( AssertionError: ',' not found in 
'1234.5' )
versions: Python 3.6

___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue29164>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29162] pyshell.py: name 'sys' is not defined

2017-01-04 Thread OO O

New submission from OO O:

Sorry for my bad English.

line 7, 13 at pyshell.py.
Call sys befor import sys.
Cause name 'sys' is not defined

--
assignee: terry.reedy
components: IDLE
messages: 284684
nosy: OO O, terry.reedy
priority: normal
severity: normal
status: open
title: pyshell.py: name 'sys' is not defined
type: crash
versions: Python 3.6

___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue29162>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com