Without spending a lot of time on an answer, you can use default arguments in the cases where only the number of arts differs in your instance creation. If there's larger differences, look into @classmethod.
On February 27, 2019 5:25:02 AM PST, AdamC <[email protected]> wrote: >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 <[email protected]> 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 - [email protected] >> 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 >_______________________________________________ >Tutor maillist - [email protected] >To unsubscribe or change subscription options: >https://mail.python.org/mailman/listinfo/tutor -- Sent from my Android device with K-9 Mail. Please excuse my brevity. _______________________________________________ Tutor maillist - [email protected] To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
