Migrating from PHP to Python...

Rick Shin rick at slaveware.com
Sun Sep 2 21:21:06 EDT 2001


>
> All variables in python are dynamic type. Is that what you were asking?
>
> >>> a=1
> >>> a
> 1
> >>> a = 'hello'
> >>> a
> 'hello'

Actually, I was referring to PHP's ability to assign names dynamically to
variables. For example:

$var = 'hello';
$$var = 'world!';
echo $var . ' ' . $$var;    // prints 'hello world!'
echo $var . ' ' . $hello;    // prints 'hello world!' too

In any case, you've made some pretty compelling arguments. I'm strongly
leaning towards Python for my next major web app. The only thing holding me
back really is questions I have about it's performance and scaleability. Is
it true that Google and Yahoo Mail is built on Python?

>
> --
>       Joal Heagney is: _____           _____
>    /\ _     __   __ _    |     | _  ___  |
>   /__\|\  ||   ||__ |\  || |___|/_\|___] |
>  /    \ \_||__ ||___| \_|! |   |   \   \ !





More information about the Python-list mailing list