<[EMAIL PROTECTED]> wrote:

> Wait... so this means it is impossible to write a function that
> increments an integer without turning the integer into a list?

The short answer is no you can't, because integers are immutable (as
well as floats and strings among others). The longer answer is you can
create a, say, MutableInt class whose instances behave as modifiable
integers. Most probably you don't really need this, but if you think
you do, others in the list will sketch out how.

George

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to