Bill Bumgarner [mailto:bbum@...] wrote:
> The tempfile issue.
> The tempfile module has changed in Python 2.3. Specifically,
> 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.
From: Bill Bumgarner <bbum@co...> - 2003-01-31 16:39:17
Your fix works fine on OS X.
On Thursday, Jan 30, 2003, at 16:19 US/Eastern, Geoffrey Talvola wrote:
> 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.