Message58506
> The minimal code reporting the -33/+33 leaks that I found is simply this:
>
> os.popen('ls').read()
>
> Is there a problem in "os.popen(...)", or do I something wrong here?
Try this instead:
p = os.popen('ls')
try:
x = p.read()
finally:
p.close()
IOW close the pipe explicitly. That should make the code execute in a
more reproducible fashion. I've fixed this in ctypes/util.py now:
r59477. |
|
| Date |
User |
Action |
Args |
| 2007-12-12 20:26:15 | gvanrossum | set | spambayes_score: 0.00238067 -> 0.00238067 recipients:
+ gvanrossum, theller |
| 2007-12-12 20:26:14 | gvanrossum | link | issue1597 messages |
| 2007-12-12 20:26:14 | gvanrossum | create | |
|