Print statement isn't showing up?

Robert Dailey rcdailey at gmail.com
Tue Aug 5 12:09:09 EDT 2008


Hi,

I have the following code:


def ReplaceExternalWithCopy( localDir, remoteDir ):
    print "Removing external local directory:", localDir
    rmdirs( localDir )
    vfxrepo.copy( remoteDir, localDir )

I noticed that the print statement above does not show up before
vfxrepo.copy() is called. the copy() function (as well as the rmdirs()
function) are very long file-system calls that take up to 5 minutes. I
should see a print statement before these are executed, but I do not.
Instead it shows up *after* the last 2 lines of code have completed. Is
there something broken about this?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20080805/b6d16c4f/attachment.html>


More information about the Python-list mailing list