Well I know python uses ref counting, so I was hoping the support for chain methods would be near identical to C++'s since python would not have any reference to hold onto for Test(). It works great when inside a function, but not so well in the global namespace. :(
On Sun, Apr 17, 2011 at 8:06 PM, Stefan Seefeld <ste...@seefeld.name> wrote: > On 2011-04-17 20:56, Charles Solar wrote: > >> >> Is there something I should be aware of here? >> > > Just that Python uses garbage collection and you mustn't rely on your > objects being destroyed at a particular point in the program flow. :-) > > > Some sort of difference between the global instances and ones defined in >> a function? Can I do anything so global instances are cleaned up >> immediately like they are inside functions? >> > > No idea, sorry. > > Stefan > > > -- > > ...ich hab' noch einen Koffer in Berlin... > > _______________________________________________ > Cplusplus-sig mailing list > Cplusplus-sig@python.org > http://mail.python.org/mailman/listinfo/cplusplus-sig >
_______________________________________________ Cplusplus-sig mailing list Cplusplus-sig@python.org http://mail.python.org/mailman/listinfo/cplusplus-sig