Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

subtyping in python

Name: Anonymous 2007-02-23 4:54 ID:ggE9MEjw

I've recently started looking into python's OOP functionality. One thing that I don't understand is, what exactly is the point of subtyping in python? It seems like dynamic typing precludes the necessity of the "is-a" relationship.

Name: Anonymous 2007-02-23 6:18 ID:qiBU0KoB

Subclasses inherit the behaviour of the parent class, so you don't need to reimplement all the methods and shit.

Name: Anonymous 2007-02-23 9:27 ID:9wfmvsq/

>>1
Dynamic typing, functionally superior to static typing, doesn't require you to deal with data types much/at all. For example, there are no complex rules on what can you pass or do. Everything is evaluated in real time. x.Hi() is valid everywhere. Then in real time, the system will look for an object x (which, depending on the implementation, should be defined in the current or an outer scope, or it may not even need to exist!), and then depending of its class, it'll call the method Hi, whatever that means. You don't need to subclass anything at all.

The point of subclassing X is to implement "X-with-stuff". Instead of copypasta, try defining a hierarchy of classes where a base class holds the code you'd otherwise have to copypasta. You can also extend existing classes, so if you don't like the list class because you'd like to have an extra method FooBar, you can create class mylist (list) and define FooBar alone.

Thanks to dynamic typing, you don't even need to handle types where you'd inevitably need to in other languages. For example, you can take an object and call on it a method of a completely different class.

Name: Anonymous 2007-02-23 17:28 ID:DRWAiK4P

One word, the forced indentation of code. Thread over.

Name: Anonymous 2007-02-24 12:06 ID:m1vYFh+P

>>4
One abbreviation, GTFO. Dumbass.

Name: Anonymous 2009-01-14 13:29

Have you Read Your SICP today?

Name: Anonymous 2009-03-06 14:43

Real world experience with the language it   cant be funcu   thats japanese for   pink or any   commands requiring an   ever more clever.

Name: Anonymous 2010-12-23 12:39

Name: Anonymous 2012-03-23 23:39

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boyAll work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boyAll work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boyAll work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boyAll work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boyAll work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boyAll work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

Name: DUBS LIBERATION FRONT 2012-03-24 18:27

NON-DUBS SHALL BE CLEANSED FROM THE EARTH!

Name: Sgt.Kabu㓂kiman⍏늫 2012-05-28 22:46

Bringing /prog/ back to its people
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy

Name: Anonymous 2013-08-31 17:09


There was no spiraling, just an explosion of exposition and then suddenly you were supposed to be sympathizing with her. After that the story didn't develop practically anywhere during the route. Maybe that exposition dump had some biased effect on some people after the nothingness of common route, but either way it was terrible story development.

Name: Anonymous 2013-08-31 18:39


 What are these two talking about on such a fine day?

Don't change these.
Name: Email:
Entire Thread Thread List