7;truncate'):
db.db.truncate()
db.close()
return True
Pretty ugly but it seems to work.
-Alec
Alec Wysoker wrote:
> I tried something not exactly like this, but in the same spirit. I
> don't generally have a list of files I want to delete - just one. I
>
I tried something not exactly like this, but in the same spirit. I
don't generally have a list of files I want to delete - just one. I
try to delete it and if I get errno 13 I sleep for a little while (0.2)
and then try again. If the same problem then I add 1 sec to the sleep
time and try again.
> File attributes may be an issue to. Take look at the recipe at:
> http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/303343
> which ensures the file attributes are normal before you delete it.
I don't think file attributes are an issue, because generally I can
manually delete the file in
>> Using Python 2.3.5 on Windows XP, I occasionally get OSError: [Errno
>> 13] Permission denied when calling os.remove(). This can occur with a
>> file that is not used by any other process on the machine,
>
> How do you know that?
Yeah, good point. I don't really know. I should have said no p
Interesting theory. I do have a virus scanner, and also Google Desktop
Search. Sometimes I get this error when running a large suite of unit
tests. Each unit test starts off by cleaning the test output
directory, and failing if it can't do so. I will see many (hundreds?)
tests fail because the
to fix this problem, because
I'm developing an app that won't survive if it fails to delete its
files.
Thanks,
Alec Wysoker
--
http://mail.python.org/mailman/listinfo/python-list
It seems unlikely that is the problem, since I can connect from the
client machine to server using JDBC, just not using mySQL client (any
by extension) mysql-python.
--
http://mail.python.org/mailman/listinfo/python-list
right version:
/usr/local/mysql/bin/mysql --version
/usr/local/mysql/bin/mysql Ver 14.7 Distrib 4.1.10, for sun-solaris2.8 (sparc)
At 03:08 PM 2/24/2005, Steve Holden wrote:
>Alec Wysoker wrote:
>
>>Hi Steve,
>>Thanks for the response. I don't think this is the problem. W
Hi Andy,
Thanks for your message. It turned out that I had installed 64-bit
mySql on a 32-bit machine. I'm amazed it worked at all. Anyway, I
finally got mysql-python built, but I'm unable to connect to a machine
on a remote host. The problem doesn't seem to be with the python code,
because I'
ced symbol not found
Any advice would be greatly appreciated.
Thanks,
Alec Wysoker
--
http://mail.python.org/mailman/listinfo/python-list
rn') before self.__stop() is called at line 451.
However, I do not see any of those messages.
Any ideas or suggestions? I am baffled.
Thanks,
Alec Wysoker
--
http://mail.python.org/mailman/listinfo/python-list
Could you explain a little more clearly what the problem is? In the
implementation of expanduser in Python 2.3.4, it uses the value of HOME env var
if it exists, otherwise, it uses HOMEDRIVE + HOMEPATH. I don't have access to
a Win 2K machine right now, but my recollection is that when I did,
12 matches
Mail list logo