On Tue, Aug 5, 2008 at 9:09 AM, Robert Dailey <rc******@gmail.comwrote:
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?
My guess is that the output is getting buffered and the buffer doesn't
get flushed until sometime after the function executes.
--
Stand Fast,
tjg. [Timothy Grant] 1 1301
On Aug 6, 2:28*am, "Timothy Grant" <timothy.gr...@gmail.comwrote:
On Tue, Aug 5, 2008 at 9:09 AM, Robert Dailey <rcdai...@gmail.comwrote:
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?
My guess is that the output is getting buffered and the buffer doesn't
get flushed until sometime after the function executes.
--
Stand Fast,
tjg. [Timothy Grant]
Are you calling this function from inside, say, doctests-watched
comments. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: mmccaws |
last post by:
Thanks ahead for your help
I'm trying to learn what I can do with echo and print statements. I
figured out the echo statement and below is the simple version using
print. I've tried two dozen...
|
by: Martin Bless |
last post by:
Why can't we have an additional 'print' statement, that behaves
exactly like 'print' but doesn't insert that damn blank between two
arguments?
Could be called 'printn' or 'prin1' or 'prinn'...
|
by: Michael Foord |
last post by:
Here's a little oddity with 'print' being a reserved word...
>>> class thing:
pass
>>> something = thing()
>>> something.print = 3
SyntaxError: invalid syntax
>>> print something.__dict__...
|
by: jamesthiele.usenet |
last post by:
I recently ran into the issue with 'print' were, as it says on the web
page called "Python Gotchas"
(http://www.ferg.org/projects/python_gotchas.html):
The Python Language Reference Manual says,...
|
by: DD |
last post by:
I have a mainform with a subform.
The main form as a dropdown box "chooseDate", in the afterupdate event
i requery the subform so all records with the same date are viewed.
Now i only want to...
|
by: Dean Slindee |
last post by:
Anybody written code in VB.NET to: 1) show a print preview window of reports
already written and stored in an Access 2002 database; or 2) execute the
print of a report stored in an Access 2002...
|
by: mirandacascade |
last post by:
O/S: Win2K
Vsn of Python: 2.4
Here is copy/paste from interactive window of pythonwin:
>>> x = "Joe's desk"
>>> y = 'Joe\x92s desk'
>>> type(x)
<type 'str'>
>>> type(y)
|
by: Edward K Ream |
last post by:
The pros and cons of making 'print' a function in Python 3.x are well
discussed at:
http://mail.python.org/pipermail/python-dev/2005-September/056154.html
Alas, it appears that the effect of...
|
by: Prisoner at War |
last post by:
Hi, your friendly neighborhood n00b here, just wondering why on earth
the Py3K folks want to mess with a simple thing like the "print"
"command" (is that what it's called, a command?), turning it...
|
by: Terry Reedy |
last post by:
Robert Dailey wrote:
Python version? Plafform?
There may be a buffering issue. After the print, try
import sys
sys.stdout.flush()
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
| |