Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Python (http://www.velocityreviews.com/forums/f43-python.html)
-   -   Re: Getting a list of an object's methods? (http://www.velocityreviews.com/forums/t318804-re-getting-a-list-of-an-objects-methods.html)

Michele Simionato 06-24-2003 05:18 PM

Re: Getting a list of an object's methods?
 
Alexander Schmolck <a.schmolck@gmx.net> wrote in message news:<yfsadc86dg9.fsf@black132.ex.ac.uk>...
> Now I have no idea what the hell a "member" is supposed to be (inspect's docu
> won't tell you and the only sense in which it occurs in the language ref is
> that of set membership (i.e. qualfiying __contains__)), so my guess is that
> it's just some ad hoc synonym for attribute (not that I remember stumbling
> across a clear definition of attribute anywhere, either).
>
> "Member" better have *some* reasonably well-defined meaning, because unlike
> `dir` which is supposed to just give a "convinient" overview of an objects
> content in interactive session, AFAICT `inspect.getmembers` is meant to be
> used for programming. I somehow prefer my programs to have well-defined
> meanings.
>
> So if no-one enlightens me, I shall file a bug report.
>
>
> 'as


Do you mean a documentation bug report? I do agree with you that a
non-ambiguous definition of "member" should be given in the language
reference. At the present it seems that metaclass methods are not
considered "members" of the instance class: if this is the case,
it should be documented. On the other hand, if this is not the case,
then inspect.getmember is buggy.


Michele


All times are GMT. The time now is 01:30 PM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57