This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ocean-city
Recipients ocean-city
Date 2010-12-05.16:49:18
SpamBayes Score 1.17073e-13
Marked as misclassified No
Message-id <>
Is this intended behavior? Creating zipfile.ZipFile with
relative path and changing current directory, relative path
is resolved from new directory not from the directory object
was created.

Python 3.2a4+ (py3k, Dec  3 2010, 22:11:05) [MSC v.1200 32 bit (Intel)] on win32

Type "help", "copyright", "credits" or "license" for more information.
>>> import zipfile
[67577 refs]
>>> zip = zipfile.ZipFile("", "r")
[68999 refs]
>>> import os
[69001 refs]
>>> os.mkdir("temp")
[69001 refs]
>>> os.chdir("temp")
[69001 refs]
>>> zip.extractall()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "e:\python-dev\py3k\lib\", line 992, in extractall
    self.extract(zipinfo, path, pwd)
  File "e:\python-dev\py3k\lib\", line 980, in extract
    return self._extract_member(member, path, pwd)
  File "e:\python-dev\py3k\lib\", line 1023, in _extract_member
    source =, pwd=pwd)
  File "e:\python-dev\py3k\lib\", line 901, in open
    zef_file =, 'rb')
IOError: [Errno 2] No such file or directory: ''
[69128 refs]
Date User Action Args
2010-12-05 16:49:21ocean-citysetrecipients: + ocean-city
2010-12-05 16:49:21ocean-citysetmessageid: <>
2010-12-05 16:49:18ocean-citylinkissue10631 messages
2010-12-05 16:49:18ocean-citycreate