A small inconsistency in syntax?

Delaney, Timothy tdelaney at avaya.com
Mon Oct 29 18:42:08 EST 2001


> I could want to write:
> a = ['x value','y value','z value'] = x
> 
> 3. it's making the type assigned to 'a' a list

Is it? Isn't the above equivalent to

    ['x value','y value','z value'] = x
    a = x

in which case there is no forcing of type happening at all (syntax errors
aside).

Tim Delaney




More information about the Python-list mailing list