BlogGalleryAbout meContact
Jaganadh's bookshelf: read

Python Text Processing with NTLK 2.0 CookbookPython 2.6 Text Processing Beginners Guide

More of Jaganadh's books »
Jaganadh Gopinadhan's  book recommendations, reviews, quotes, book clubs, book trivia, book lists
Ubuntu GNU/Linux I am nerdier than 94% of all people. Are you a nerd? Click here to take the Nerd Test, get nerdy images and jokes, and write on the nerd forum! Python

Bangalore

Python3 is wonderful


See the below given Python code. What do you think!! will it be executed without throwing errors or not?

####Code begin#####################
    import sys

    def പണിയെടുക്കൂ ( പാഠം):
        for വരി in പാഠം:
            print( വരി )


    വരവ് = sys.argv[1]

    മൊത്തം = open(വരവ്,'r').readlines()

    പണിയെടുക്കൂ(മൊത്തം)

######## Code End ######################

Don't scratch your head it will. If you use Python3 for running the code.

Save the code as test.py. Install Python3 . Run the program as python3 test.py <your file>

I just saw some new Python documentation for Python3 with some similar examples. Thanks to Santhosh Thottingal SMC for pointing the link. Then I decided to experiment with it.

Wow great in Python3 you can declare variable names function names in your local language. But you wont get the Python reserved words in in your language. I think Python is the first programming language which provides such a great facility.


Related Entries:
Book Review: Python 2.6 Text Processing Beginner's Guide by Jeff McNei
Again Python programming in Malayalam
Python3 ZWJ and Malayalam; some doubts
Using Yahoo! Term Extractor web service with Python
Python workshop at Kongu Engineering College, Perundurai
Comments (4)  Permalink

Comments

ചെലക്കാണ്ട് പോടാ @ 05.10.2009 04:36 GMT
വേരിയബിള്‍സ് അല്ലാതെ കോഡ് സിന്റാക്സ് മലയാളത്തില്‍ പറ്റുമോ.....
jaganadhg @ 05.10.2009 07:44 GMT
അത് നടപ്പുള്ള കാര്യമല്ല . വേരിയബിളിന്റെ പേരുകള്‍ ഫങ്ഷന്റെ പേരുകള്‍ ഇവ മലയാളത്തിലോ ഏത് ഭാഷയിലോ വേണമെങ്കില്‍ കൊടുക്കാം .
payday @ 05.10.2009 07:57 GMT
I have experiences in programming since I am taking up Computer studies. We have not taken up yet this language but it is kind of hard to understand as I see it. Well, anyway I hope we will take up this and learn this language. Because I am interested on how this works and what it can do.
burgersmoke @ 28.10.2009 09:56 GMT
i had no idea this was supported in python3. fascinating. i've been waiting for this moment in programming!
No new comments allowed (anymore) on this post.