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

2007-03-14 Thread Slawomir Nowaczyk
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
 ( [EMAIL PROTECTED] )

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

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: execfile locks file forever if there are any syntax errors - is it python bug?

2007-03-14 Thread skip

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

Kinda seems like it might be.  Please file a bug report on SourceForge.

Skip
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: execfile locks file forever if there are any syntax errors - is it python bug?

2007-03-16 Thread Slawomir Nowaczyk
On Wed, 14 Mar 2007 07:59:57 -0500
[EMAIL PROTECTED] wrote:

#> 
#> Slawomir> When I execfile a file which contains a syntax error, the file
#> Slawomir> becomes locked and stays this way all the way until I exit the
#> Slawomir> interpreter (I am unable to delete it, for example). I have
#> Slawomir> tried but failed to find any way to unlock the file... Is this
#> Slawomir> a bug in Python?
#> 
#> Kinda seems like it might be.  Please file a bug report on SourceForge.

I did, and it is a bug, but it seems to be already fixed in SVN.

https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1681020&group_id=5470

-- 
 Best wishes,
   Slawomir Nowaczyk
 ( [EMAIL PROTECTED] )

Does a clean house indicate that there is a broken computer in it?

-- 
http://mail.python.org/mailman/listinfo/python-list