Movatterモバイル変換


[0]ホーム

URL:


memory leak in PyTree

Eugene LeitlEugene.Leitl at lrz.uni-muenchen.de
Thu Apr 19 09:07:09 EDT 2001


I've bought the wonderful Programming Python (2nd ed.) ORA book by MarkLutz (thanks Mark!) yesterday and right now I'm playing with the generictree object PyTree (pp.  1020-1032). I'm using Python 2.1b2 under Linux2.2.When I hit the button generating a 20 node random tree for a few 100times, I notice a monotonous decrease in available memory (as reported bytop). When I terminate the program after it ate about 50 MBytes of memory,it takes a long while to shut down, I can watch the widgets vanishing fromthe canvass taking half a minute, or so.Is this a "feature" of TkInter, or of the tree code? (I want to usesimiliar code serverside using Medusa/Bobo, so it better not be leaky).And, btw, does anybody have code that lets me create trees other thanbinary?TIA,-- Eugene


More information about the Python-listmailing list

[8]ページ先頭

©2009-2025 Movatter.jp