An object is an instance (or not)?
steve+comp.lang.python at pearwood.info
Wed Jan 28 09:48:23 CET 2015
random832 at fastmail.us wrote:
> On Wed, Jan 28, 2015, at 00:43, Devin Jeanpierre wrote:
>> On Tue, Jan 27, 2015 at 9:37 PM, <random832 at fastmail.us> wrote:
>> > Sub itself is not a Sub object, it is a type object. "instance" is
>> > implicit in the phrase "foo object".
>> Yes. Unfortunately, it's still not really completely clear. "Sub
>> instance" would avoid this confusion for everyone.
> It really is completely clear. Nobody is confused but you.
Ironically, your denial of a pretty clear case of ambiguity demonstrates
that if anyone is confused, it is you.
In an earlier thread, Mario demonstrated an obvious example of confusing
error message due to the object/instance ambiguity, where the error message
states that Sub doesn't have a method when it actually does. It is an
*instance of Sub*, not the Sub object itself, which lacks the method.
More information about the Python-list