Re: del behavior

2009-01-07 Thread Eric Snow
On Jan 7, 12:55 pm, Eric Snow wrote: > On Jan 7, 12:48 pm, "Chris Rebert" wrote: > > > > > On Wed, Jan 7, 2009 at 11:39 AM, Eric Snow wrote: > > > I was reading in the documentation about __del__ and have a couple of > > > questions.  Here is what I

Re: del behavior 2

2009-01-07 Thread Eric Snow
On Jan 7, 12:57 pm, "Chris Rebert" wrote: > On Wed, Jan 7, 2009 at 11:42 AM, Eric Snow wrote: > > I was reading in the documentation about __del__ and have a couple of > > questions.  Here is what I was looking at: > > >http://docs.python.org/reference/data

Re: del behavior 2

2009-01-07 Thread Eric Snow
On Jan 7, 1:03 pm, Eric Snow wrote: > On Jan 7, 12:57 pm, "Chris Rebert" wrote: > > > > > On Wed, Jan 7, 2009 at 11:42 AM, Eric Snow wrote: > > > I was reading in the documentation about __del__ and have a couple of > > > questions.  Here is what I

os.fork and pty.fork

2009-01-07 Thread Eric Snow
I am trying to wrap my head around an issue here that has to do with running python without a tty. I use pexpect to connect to ssh and run some commands. However, if my script runs from a process which I forked using os.fork my pexpect spawn object can't open a good file descriptor in which to ru

Re: del behavior 2

2009-01-08 Thread Eric Snow
On Jan 7, 3:23 pm, "Martin v. Löwis" wrote: > > Thanks for the responses.  What I mean is when a python process is > > interrupted and does not get a chance to clean everything up then what > > is a good way to do so?  For instance, I have a script that uses child > > ptys to facilitate ssh connec

Re: del behavior 2

2009-01-08 Thread Eric Snow
On Jan 7, 12:42 pm, Eric Snow wrote: > I was reading in the documentation about __del__ and have a couple of > questions.  Here is what I was looking at: > > http://docs.python.org/reference/datamodel.html#object.__del__ > > My second question is about the following: > &g

type enforcement in _ssl.sslwrap

2010-08-10 Thread Eric Snow
ssl.SSLSocket.__init__ makes a call to _ssl.sslwrap (in the C module). That in turn makes a call to PyArg_ParseTuple, which casts the first arg of _ssl.sslwrap into a PySocketModule.Sock_Type object. My problem is that I am trying to pass in an object that implements the Socket interface, but doe

Re: type enforcement in _ssl.sslwrap

2010-08-11 Thread Eric Snow
On Aug 11, 5:34 am, Steven D'Aprano wrote: > On Tue, 10 Aug 2010 10:40:54 -0700, Eric Snow wrote: > > ssl.SSLSocket.__init__ makes a call to _ssl.sslwrap (in the C module). > > That in turn makes a call to PyArg_ParseTuple, which casts the first arg > &

doctests and decorators

2009-06-16 Thread Eric Snow
Apparently there is a known issue with doctests, in which tests in functions using externally defined decorators are ignored. The recommended fix is to update the order of checks in the _from_module method of DocTestFinder in the doctest module. The bug and fix are discussed at the following URLs

Re: doctests and decorators

2009-06-16 Thread Eric Snow
On Jun 16, 9:59 am, Eric Snow wrote: > Apparently there is a known issue with doctests, in which tests in > functions using externally defined decorators are ignored.  The > recommended fix is to update the order of checks in the _from_module > method of DocTestFinder in the doctest

Re: doctests and decorators

2009-06-16 Thread Eric Snow
On Jun 16, 10:31 am, Christian Heimes wrote: > Eric Snow schrieb: > > > > > Apparently there is a known issue with doctests, in which tests in > > functions using externally defined decorators are ignored.  The > > recommended fix is to update the order of checks in

Re: doctests and decorators

2009-06-16 Thread Eric Snow
On Jun 16, 11:24 am, Michele Simionato wrote: > On Jun 16, 6:39 pm, Eric Snow wrote: > > > > > On Jun 16, 10:31 am, Christian Heimes wrote: > > > > Eric Snow schrieb: > > > > > Apparently there is a known issue with doctests, in which tests

<    1   2