newbee I have an object how to check what's his class?
Jerry Hill
malaclypse2 at gmail.com
Fri Nov 10 13:32:19 EST 2006
On 11/10/06, consternation <copiernik at wp.pl> wrote:
>
> result:
> isinstance(x,X)
> False
> type(x) is X
> False
> <type 'list'>
> list
I think you need to show us more of your code. Your variable, v, is not of
type X in this example. Instead, it is of type list. What is
self.mem.items()? It isn't a dictionary like your comment seems to imply,
or you would get a TypeError on that line because dictionaries aren't
callable.
Please give us enough sample code that we can actually run it and see what
you're seeing.
--
Jerry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20061110/e8d17a47/attachment.html>
More information about the Python-list
mailing list