Re: [Pyobjc-dev] Incompatible change in CVS
Brought to you by:
ronaldoussoren
From: Ronald O. <ous...@ci...> - 2003-03-29 22:20:39
|
On Saturday, Mar 29, 2003, at 22:56 Europe/Amsterdam, Just van Rossum wrote: >> It is also no longer necessary to call the release method on objects >> allocated using the 'alloc' classmethod, due to a fix for bug 711700. > > But does this also mean that code that _does_ release objects that were > allocated using alloc will now crash? Yes. I've intentionaly not mentioned that you should have called release upto now, because doing this manually is bad IMNSHO. Python programmers won't expect that they have to do manual memory management and there is no technical reason for not doing it automaticly. Note that you can always increate the retainCount before calling autorelease if you do want to create an autoreleased object (appearantly this can be usefull in non-GUI situations such as webobjects). Ronald |