A small inconsistency in syntax?

Delaney, Timothy tdelaney at avaya.com
Tue Oct 30 00:42:08 CET 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

Tim Delaney

More information about the Python-list mailing list