From: Markus Fleck <fleck+unrev-ii@gnu.org>
Eric Armstrong:
> --Any non-zero integer == true, like C
> (-) Ugh. Too many hours wasted on debugging to
> find that you coded a=b instead of a==b, like
> you intended. This one is a time-sink.
Hmmm... but Python expressions can't have such side effects (like C's "if
(a=b)"). I really wouldn't consider the zero==false paradigm a misfeature;
in fact, most CPU implementations treat zero as "false".
> --No labeled break/continue
> (-) When you have nested loops, you absolutely need
> the ability to determine which one you are breaking,
> continuing.
I would argue that there might be better ways to structure control flow
than multi-level loop breaks.
> --Lambda function [I have a weak grasp on this one, good enough to
> give an evaluation but not good enough to produce an example.]
Example:
def func(str):
print str
is exactly equivalent to:
func = lambda str: print str
with the only difference being that you can leave out the binding
to the "func" name with the "lambda" syntax variant.
What I like about Python is the impressive amount of free libraries
and bindings, and the fact that large Python programs remain readable
and maintainable (unlike with Perl, Java etc.).
Yours,
Markus.
-- Markus B Fleck - University of Bonn - Germany GNU GLUE Groupware Project - http://www.gnu.org/software/glue/glue.html comp.lang.python.announce Moderator------------------------------------------------------------------------ GET A NEXTCARD VISA, in 30 seconds! Get rates as low as 0.0% Intro or 9.9% Fixed APR and no hidden fees. Apply NOW! http://click.egroups.com/1/937/3/_/444287/_/954015053/ ------------------------------------------------------------------------
Community email addresses: Post message: unrev-II@onelist.com Subscribe: unrev-II-subscribe@onelist.com Unsubscribe: unrev-II-unsubscribe@onelist.com List owner: unrev-II-owner@onelist.com
Shortcut URL to this page: http://www.onelist.com/community/unrev-II
This archive was generated by hypermail 2b29 : Sat Mar 25 2000 - 12:18:03 PST