[Ironpython-users] IronPython, Daily Digest 3/25/2014

2014-03-26 Thread CodePlex
Hi ironpython, Here's your Daily Digest of new issues for project "IronPython". In today's digest:ISSUES 1. [New comment] add support for pymongo 2. [New comment] add support for pymongo 3. [New comment] add support for pymongo -- ISSUES 1. [New com

[Ironpython-users] How to forcibly terminate a script?

2014-03-26 Thread Andrew Stephens
Let’s say I run the following simple script (which also contains an “atexit” func, as I might want to perform some cleanup when the script terminates):- import atexit import time import sys @atexit.register def cleanup(): print 'doing cleanup/termination code' sys.exit() for i in range(

Re: [Ironpython-users] How to forcibly terminate a script?

2014-03-26 Thread Jeff Hardy
The only way to forcibly end it is to run it in another thread and use Thread.Abort[1]. All of the usual caveats around Thread.Abort apply, and your atexit may or may not be called. The Shutdown method is a bit misleading; it does some cleanup but doesn't actually *stop* the current engine. There