Python and Ruby

Ben Finney ben+python at
Tue Feb 2 23:21:13 CET 2010

Jonathan Gardner <jgardner at> writes:

> Compare with Python's syntax.
> # The only way to assign
> a = b
> # The only way to call a function
> b(...)
> # The only way to access a hash or array or string or tuple
> b[...]

For all of your examples, there are other ways supported. I do wish this
focus on “only way” would depart, it's a fallacy and not helpful.

What is important (and supports the main point of your message) is that
for each of the above, whether or not they are the only way, they are
the one *obvious* way to do the operation.

 \           “The cost of education is trivial compared to the cost of |
  `\                                     ignorance.” —Thomas Jefferson |
_o__)                                                                  |
Ben Finney

More information about the Python-list mailing list