469,358 Members | 1,610 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,358 developers. It's quick & easy.

execfile locks file forever if there are any syntax errors - is itpython bug?

Hello,

When I execfile a file which contains a syntax error, the file becomes
locked and stays this way all the way until I exit the interpreter (I am
unable to delete it, for example). I have tried but failed to find any
way to unlock the file... Is this a bug in Python?

Is there *any* way to unlock the file? It is annoying for me because I
often execfile various temporary files and it is a nuisance not to be
able to delete them.

I have tested with Python 2.5 on Windows... do other versions of Python
behave this way as well?

--
Best wishes,
Slawomir Nowaczyk
( Sl***************@cs.lth.se )

I didn't fight my way to the top of the food chain to be a vegetarian.

Mar 14 '07 #1
0 845

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Bo Jacobsen | last post: by
1 post views Thread by Yannick Turgeon | last post: by
reply views Thread by Enrique Palomo Jiménez | last post: by
2 posts views Thread by Alex Popescu | last post: by
1 post views Thread by Fernando Perez | last post: by
5 posts views Thread by George Sakkis | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.