[Zope] python nigglettes

Tom Smith tom@othermedia.com
Tue, 23 May 2000 10:53:33 -0500


This is a multi-part message in MIME format.

------=_NextPart_000_0045_01BFC4A5.23D7B3D0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

hi all, I'm currently experimenting with zope and noodling with =
python....can anyone give me an answer on these?

Python is beautiful (nearly as beautiful as Prograph (but that's another =
story)).

 I'm a BIG fan of human readable code, I loved HyperCard and =
pathelogically refused to get my head past Perl. But there a few =
irritants that I really need to know why they're there.

    1. ":" This smacks of geek...surely the interpreter could figure out =
if this wasn't there...couldn't it? Surely there's a workaround for =
someone like me. Isn't there? What if I "promised" never to write =
one-line functions, could I do without it then?

    2."elif" Boy this is awkward, I though "elseif" was bad but "elif" =
!! Can I use/implement alternatives "elseif" would be a start "else if" =
would be better...more natural.

I love the fact that with Python it's OK (nay encouraged) to document =
code. I can live with the "__whatever__" methods but ":" and "elif" are =
so ugly that as I'm showing someone how cool Python is, I get =
embarrased...and make excuses....along the lines of...."yes, yes, I =
know, but look how easy it is to create a subclass of Animal..."

cheers

tom




------=_NextPart_000_0045_01BFC4A5.23D7B3D0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
<HTML>
<HEAD>

<META content=3Dtext/html;charset=3Diso-8859-1 =
http-equiv=3DContent-Type>
<META content=3D'"MSHTML 4.72.3612.1706"' name=3DGENERATOR>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT color=3D#000000 size=3D2>hi all, I'm currently experimenting =
with zope=20
and noodling with python....can anyone give me an answer on =
these?</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#000000 size=3D2>Python is beautiful (nearly as =
beautiful as=20
Prograph (but that's another story)).</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#000000 size=3D2>&nbsp;I'm a BIG fan of human =
readable code, I=20
loved HyperCard and pathelogically refused to get my head past Perl. But =
there a=20
few irritants that I really need to know why they're there.</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#000000 size=3D2>&nbsp;&nbsp;&nbsp; 1. &quot;:&quot; =
This smacks=20
of geek...surely the interpreter could figure out if this wasn't=20
there...couldn't it? Surely there's a workaround for someone like me. =
Isn't=20
there? What if I &quot;promised&quot; never to write one-line functions, =
could I=20
do without it then?</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#000000 size=3D2>&nbsp;&nbsp;&nbsp; =
2.&quot;elif&quot; Boy this=20
is awkward, I though &quot;elseif&quot; was bad but &quot;elif&quot; !! =
Can I=20
use/implement alternatives &quot;elseif&quot; would be a start =
&quot;else=20
if&quot; would be better...more natural.</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>I love the fact that with Python it's OK (nay =
encouraged) to=20
document code. I can live with the &quot;__whatever__&quot; methods but=20
&quot;:&quot; and &quot;elif&quot; are so ugly that as I'm showing =
someone how=20
cool Python is, I get embarrased...and make excuses....along the lines=20
of....&quot;yes, yes, I know, but look how easy it is to create a =
subclass of=20
Animal...&quot;</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#000000 size=3D2>cheers</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>tom</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV></BODY></HTML>

------=_NextPart_000_0045_01BFC4A5.23D7B3D0--