<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Lib/zipfile.py, branch v2.2</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/zipfile.py?h=v2.2</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/zipfile.py?h=v2.2'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2001-12-06T06:23:26Z</updated>
<entry>
<title>SF bug #488514: -Qnew needs work</title>
<updated>2001-12-06T06:23:26Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-12-06T06:23:26Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=3caca2326e04ea3c0d1f8c6a588e646d8201af38'/>
<id>urn:sha1:3caca2326e04ea3c0d1f8c6a588e646d8201af38</id>
<content type='text'>
Big Hammer to implement -Qnew as PEP 238 says it should work (a global
option affecting all instances of "/").

pydebug.h, main.c, pythonrun.c:  define a private _Py_QnewFlag flag, true
iff -Qnew is passed on the command line.  This should go away (as the
comments say) when true division becomes The Rule.  This is
deliberately not exposed to runtime inspection or modification:  it's
a one-way one-shot switch to pretend you're using Python 3.

ceval.c:  when _Py_QnewFlag is set, treat BINARY_DIVIDE as
BINARY_TRUE_DIVIDE.

test_{descr, generators, zipfile}.py:  fiddle so these pass under
-Qnew too.  This was just a matter of s!/!//! in test_generators and
test_zipfile.  test_descr was trickier, as testbinop() is passed
assumptions that "/" is the same as calling a "__div__" method; put
a temporary hack there to call "__truediv__" instead when the method
name is "__div__" and 1/2 evaluates to 0.5.

Three standard tests still fail under -Qnew (on Windows; somebody
please try the Linux tests with -Qnew too!  Linux runs a whole bunch
of tests Windows doesn't):
    test_augassign
    test_class
    test_coercion
I can't stay awake longer to stare at this (be my guest).  Offhand
cures weren't obvious, nor was it even obvious that cures are possible
without major hackery.

Question:  when -Qnew is in effect, should calls to __div__ magically
change into calls to __truediv__?  See "major hackery" at tail end of
last paragraph &lt;wink&gt;.
</content>
</entry>
<entry>
<title>SF bug 486480:  zipfile __del__ is broken</title>
<updated>2001-11-28T23:16:40Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-11-28T23:16:40Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=d15f8bbe320811d8edaf869c91308679d246693f'/>
<id>urn:sha1:d15f8bbe320811d8edaf869c91308679d246693f</id>
<content type='text'>
ZipFile.__del__():  call ZipFile.close(), like its docstring says it does.
ZipFile.close():  allow calling more than once (as all file-like objects
in Python should support).
</content>
</entry>
<entry>
<title>Make these modules work when Python is compiled without Unicode support.</title>
<updated>2001-09-21T19:22:34Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2001-09-21T19:22:34Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=dbb718fa8775731666bb9cbc73662fadee41ea8f'/>
<id>urn:sha1:dbb718fa8775731666bb9cbc73662fadee41ea8f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Whitespace normalization.</title>
<updated>2001-09-18T02:26:39Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-09-18T02:26:39Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=b64bec3ec078d66a34175b9dec55eaac5c821b46'/>
<id>urn:sha1:b64bec3ec078d66a34175b9dec55eaac5c821b46</id>
<content type='text'>
</content>
</entry>
<entry>
<title>[ #458701 ] Patch to zipfile.py for Java</title>
<updated>2001-09-05T18:40:33Z</updated>
<author>
<name>Finn Bock</name>
<email>bckfnn@worldonline.dk</email>
</author>
<published>2001-09-05T18:40:33Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=03a3bb812a002119f139c57b902172ed6499c28d'/>
<id>urn:sha1:03a3bb812a002119f139c57b902172ed6499c28d</id>
<content type='text'>
Patch by Jim Ahlstrom which lets java's zipfile classes read zipfiles
create by zipfile.py.
</content>
</entry>
<entry>
<title>Make sure path names inserted into ZIP files are normalized to use "/" as</title>
<updated>2001-07-19T19:44:25Z</updated>
<author>
<name>Fred Drake</name>
<email>fdrake@acm.org</email>
</author>
<published>2001-07-19T19:44:25Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=a58947f60098b07471ad6771b185557081d14a4c'/>
<id>urn:sha1:a58947f60098b07471ad6771b185557081d14a4c</id>
<content type='text'>
the directory separator, as required by the format specification.

This closes SF bug #440693.
</content>
</entry>
<entry>
<title>Fix one bare except: clause.</title>
<updated>2001-05-11T19:52:57Z</updated>
<author>
<name>Fred Drake</name>
<email>fdrake@acm.org</email>
</author>
<published>2001-05-11T19:52:57Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=7e473800c31e650ad573e5af21a6ed63e155c2f6'/>
<id>urn:sha1:7e473800c31e650ad573e5af21a6ed63e155c2f6</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Mark Favas points out that there's an 'self.fp.flush()' call in the</title>
<updated>2001-04-14T16:45:14Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2001-04-14T16:45:14Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=f85af612f8c109f52333ee2d106b0848bf6ab372'/>
<id>urn:sha1:f85af612f8c109f52333ee2d106b0848bf6ab372</id>
<content type='text'>
ZipFile.close() method that should be part of the preceding 'if'
block.  On some platforms (Mark noticed this on FreeBSD 4.2) doing a
flush() on a file open for reading is not allowed.
</content>
</entry>
<entry>
<title>Try an except: after an import into "except ImportError".</title>
<updated>2001-04-10T15:37:12Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2001-04-10T15:37:12Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=9c673f35d2f420ebcc8bc6e5c7f946722d4329aa'/>
<id>urn:sha1:9c673f35d2f420ebcc8bc6e5c7f946722d4329aa</id>
<content type='text'>
This came out of SF bug #411881.

Note that there's another unqualified except: still.
</content>
</entry>
<entry>
<title>Sf bug [ #412214 ] ZipFile constructor leaves files open.</title>
<updated>2001-04-04T18:56:49Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-04-04T18:56:49Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=7d3bad66e4b32fa65fce219661b16d75e90c152f'/>
<id>urn:sha1:7d3bad66e4b32fa65fce219661b16d75e90c152f</id>
<content type='text'>
This applies the patch Fred Drake created to fix it.
I'm checking it in since I had to apply the patch anyway in order
to test its behavior on Windows.
</content>
</entry>
</feed>
