code in __call__ of utils.Profile:
temp = tempfile.NamedTemporaryFile()
prof = hotshot.Profile(temp.name)
According to the documentation of NamedTemporaryFile:
Whether the name can be used to open the file a second time, while the
named temporary file is still open, varies across platforms (it can be
so used on Unix; it cannot on Windows NT or later).
The file temp.name cannot be opened again by hotshot.Profile in
windows platform.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web.py" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---