anything like C++ references?

Ian Bicking ianb at colorstudy.com
Sun Jul 13 16:05:38 EDT 2003


On Sun, 2003-07-13 at 14:39, Stephen Horne wrote:
> The fact is that 'assignment' has a common meaning separate from the
> choice of programming language, 

This just isn't true.  The C++ assignment operator is not at all like
the Python assignment statement.  Python variables are not like C++
variables, no surprise assignment is different too.  If you used
languages outside of C++ and its like (e.g., Pascal), you would find
Python's behavior common.

(Admittedly, some confusion may occur because these very different
operations use the same syntax:

  x = 10
  x[0] = 10
  obj.x = 10

The second and third are entirely different from the first.)

  Ian







More information about the Python-list mailing list