EuroPython Society Board 2019/2020

2019-08-27 Thread M.-A. Lemburg
For those of you who were not at EuroPython 2019, we’re happy to announce our new board for the next term: - Anders Hammarquist (Treasurer) - Angel Ramboi - Jakub Musko - Marc-André Lemburg (Chair) - Martin Christen (Vice Chair) - Raquel Dou - Silvia Uberti - Stephane Wirtel Together, we’ll head

An "Object" class?

2019-08-27 Thread Cristian Cocos
I know that "Everything is an object in python" as per https://mail.python.org/pipermail/python-list/2015-June/691689.html. Also, I am more-or-less convinced that there is a generic "class" (aka "type") (meta)class (which would be an object, of course). Is there, however, a generic "object" (meta)c

Re: An "Object" class?

2019-08-27 Thread Calvin Spealman
Yes, it is called `object` and `object` is the base class of ALL other classes, including `type`. In fact, it is the only class which does not itself inherit from anything. On Tue, Aug 27, 2019 at 1:35 PM Cristian Cocos wrote: > I know that "Everything is an object in python" as per > https://ma

Re: An "Object" class?

2019-08-27 Thread Cristian Cocos
Thank you! What would be the names of the *class *class, and of the *function *class please? On Tue, Aug 27, 2019 at 1:39 PM Calvin Spealman wrote: > Yes, it is called `object` and `object` is the base class of ALL other > classes, including `type`. In fact, it is the only class which does not >

Re: An "Object" class?

2019-08-27 Thread Calvin Spealman
`type` is the "class" class (type and class are more or less synonymous terms in modern Python). You can find many of Python's implementation types in the `types` library, including `FunctionType`, here: https://docs.python.org/3/library/types.html On Tue, Aug 27, 2019 at 2:19 PM Cristian Cocos

Re: An "Object" class?

2019-08-27 Thread Chris Angelico
On Wed, Aug 28, 2019 at 4:21 AM Cristian Cocos wrote: > > Thank you! What would be the names of the *class *class, and of the *function > *class please? The "class" class is called "type" - or rather, when you use the "class" keyword, you are creating a subclass of "type". There is no built-in na

Re: An "Object" class?

2019-08-27 Thread Terry Reedy
On 8/27/2019 2:19 PM, Cristian Cocos wrote: Thank you! What would be the names of the *class *class, and of the *function *class please? Use type(ob) to get the internal name of the class of an object. Built-in classes that users may need to call in python code are bound to the same name in __