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

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Languages » Jython/Python
Bookmark "python offers dynamic classes" Watch "python offers dynamic classes" New topic

python offers dynamic classes

Steve Fahlbusch

Joined: Sep 18, 2000
Posts: 557

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.

andrew sydor

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

Joined: Sep 18, 2000
Posts: 557

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.
jQuery in Action, 2nd edition
subject: python offers dynamic classes
Similar Threads
Clojure advantages
Beginning Ruby - Questions
learning Python
New Jython book