Hans Roessler wrote:
But still I am looking for a way to allow the simple "data=42." syntax with the
same result, because it would best copy the C++ syntax.
Would it, really ? I think it would be extremely confusing, if it would
work. But it doesn't. "a = b" doesn't assign to an object, but to a
variable. Variables in Python have reference semantics, so you'd simply
reassign the name to a different object.
Regards,
Stefan
--
...ich hab' noch einen Koffer in Berlin...
_______________________________________________
Cplusplus-sig mailing list
Cplusplus-sig@python.org
http://mail.python.org/mailman/listinfo/cplusplus-sig