Hi, Anto Thanks for your reply.
2011/8/1 Antonio Cuni <anto.c...@gmail.com>: > On 01/08/11 07:25, Kenji Yano wrote: >> >> Hi >> >> I found the cause of html_fibo.py at the EuroPython Hands-on. >> This case, HtmlTag destructor isn’t call when the object didn’t use. >> Is this garbage collection’s problem? >> (pypy-trunk(1.6.0-dev) same too.) > > yes. The difference with CPython is that CPython destroys the object as > soon as it forgets the last reference to the object (and thus it is > deterministic), while on PyPy the objects are destroyed only the the GC runs > (which is not deterministic). OK, I understand. > >> runing code and patch are the following link.(not pypy source code patch.) >> https://gist.github.com/1117550 > > your patch works but it's suboptimal and slower than it need. The proper > solution would be to add the appropriate calls to .close() to the file and > to the generator (possibily using the with statement) and also to provide a > method to HtmlTag to explicitly close the tag instead of relying on the > __del__. yes, I know. I wanted to say gc doesn't work. That's the only reason. >> and is this problem in bugs.pypy.org? I can’nt found it. > > it works for me: > https://bugs.pypy.org/ > > you need to explicitly allow our custom SSL certificate, but that's all. > ciao, > Anto > I created new issue, because pypy have compatibility problem. but, I learned that pypy has different garbage collection strategies. so I remove that issue. Cheers Kenji _______________________________________________ pypy-dev mailing list pypy-dev@python.org http://mail.python.org/mailman/listinfo/pypy-dev