Decorated class question

2012-01-16 Thread deathweaselx86
Pardon me if this is a silly question. If I decorate a class, then subclass it, does my subclass feature whatever the decorator did to my superclass? Thanks in advance. -- http://mail.python.org/mailman/listinfo/python-list

Is there any advantage or disadvantage to using sets over list comps to ensure a list of unique entries?

2011-06-20 Thread deathweaselx86
Howdy guys, I am new. I've been converting lists to sets, then back to lists again to get unique lists. e.g Python 2.5.2 (r252:60911, Jan 20 2010, 21:48:48) [GCC 4.2.4 (Ubuntu 4.2.4-1ubuntu3)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> foo = ['1','2','3']