An object is an instance (or not)?

Grant Edwards invalid at invalid.invalid
Tue Jan 27 19:23:37 EST 2015


On 2015-01-27, Ned Batchelder <ned at nedbatchelder.com> wrote:
> On 1/27/15 3:12 PM, Mario Figueiredo wrote:
>> This is a follow up from a previous discussion in which it is argued
>> that the following code produces the correct error message terminology,
>> considering that in Python an object is also an instance.
>
> I don't know what the difference is between "object" and "instance".  An 
> object is an instance of a class.  The two words are interchangeable as 
> far as I know.

They are interchangable in recent versions of Python.

--
Grant



More information about the Python-list mailing list