Re: Py_single_input and the side-effects...

2010-06-17 Thread Mark Lawrence
On 17/06/2010 22:51, Stephen Hansen wrote: On 6/17/10 2:32 PM, Mark Lawrence wrote: Where is the use of _ in a script documented, I've searched all over and can't find it, guess I don't have the Midas touch with google? :) Its purely a convention, and one that crosses language-bounds, and isn'

Re: Py_single_input and the side-effects...

2010-06-17 Thread Stephen Hansen
On 6/17/10 2:32 PM, Mark Lawrence wrote: > Where is the use of _ in a script documented, I've searched all over and > can't find it, guess I don't have the Midas touch with google? :) Its purely a convention, and one that crosses language-bounds, and isn't entirely universal even given that. It j

Re: Py_single_input and the side-effects...

2010-06-17 Thread Mark Lawrence
On 05/06/2010 11:11, Gabriel Genellina wrote: On 31 mayo, 08:11, moerchendiser2k3 wrote: you are right, Python still holds the last reference. I just set a dummy and thats it :) Can you tell me where did you get the information from? Do you mean the _ variable? It's in the tutorial: http://

Re: Py_single_input and the side-effects...

2010-06-06 Thread moerchendiser2k3
thx, thats it! :) -- http://mail.python.org/mailman/listinfo/python-list

Re: Py_single_input and the side-effects...

2010-06-05 Thread Gabriel Genellina
On 31 mayo, 08:11, moerchendiser2k3 wrote: > you are right, Python still holds the last > reference. I just set a dummy and thats it :) > > Can you tell me where did you get the information from? Do you mean the _ variable? It's in the tutorial: http://docs.python.org/tutorial/introduction.html#

Re: Py_single_input and the side-effects...

2010-05-31 Thread moerchendiser2k3
Hi Carl, you are right, Python still holds the last reference. I just set a dummy and thats it :) Can you tell me where did you get the information from? Thanks! -- http://mail.python.org/mailman/listinfo/python-list

Re: Py_single_input and the side-effects...

2010-05-31 Thread moerchendiser2k3
Hi Carl, thanks for your help!! > The only foolproof way to ensure that an object has been finalized is > to do it manually (i.e., provide a finalize method to releases > resources). Yes, you are right, thats what I thought, too. So I wanted to manually delete the reference, but browsing the sou

Re: Py_single_input and the side-effects...

2010-05-30 Thread Carl Banks
On May 30, 3:17 am, moerchendiser2k3 wrote: > Hi, any idea? Python doesn't guarantee that objects will be deleted at a specific time. There are different reasons why an object might not be deleted. In command line mode Python keeps a reference to the most recent result. I don't know if it happ

Re: Py_single_input and the side-effects...

2010-05-30 Thread moerchendiser2k3
Hi, any idea? -- http://mail.python.org/mailman/listinfo/python-list

Py_single_input and the side-effects...

2010-05-29 Thread moerchendiser2k3
Hi at all, I have a small problem with Py_single_input, that I dont really know what it actually does. I created my own interactive interpreter loop and when I create objects like p = TestObject() this instance is just deleted on Py_Finalize() even I delete the entire console scope long time be