News for hackers. Stuff that matters.
Re:Introduction to Object Oriented Programming in Python by pjmlp on Wednesday October 24, 2018 @05:14PM (#18296461)
I wonder how you manage to do such a feat, given that all Python data types are objects.

    > from inspect import type  
    > type([])
    => <class 'list'>
    > type(lambda x : x)
    => <class 'function'>
    > type(1)
    => <class 'int'>
    > type([x * x for x in [1,2,3]])
    => <class 'list'>
    > type((x * x for x in [1,2,3]))
    => <class 'generator'>
    > ...
Re:Introduction to Object Oriented Programming in Python by ilovecaching on Wednesday October 24, 2018 @07:09PM (#18297265)
We’re talking about style here, not the technical details of the implementation.