You can, in fact reproduce the problem here:
http://shell.appspot.com/

Google App Engine/1.4.1
Python 2.5.2 (r252:60911, May 12 2010, 14:18:27)
[GCC 4.3.1]

>>> a=[1,2,3]
>>> a.append(4)
>>> print a
[1, 2, 3]

On Jan 5, 1:28 am, mdipierro <[email protected]> wrote:
> It seems thet any statement that modifies an existing object is
> ignored:
>
> In [1] : a=[1,2,3]
> In [2] : a.append(4)
> In [3] : print a
> [1, 2, 3]
>
> On Jan 4, 10:08 pm, meentsbk <[email protected]> wrote:
>
> > Hello,
>
> > First, let me preface this with a "I'm EXTREMELY new to web2py."  I've
> > been going through the documentation and trying things in my own
> > example apps, but there is one thing that seems pretty basic that I
> > just can't seem to get working, and that is using the DIV helper with
> > the .append attribute, as documented 
> > onhttp://web2py.com/book/default/docstring/DIV.
>
> > I've actually taken this into the web2py shell application, and am
> > trying the following:
>
> > a = DIV()
>
> > printing this gives me <div></div>, as expected.
>
> > Then, I do:
>
> > a.append(SPAN('x'))
>
> > This runs without error, but when I do a print, I only get:
>
> > <div></div>
>
> > The same thing also happens for me on insert.  Am I just missing
> > something completely obvious here?
>
> > Brian
>
>

Reply via email to