[1,2,3] exactly same as [1,2,3,] ?

Ken Starks straton at lampsacos.demon.co.uk
Fri Aug 29 05:09:20 EDT 2008


mh at pixar.com wrote:
> x=[1,2,3]
> and
> x=[1,2,3,]
> 
> are exactly the same, right?
> 
> I'm generating some python data, and it's less error prone
> to not treat the last element specially, but I want to be
> sure I'm generating an equivalent data structure.
> 
> Many TIA!
> Mark
> 
 >>> x=[1,2,3,]
 >>> repr(x)
[1,2,3]




More information about the Python-list mailing list