[Pythonmac-SIG] Wierd Error/Bug in MacPython 2.0

Chris Barker chrishbarker@home.net
Thu, 07 Jun 2001 15:56:52 -0700


Jack Jansen wrote:

> I spent a couple of days trying to track down this bug, but as it is
> non-reproducible this wasn't a success. I now specifically test for
> this case and simply try the copy another time. This seems to mask the
> bug.
> 
> This strategy may or may not work for you, but I'm also interested to
> hear whether other people are seeing similar problems.

Are you suggesting I do:

while not succesfull:
	try:
		file.close()
	except:
		succesfull = 0
		time.sleep(10)
	else:
		succesfull = 1


Is there any chance that this would work?

-Chris


-- 
Christopher Barker,
Ph.D.                                                           
ChrisHBarker@home.net                 ---           ---           ---
http://members.home.net/barkerlohmann ---@@       -----@@       -----@@
                                   ------@@@     ------@@@     ------@@@
Oil Spill Modeling                ------   @    ------   @   ------   @
Water Resources Engineering       -------      ---------     --------    
Coastal and Fluvial Hydrodynamics --------------------------------------
------------------------------------------------------------------------