[Python-Dev] Better module shutdown procedure (original) (raw)
Glyph Lefkowitz glyph at twistedmatrix.com
Thu Oct 15 00:25:35 CEST 2009
- Previous message: [Python-Dev] Better module shutdown procedure
- Next message: [Python-Dev] Better module shutdown procedure
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Wed, Oct 14, 2009 at 2:45 PM, Neil Schemenauer <nas at arctrix.com> wrote:
On Wed, Oct 14, 2009 at 08:35:28PM -0000, exarkun at twistedmatrix.com wrote: > I notice that the patch doesn't include any unit tests for the feature > being provided
That's hard to do although I suppose not impossible. We would be trying to test the interpreter shutdown procedure. I suppose on plaforms that support it we could fork a subprocess and then inspect the output from del methods.
Why not just expose the module-teardown procedure and call it on a module, then inspect the state there as it's being torn down? -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20091014/b66b44ed/attachment.htm>
- Previous message: [Python-Dev] Better module shutdown procedure
- Next message: [Python-Dev] Better module shutdown procedure
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]