list vs tuple

Sean 'Shaleh' Perry shaleh at valinux.com
Wed Mar 28 12:40:38 EST 2001


On 28-Mar-2001 Brian Quinlan wrote:
> I'm not sure that this is a reasonable piece of self documentation since
> dir_list can change. It is the tuple ('/path', '/foo/bar', '/baz/bat/files')
> that cannot change. Would you say that x = 5 documents that x cannot change?
> 

dir_list is declared as a tuple, which is as close to a const one can find in
python.




More information about the Python-list mailing list