File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 REST with Spring (video course) this week in the Spring 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: 596

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: 15
Because, Python is very good programming language and have a lot of good libraries for everything.
Steve Fahlbusch

Joined: Sep 18, 2000
Posts: 596

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.
Don't get me started about those stupid light bulbs.
subject: python offers dynamic classes
jQuery in Action, 3rd edition