C API: Change immutable objects? :-o

Frank Sonnenburg sonnenbu at informatik.uni-bonn.de
Mon Aug 5 13:48:50 CEST 2002


Thanks to all of you for your helpful hints!

Especially to the
- array module and the
- reference count, will check both "techniques".


I tried with integers and the result was - as expected - fatal:
>>> i = 5
>>> newmodule.change_int(i)
>>> i
42
>>> 42 == 5
1
---even---
>>> 42 is 5
1


Sincerely,

Frank Sonnenburg





More information about the Python-list mailing list