variable declaration
Alexander
Alexander_Zatvornitskiy at p131.f3.n5025.z2.fidonet.org
Mon Feb 7 16:11:33 EST 2005
Привет Nick!
06 февраля 2005 в 02:54, Nick Coghlan в своем письме к Python List писал:
NC> An alternate proposal, where the decision to request rebinding
NC> semantics is made at the point of assignment:
NC> epsilon = 0
NC> S = 0
NC> while epsilon < 10:
NC> S .= S + epsilon
NC> epselon .= epsilon + 1 #interpreter should show error here
NC> print S
Well, I think
epsilon. = 0
S. = 0
while epsilon < 10:
S = S + epsilon
epselon = epsilon + 1 #interpreter should show error here
print S
will be little bit more pretty, from my point of view. Or may be smth like
this:
`S=0
~S=0
S~=0
S`=0
and so on. But, I think, your idea look more preaty than my previous (with var
keyword)
Alexander, zatv at bk.ru
More information about the Python-list
mailing list