Rad & Dot Net - Digital Warrior

Assorted ramblings (and vents!!) from a techie on the sunny shores of Kenya, East Africa

Friday, January 07, 2005

Python Update

My experiment with Python is moving along excellently. Now I know where the inspiration for the C# foreach construct came from.

The use of indentation to delimit construct scope is also sheer genius. In one stroke the application is easy to read, and you are forced to be organized when the logic is complex for instance with nested loops, if statements and so on.

Another interesting thing is that everything is an object, including functions! Whoa!

Python can import a particular class or function from a module (package / namespace). So from the sys (system) module you can import just the argv (arguments) object. This may not be a big deal for desktop apps but when someone gets round to porting python for use on a phone, the implications will be great.

Also, if python also straddles a fine line between being interpreted and being compiled. In cases where you import from another file or class, compiled code is generated to enhance performance. The kicker thing is this compiled code is cross platform

You can also delete objects from namespaces when you're done with them.

And oh, python is nothing to do with snakes but rather it was named after Monty Python.

However theres some upcoming development going under the delicious name of Boa Constructor. This is an interesting project and as far as I can tell it's a complete IDE for Python written in python.

definitely worth investigation!

As for ability, someone has written a P2P type application in TinyP2P in 15 Lines of Code. Yikes!

0 Comments:

Post a Comment

<< Home