[Python-Dev] Zipping Zope3
Wiktor Sadowski
Wiktor Sadowski" <art@wiktorsadowski.com
Mon, 16 Dec 2002 23:13:34 +0100
This is a multi-part message in MIME format.
------=_NextPart_000_0047_01C2A558.C1C03720
Content-Type: multipart/alternative;
boundary="----=_NextPart_001_0048_01C2A558.C1C03720"
------=_NextPart_001_0048_01C2A558.C1C03720
Content-Type: text/plain;
charset="windows-1250"
Content-Transfer-Encoding: quoted-printable
[Just van Rossum]
>Ugh, you should really consider getting a decent diff tool :-/ How can
>*I* test if if I have no clue what exactly you've done?
Well, as you already know my implementation of custom imports (import =
hooks) is a bit different
and I am using modified Python22 ,so it's not easy to make diffs.
Zipimport.c in attached zipimport.tar.gz is to provide you with more =
details.
Don't try to compile it ;-)
>I can see that keeping the file object open could speed things up, but
>is it a polite & decent thing to do?
Yes, but it would be nice to not fopen/fclose for each =
__importer__.get_data.
Best
Wiktor
http://www.wiktorsadowski.com
------=_NextPart_001_0048_01C2A558.C1C03720
Content-Type: text/html;
charset="windows-1250"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dwindows-1250">
<META content=3D"MSHTML 6.00.2600.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV>[Just van Rossum]<BR>>Ugh, you should really consider getting a =
decent=20
diff tool :-/ How can<BR>>*I* test if if I have no clue what exactly =
you've=20
done?</DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV>Well, as you already know my implementation of custom imports =
(import=20
hooks) is a bit different<BR>and I am using modified =
Python22=20
,so it's not easy to make diffs.</DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV>Zipimport.c in attached zipimport.tar.gz is to provide =
you with=20
more details.<BR>Don't try to compile it ;-)</DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV>>I can see that keeping the file object open could speed things =
up,=20
but<BR>>is it a polite & decent thing to do?</DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV>Yes, but it would be nice to not fopen/fclose for each=20
__importer__.get_data.</DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV>Best<BR>Wiktor<BR><A=20
href=3D"http://www.wiktorsadowski.com">http://www.wiktorsadowski.com</A><=
/DIV></BODY></HTML>
------=_NextPart_001_0048_01C2A558.C1C03720--
------=_NextPart_000_0047_01C2A558.C1C03720
Content-Type: application/x-gzip;
name="zipimport.tar.gz"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="zipimport.tar.gz"
H4sICNpL/j0AAHppcGltcG9ydC50YXIA7Tz9UxvHkvlVqcr/MJbLIIEAQcDOmYdTshE2d9hQQPz8
YlNbizSCPa92ld2VbWLzv19/zOfuSohccq/qKsp7lnamu6enp7unp6eX36NJNJ6kWbE++O6v+ggh
njx5IuAbPt3St9h+0t3ZAYidJ0+2t3ce72xD2+MfdwC++93fn7/68zBKBvF0KEXz5Ka4TpP16+YP
39vGvMimg2Isx5cyK3Wl+VCO8lLjOMzy6zAutQ7S8SSKJbXif3kRFtFADK7DbEVMbgL5pZBJHqVJ
/v5C7ImvzfXJzaDZEfidqu/m7S4jb6wIo7QyE+nlf8tBIYCXKIkKoCHCZCjy6QT7xcoGohQ3EwkA
gmfjof8aTQ7Vb6JfA/L1h+8bJzfHNE7wqt/bt88wQJgNrqNPcleIDZhLWFwn4ViKdCSKa4lkhAIA
Vjy8EQgkByzCG0bQdCUTmYWxwB4RJaO0jDLJYJJfdgmFobjlqWiGG/n0cmMYZQCYZjcbTcJF6h6n
iATTvN21qwAA5yAeBnLFEWAzAeJoafY5zIYg5kEMpA2ypX4li6BIBy1cVCOV9u4MSBBMMAyLsKWb
V0LkreNhd2D2OAUQRiFAh2C2ed6hJ8QN8uh3yY+IW35MR6NcFshBDQ9xGg6JiXE6nMayZecNw+cy
HnUEszK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