an oop question
Julieta Shem
jshem at yaxenu.org
Thu Nov 3 08:57:57 EDT 2022
Chris Angelico <rosuav at gmail.com> writes:
> On Thu, 3 Nov 2022 at 21:44, Alan Gauld <learn2program at gmail.com> wrote:
>> Also Python is not a purely OOP language, in that you can write
>> functional and procedural code in Python if you wish. In
>> Smalltalk thats notionally impossible because everything
>> is an object. And all programming statements are messages
>> to objects.
>
> In Python, everything is an object. Doesn't that equally mean that
> Python is purely OOP?
I think Alan Gauld pointed out that even syntax is an object in
Smalltalk --- or was. An if-statement in Python is not an object.
More information about the Python-list
mailing list