Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #103449

child.before taking almost 1 minute to execute

X-Received by 10.182.72.137 with SMTP id d9mr37236316obv.31.1456328564316; Wed, 24 Feb 2016 07:42:44 -0800 (PST)
X-Received by 10.50.155.65 with SMTP id vu1mr434539igb.0.1456328564224; Wed, 24 Feb 2016 07:42:44 -0800 (PST)
Path csiph.com!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!peer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!y89no3839744qge.0!news-out.google.com!h70ni83qge.0!nntp.google.com!y89no3839740qge.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Newsgroups comp.lang.python
Date Wed, 24 Feb 2016 07:42:40 -0800 (PST)
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=2602:306:ceca:9650:a5c1:1342:be85:c43f; posting-account=_ELkTgoAAAA1uFGA8IstON_4WhI5uPEE
NNTP-Posting-Host 2602:306:ceca:9650:a5c1:1342:be85:c43f
User-Agent G2/1.0
MIME-Version 1.0
Message-ID <ae3896fc-10e2-436f-aaac-bfb201f83c81@googlegroups.com> (permalink)
Subject child.before taking almost 1 minute to execute
From pyfreek <sruthi223@gmail.com>
Injection-Date Wed, 24 Feb 2016 15:42:44 +0000
Content-Type text/plain; charset=ISO-8859-1
X-Received-Bytes 1663
X-Received-Body-CRC 9171935
Xref csiph.com comp.lang.python:103449

Show key headers only | View raw


The following snippet alone is taking 1 minute to execute. is there any best way to find 'No such file' other than using child.before

                if not scrutinFile.startswith('/') :
                        scrutinFile = '/'+ scrutinFile
                scrutinFileFtp = directory + scrutinFile
                filePath, file = os.path.split(scrutinFileFtp)
                p.sendline('cd %s'%(filePath))
                p.expect([pexpect.EOF,pexpect.TIMEOUT])
                if 'No such file' in p.before:
                        print "No such directory exists!!"
                        sys.exit(1)


pyfreek

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

child.before taking almost 1 minute to execute pyfreek <sruthi223@gmail.com> - 2016-02-24 07:42 -0800
  Re: child.before taking almost 1 minute to execute Emile van Sebille <emile@fenx.com> - 2016-02-24 12:57 -0800
    Re: child.before taking almost 1 minute to execute sruthi223@gmail.com - 2016-02-25 07:12 -0800
  Re: child.before taking almost 1 minute to execute Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2016-02-25 10:09 +1300
    Re: child.before taking almost 1 minute to execute sruthi223@gmail.com - 2016-02-25 07:12 -0800

csiph-web