How come print cannot be assigned to a variable?

anonymousnerd at gmail.com anonymousnerd at gmail.com
Fri May 20 10:40:42 EDT 2005


Hi all,
    In Python, some functions can be assigned to variables like this:
        length=len
Why is it that print cannot be assigned to a variable like this? (A
syntax error is declared.)

  Thanks,

 Vaibhav




More information about the Python-list mailing list