Non-Programmer’s Tutorial for Python
12th August 2007
Posted in Links, Programming, Python | No Comments »
12th August 2007
Posted in Links, Programming, Python | No Comments »
12th August 2007
To iterate through all the files within the specified directory (folder), with ability to use wildcards (*, ?, and [ ]-style ranges), use the following code snippet:
Read the rest of this entry »
Posted in Programming, Python | 39 Comments »
15th March 2007
Recently I learned about Zope, which is an “open source web application server”, primarily written in Python.
Then Django and Turbogears were seen as web-development frameworks akin to Zope. Search revealed an interesting anti-Zope rant at Zope vs Django. Reading until the end, and then following the comments, I came across the comment by Holger Froebe, which is a huge one (probably the longest comment I had ever seen), and represents a detailed explanation with examples of the reasons to use Zope 3. I found that comment to be a really good-written one, so if you are deciding on whether you should use Zope 3 or not, then read the comment here (scroll down or just search for “Holger Froebe”).
For convenience and in order to preserve this worhty piece of work from vanishing, below is the 99%-exact copy-paste of that comment.
Read the rest of this entry »
Posted in CMS, Programming, Python, Software, Web | 1 Comment »
21st June 2006
Approximately a month ago I endeavoured to use Python as my main shell-scripting language. At that moment, I was already aware of multiple benefits you get when you use Python for scripting:
For the comparison (in speed, memory use, program size) with other computer programming languages, please see the “Computer Language Shootout Benchmarks”. Here I provide the link only to the comparison of Python with Perl and comparison of Python with PHP (which can also be used as shell-scripting language, albeit after some tinkering with settings and stuff)
Below is an example of the 2-minute script in Python, which counts the number of occurrences of some string in a file.
Posted in Programming, Python | 4 Comments »