An object is an instance (or not)?

Grant Edwards invalid at invalid.invalid
Wed Jan 28 01:23:37 CET 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