On Apr 12, 3:59 pm, DenesL <denes1...@yahoo.ca> wrote:
> Very simple, in db.py:
>
> db=SQLDB(...)
> db.define_table('person',
>   Field('name')
> )
>
> s=[]
> for f in db.person.fields:
>   s.append(db.person[f].type)
> #
>
> will fail.
> It is a stupid loop, but it illustrates the problem.
>

Thanks Denes - this is specific;  I cannot reproduce the problem with
this (that is, it runs fine on Ubuntu / Python 2.6.4 / web2py 1.76.5

I'll try it later tonight in a windows VM (I just checked - don't have
a recent web2py, other things to do).

If someone else can reproduce this on Windows, trace it down to where
it's happening, that would be great.

- Yarko


> If you comment out the for then it is ok.
> If you add an empty line or remove the comment it is ok.
>
> On Apr 12, 4:10 pm, Yarko Tymciurak <resultsinsoftw...@gmail.com>
> wrote:
>
> > On Apr 12, 3:00 pm, DenesL <denes1...@yahoo.ca> wrote:
>
> > > Running on Windows here.
>
> > > @Yarko,  yes, there seems to be an additional ingredient to this.
> > > A prerequisite seems to be the existence of a for statement somewhere.
> > > (!?!?).
>
> > Denes - I'm assuming you've found a bug (perhaps a subtle one);  Let's
> > see if get to some minimal situation where this occurs so others can
> > reproduce...
>
> > I am perfectly willing to run this on Windows-7 in a virtual
> > machine...
>
> > - Yarko


-- 
To unsubscribe, reply using "remove me" as the subject.

Reply via email to