[Python-ideas] anonymous object support

Matt Joiner anacrolix at gmail.com
Tue Jul 26 17:02:59 CEST 2011


Thanks both, consider me undoubted.
On Jul 26, 2011 5:20 PM, "Masklinn" <masklinn at masklinn.net> wrote:
>
> On 2011-07-26, at 07:50 , Nick Coghlan wrote:
>
>> On Tue, Jul 26, 2011 at 2:36 PM, Matt Joiner <anacrolix at gmail.com> wrote:
>>> Just as a slight aside, is the special case of type() purely for
convenience?
>>> Aren't the "new-style" ways to do this __class__ and isinstance()?
>>
>> Not really - all three do different things:
>>
>> 1. type(x) always gives you the true metaclass of x
> The true *class*, I think. Although type(type(x)) should give you x's
metaclass.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20110727/496706f2/attachment.html>


More information about the Python-ideas mailing list