[Tutor] Good approach regarding classes attributes

Juan Christian juan0christian at gmail.com
Sun Sep 7 05:00:15 CEST 2014


I'm writing a program that have a 'User' class. This class will have the
following attributes:

1. id
2. personaname
3. lastlogoff
4. profileurl
5. avatar
6. realname
7. timecreated
8. loccountrycode

I'm thinking about writing something like that: http://pastebin.com/7KHB2qQ8

Is it a good approach, is this phytonic?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20140907/761d7696/attachment.html>


More information about the Tutor mailing list