jagomart
digital resources
picture1_Python Oop Pdf 190053 | Pyc05 Oop Dp


 164x       Filetype PDF       File size 0.76 MB       Source: www.aleax.it


File: Python Oop Pdf 190053 | Pyc05 Oop Dp
dp and oop in python objects by design 2005 alex martelli aleaxit gmail com what s oop i dunno what s oop with you alley oop 2 introduction alley oop ...

icon picture PDF Filetype PDF | Posted on 03 Feb 2023 | 2 years ago
Partial capture of text on file.
    DP and OOP in Python
         Objects by Design
    ©2005 Alex Martelli aleaxit@gmail.com
                     What’s OOP?
             I dunno -- what’s OOP with you?
                                           
                                         Alley Oop...?
                                  2
               INTRODUCTION
 Alley Oop made his official "big time" debut in the nation's funny pages on August 7, 1933.
 Not surprisingly, Alley found himself in a jam in the very first panel—lost in the jungles of
 Moo and surrounded by hungry dinosaurs. Within a week of his initial appearance he had
 stumbled upon Dinny, the dinosaur who quickly became his pet and principal means of
 transportation while in Moo. Soon after, he made his way out of the jungle and met up with
 King Guz and his rhyming friend, Foozy. Along the way he met his new girlfriend, Ooola,
 and the King's advisor, the Grand Wizer. 
 Later in his career, Alley Oop was plucked from the Land of Moo by Dr. Wonmug's time
 machine. Dr. Wonmug brought Alley and Ooola to the 20th century, where a new series of
            OOP as delegation
     intrinsic/implicit:
        instance -> class
        class -> descriptors
        class -> base classes
     overt/explicit:
        containment and delegation (hold/wrap)
        delegation to self
     inheritance: more rigid; IS-A...
     hold/wrap: more flexibile; USES-A...
                             3
         Pydioms: hold vs wrap
     “Hold”: object O has subobject S as an 
     attribute (maybe property) -- that’s all
        use self.S.method or O.S.method
        simple, direct, immediate, but coupling on 
        the wrong axis
     “Wrap”: hold (often via private name) plus 
     delegation (so you use O.method)
        explicit (def method(self...)...self.S.method)
        automatic (delegation in __getattr__)
        gets coupling right (Law of Demeter)
                             4
The words contained in this file might help you see if this file matches what you are looking for:

...Dp and oop in python objects by design alex martelli aleaxit gmail com what s i dunno with you alley introduction made his official big time debut the nation funny pages on august not surprisingly found himself a jam very first panel lost jungles of moo surrounded hungry dinosaurs within week initial appearance he had stumbled upon dinny dinosaur who quickly became pet principal means transportation while soon after way out jungle met up king guz rhyming friend foozy along new girlfriend ooola advisor grand wizer later career was plucked from land dr wonmug machine brought to th century where series as delegation intrinsic implicit instance class descriptors base classes overt explicit containment hold wrap self inheritance more rigid is exibile uses pydioms vs object o has subobject an attribute maybe property that all use method or simple direct immediate but coupling wrong axis often via private name plus so def automatic getattr gets right law demeter...

no reviews yet
Please Login to review.