the problem isn't determining who owns it, the problem is determining
who's supposed to release it. that's not a very common problem in a
that's about what i meant.
i think, in c++, the ownership problem means the problem to determine who
and when is to delete an object, or to keep track
Alex Martelli wrote:
Python 2.5 should introduce a 'with' statement that may go partways
towards meeting your qualms; it's an approved PEP, though I do not
recall its number offhand.
http://www.python.org/peps/pep-0343.html
(this is one in a series of PEP:s based on the observation that the
Fredrik Lundh wrote:
Jeffrey Schwab wrote:
the problem isn't determining who owns it, the problem is determining
who's supposed to release it. that's not a very common problem in a
garbage-collected language...
Yes it is. Memory is only one type of resource.
Python's garbage collector
Jeffrey Schwab wrote:
the problem isn't determining who owns it, the problem is determining
who's supposed to release it. that's not a very common problem in a
garbage-collected language...
Yes it is. Memory is only one type of resource.
Python's garbage collector deals with objects,
Fredrik Lundh wrote:
Jeffrey Schwab wrote:
the problem isn't determining who owns it, the problem is determining
who's supposed to release it. that's not a very common problem in a
garbage-collected language...
Yes it is. Memory is only one type of resource.
Python's garbage collector
In article [EMAIL PROTECTED],
Jeffrey Schwab [EMAIL PROTECTED] wrote:
...
Yes it is. Memory is only one type of resource. There are still files
and sockets to close, pipes to flush, log messages to be printed, GDI
contexts to free, locks to release, etc. In C++, these things are
Donn Cave wrote:
In article [EMAIL PROTECTED],
Jeffrey Schwab [EMAIL PROTECTED] wrote:
Yes it is. Memory is only one type of resource. There are still files
and sockets to close, pipes to flush, log messages to be printed, GDI
contexts to free, locks to release, etc. In C++, these
Jeffrey Schwab [EMAIL PROTECTED] wrote:
...
You may be gratified to learn that Python's main storage model
is reference counted objects, and when an object falls out of
all referenced scopes its finalizers run immediately.
Thanks, that's good to know! For some reason I had it in my
Is it correct to say that the typical ownership problem, which frequently
arises in C++, does not occur normally in Python?
Best regards,
Gabriel.
--
/---\
| Any intelligent fool can make things bigger, more complex
Gabriel Zachmann a écrit :
Is it correct to say that the typical ownership problem, which
frequently arises in C++, does not occur normally in Python?
What is this typical ownership problem ?
--
http://mail.python.org/mailman/listinfo/python-list
Gabriel Zachmann [EMAIL PROTECTED] wrote:
Is it correct to say that the typical ownership problem, which
frequently arises in C++, does not occur normally in Python?
Could you explain what you mean by the typical ownership problem?
--
\ Jealousy: The theory that some other fellow has
Gabriel Zachmann wrote:
Is it correct to say that the typical ownership problem, which
frequently arises in C++, does not occur normally in Python?
What typical ownership problem do you feel frequently arises in C++?
If you are referring to the sometimes difficult task of determining
which
Jeffrey Schwab wrote:
Is it correct to say that the typical ownership problem, which
frequently arises in C++, does not occur normally in Python?
What typical ownership problem do you feel frequently arises in C++?
If you are referring to the sometimes difficult task of determining
which
Fredrik Lundh wrote:
Jeffrey Schwab wrote:
Is it correct to say that the typical ownership problem, which
frequently arises in C++, does not occur normally in Python?
What typical ownership problem do you feel frequently arises in C++?
If you are referring to the sometimes difficult task
Yes!
Python uses auto garbage collection. As soon as the object reference
count becomes 0 it is removed from existence. So the problem typical
for C/C++: accessing pointers
to already deleted objects does not exist in Python.
--
http://mail.python.org/mailman/listinfo/python-list
Jeffrey Schwab wrote:
the problem isn't determining who owns it, the problem is determining
who's supposed to release it. that's not a very common problem in a
garbage-collected language...
Yes it is. Memory is only one type of resource.
Python's garbage collector deals with objects,
16 matches
Mail list logo