Bill Bumgarner [mailto:[EMAIL PROTECTED]] wrote:
> The tempfile issue.
> 
> The tempfile module has changed in Python 2.3.  Specifically, 
> mktemp() 
> can now take a directory argument, but _counter has been eliminated 
> from the module.  This breaks PSP.
> 
> This is the [slightly bogus, admittedly] fix I am successfully using:

Thanks for catching this problem.

There's a better fix -- the only reason we're using our own mktemp is so
that we can add the directory argument.  So if we detect Python 2.3, we
should just use the improved version that comes with Python 2.3 instead of
our own improved version.

In fact, for security reasons it would be better to use mkstemp() instead of
mktemp() (see the docs in Python 2.3 for an explanation of the security
risks of mktemp).

I just checked these fixes into CVS.  I've only tested on Windows, so if a
Linux user could try this out I'd appreciate it.

- Geoff


-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to