From: Gary P. <gar...@gm...> - 2008-03-27 14:31:21
|
On Wed, Mar 26, 2008 at 9:59 AM, Joe Heafner <hea...@gm...> wrote: > I can type > > > locations = [vector(-6e-11,0,6e-11),vector(-6e-11,-6e-11,0),\ > vector(-6e-11,6e-11,0),vector(-6e-11,0,-6e-11)] > > and > > > locations.append(vector(-6e-11,0,6e-11)) > locations.append(vector(-6e-11,-6e-11,0)) > locations.append(vector(-6e-11,6e-11,0)) > locations.append(vector(-6e-11,0,-6e-11)) > > > but I get an index out of range error when I type > > > locations[0] = vector(-6e-11,0,6e-11) > locations[1] = vector(-6e-11,-6e-11,0) > locations[2] = vector(-6e-11,6e-11,0) > locations[3] = vector(-6e-11,0,-6e-11) > > Does Visual change the initial index or is something else going on? I can't reproduce that. Things work as expected for me. (WinXP, visual 3.2.10, python 2.5.1) try len(locations) what happens if you simply try to display locations[0] or locations[3], etc ? -gary > > Joe > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > https://lists.sourceforge.net/lists/listinfo/visualpython-users > > |