Origin of the term "first-class object"

John Roth newsgroups at jhrothjr.com
Tue Nov 18 01:41:28 CET 2003

"Rainer Deyke" <rainerd at eldwood.com> wrote in message
news:wHcub.227649$Tr4.672235 at attbi_s03...
> John Roth wrote:
> > For example, in Python both classes and functions are
> > objects (there are no second class citizens in Python...)
> I would consider variables to be second-class citizens.  You can change
> their value, delete them, and get at the object to which they refer, but
> can't do much else with them.

I think I'd disagree with that. In fact, except for the optimization
within function bodies, I can't think of anything I can't do
with a name that I might want to.

John Roth

More information about the Python-list mailing list