object types, mutable or not?

Steven D'Aprano steve+comp.lang.python at pearwood.info
Wed May 16 10:06:30 EDT 2018


On Wed, 16 May 2018 09:23:02 -0400, Ned Batchelder wrote:

> I've also experimented with different ways to better say "everything is
> an object".  One possibility is, "any right-hand side of an assignment
> is an object," though that is a bit tortured.

What if there's no assignment?

> Now I'm thinking of trying, "Any piece of data is an object."

Is None data? How about True and False?

Surely object() isn't data... and if it is, what about len?

*wink*

-- 
Steve




More information about the Python-list mailing list