Re: Using a subclass for __dict__

2014-02-13 Thread Chris Angelico
On Fri, Feb 14, 2014 at 7:44 AM, Roy Smith wrote: > In article , > Chris Angelico wrote: > >> http://gatherer.wizards.com/Pages/Card/Details.aspx?multiverseid=244695 > > That seems badly specified. What if you kill a cyclops? Or a beholder? That matter was dealt with by Doug Beyer in response

Re: Using a subclass for __dict__

2014-02-13 Thread Roy Smith
In article , Chris Angelico wrote: > http://gatherer.wizards.com/Pages/Card/Details.aspx?multiverseid=244695 That seems badly specified. What if you kill a cyclops? Or a beholder? -- https://mail.python.org/mailman/listinfo/python-list

Re: Using a subclass for __dict__

2014-02-13 Thread Chris Angelico
On Fri, Feb 14, 2014 at 7:07 AM, Demian Brecht wrote: > *Throws keyboard across the office* > > FFS. I could have SWORN I tried that (because I /know/ that a class is > an instance of its metaclass :/). An instance of looking at something > far too long without a fresh set of eyes. This is why we

Re: Using a subclass for __dict__

2014-02-13 Thread Demian Brecht
On Thu, Feb 13, 2014 at 11:10 AM, Peter Otten <__pete...@web.de> wrote: > I don't really understand what you are trying to do in the gist, perhaps you > want > > Even though you've already answered my q

Re: Using a subclass for __dict__

2014-02-13 Thread Peter Otten
Demian Brecht wrote: > Using bases in a metaclass, I've been able to easily figure out when > an attribute is being added to an instance of a class. However, what > I'm /actually/ looking to do is to intercept when attributes are being > added to a class (not an instance of). I thought that I'd be

Using a subclass for __dict__

2014-02-13 Thread Demian Brecht
Hey all, Using bases in a metaclass, I've been able to easily figure out when an attribute is being added to an instance of a class. However, what I'm /actually/ looking to do is to intercept when attributes are being added to a class (not an instance of). I thought that I'd be able to do so by pa