calling standard python functions from rubypython
Question: I am trying to use the rubypython gem. Not sure how to call standard python
functions like len and set. In the python examples I see len(text3) and
set(text3).

How do I call these in rubypython?

Here is the link to rubypython: <http://rubypython.rubyforge.org/>


Answer: Well, my Ruby knowledge is limited, and my knowledge of the `rubypython` gem
is non-existent. However, I do know the standard functions you refer to a part
of the `__builtin__` module, which is automatically imported into the python
namespace. Fortunately, there's nothing preventing you from importing it
explicitly again (which is perfectly safe in Python). You then _might_ be able
do something like `__builtin__.set()`. No guarantees, though.

