On Thursday 17 November 2005 10:24 pm, John Hunter wrote:
> Darren found this problem with creating a temporary dir with
> python2.2. I don't have a 2.2 install laying around. If someone
> does, could you take a minute and find what the proper way is to avoid
> this err:
> t = tempfile.TemporaryFile(dir=p)
> TypeError: TemporaryFile() got an unexpected keyword argument 'dir'
Here is the docstring for tempfile.TemporaryFile in python-2.2:
TemporaryFile(mode='w+b', bufsize=-1, suffix='')
Create and return a temporary file (opened read-write by default).