wood burning stoves 2.0*
The moose likes Jython/Python and the fly likes python offers dynamic classes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Languages » Jython/Python
Bookmark "python offers dynamic classes" Watch "python offers dynamic classes" New topic
Author

python offers dynamic classes

Steve Fahlbusch
Bartender

Joined: Sep 18, 2000
Posts: 571
    
    7

Greetings All,

For those of you that want to ask, why python??? python offers dynamic classes (among other things) :-)

what this means is that you can create new attributes and new methods on classes you use.

This is quite cool when you need to change the default functionality provided by classes you use.

Be well.

-steve
andrew sydor
Greenhorn

Joined: Oct 20, 2009
Posts: 8
Because, Python is very good programming language and have a lot of good libraries for everything.
Steve Fahlbusch
Bartender

Joined: Sep 18, 2000
Posts: 571
    
    7

Well ok, but you seemed to miss the point of my post.

There are great libraries (no where as good as java) but you can dynamically extend them. Like (what should be) BigIntiger - you want to make a return of a long or even better BigInteger - you can in python on the fly.
 
wood burning stoves
 
subject: python offers dynamic classes