[issue10748] zipfile does not write empty ZIP structure if close() called after __init__() as doc suggests

2010-12-21 Thread Ian Stevens
New submission from Ian Stevens iancstev...@gmail.com: The zipfile documentation (http://docs.python.org/library/zipfile.html) states: If the file is created with mode 'a' or 'w' and then close()d without adding any files to the archive, the appropriate ZIP structures for an empty archive

[issue10748] zipfile does not write empty ZIP structure if close() called after __init__() as doc suggests

2010-12-21 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: This has been fixed in Python 2.7.1 (which the online docs refer to). I assume that you're using 2.6 or an earlier version. As for the code in SVN, the trunk is currently not in use; development happens in the release27-maint, release31-maint

[issue10748] zipfile does not write empty ZIP structure if close() called after __init__() as doc suggests

2010-12-21 Thread Ian Stevens
Ian Stevens iancstev...@gmail.com added the comment: Yes, I'm using 2.6. If this is not the expected behaviour in 2.6, the doc should reflect that with a New in version 2.7 note. -- ___ Python tracker rep...@bugs.python.org

[issue10748] zipfile does not write empty ZIP structure if close() called after __init__() as doc suggests

2010-12-21 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: We usually don't do this for bugfixes, but here it makes sense I guess. r87414. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10748 ___