Correction: Pascal inc(), not int()

Michael Hudson mwh21 at cam.ac.uk
Mon Mar 20 13:19:45 EST 2000


"Adrian Eyre" <a.eyre at optichrome.com> writes:

> Not possible without some extreme extension module hack, which is not
> recommended. The problem is rebinding the new value into the calling
> function's namespace. If you call a function like this...

Not possible *with* an extreme module hack, unless you want to see

>>> i = 1
>>> inc(i)
>>> i
2 # that's good
>>> 1
2 # *that's* not!

Cheers,
M.

-- 
very few people approach me in real life and insist on proving they are
drooling idiots.                         -- Erik Naggum, comp.lang.lisp



More information about the Python-list mailing list