Python 2.0
Amit Patel
amitp at Xenon.Stanford.EDU
Tue Jun 1 15:52:59 EDT 1999
Yukihiro Matsumoto <matz at netlab.co.jp> wrote:
| Hi.
|
| "Vadim Chugunov" <chega_ at yahoo.com> writes:
|
| |> Remember the original statement is like this:
| |>
| |> >As many people have noted before, you would not be able to use
| |> >destructors to free up resources like memory or file descriptors.
| |>
| |>which, as I understand, means destructors can not be used with real
| |>GC. That's just not true.
| |
| |I'm sorry for being unclear, but the key words here were: "to free up
| |resources".
| |And I meant "to free up resources the moment I expect them to", not "some time
| |later".
|
| Well, OK. I understand now. Now only thing I can say is, why do you
| emphasize so much on reclaiming object at the time you exepcted?
| Because of your C++ background?
In my case it's because in Python and C++ I tend to deal with
resources a LOT. Sockets especially, but also files. When I write
Scheme and ML code, I rarely ever deal with resources other than
memory, so it doesn't bother me.
It's not the language but how I tend to use it that colors my opinion
on destructors.
- Amit
More information about the Python-list
mailing list