[Tutor] Only appending one object to list, when I am expecting more than 1

AdamC kabads at gmail.com
Wed Feb 27 08:25:02 EST 2019


That's great - bug found. Thanks. However the next question is, how do I
create an instance of a class with variable parameters (i.e. with dateAdded
already computed and stored, or with dateAdded created for the first time)?

I hope that makes sense.

Adam

On Tue, 26 Feb 2019 at 18:24, Tobiah <toby at tobiah.org> wrote:

>
>
> On 2/26/19 6:39 AM, AdamC wrote:
> > Sorry folks - my code didn't work due to my debug var count to ensure
> that
> > I was looping properly.
> >
> > It should be:
>
> As was pointed out, the problem is not in your code.  It's in your
> data.  You only have one record with a proper 'tpe' value, so that's
> all you get in your media list.
>
>
> Toby
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> To unsubscribe or change subscription options:
> https://mail.python.org/mailman/listinfo/tutor
>


-- 
--
You back your data up on the same planet?
http://www.monkeez.org
PGP key: 0x7111B833


More information about the Tutor mailing list