Quantcast
Channel: Code4Reference » Python
Browsing latest articles
Browse All 9 View Live

Simple Python script to access Excel file meta-data/data

Recently I got interested in Python programming actually this was my first scripting language and its really a handy tool. I would like to share a small code which  can access Excel(*.xls) file.  I am...

View Article



Python package/library source code browsing.

Recently I moved to new project where the programming language was Python. I often get confused about what module do I need to import ? what is the signature of the method/function? etc. I also tried...

View Article

A simple Python program to find and replace text string

A little while ago I was trying to port my blogs from Blogger.com to code4reference.com. But when I tried to port the blog, I noticed that the code section of my blog contained <br/> HTML tags...

View Article

How to read environment variable in 5 different languages?

In code development, be it one or the other requirement, we need to access the environment variable. In this post, the environment variable will be read/set in 5 different programming languages. C...

View Article

Python MySQLdb cursor error.

I had used MySQLdb in past to interface with MySQL database. Most of the time I had used cursorclass=MySQLdb.cursors.DictCursor for getting the result as dictionary but today I wanted to get the...

View Article


How to install Python2.7 on Ubuntu 10.04

Sometimes it’s require to install python2.7 on Ubuntu 10.04 which has python2.6 pre-installed, because some of the libraries are not compatible with python2.6 and they can work well if system has...

View Article

Simple Python script to send an email.

Programmatically sending an email is really a good tool for developer’s paraphernalia. This is really handy when one automates task and wants to get notified by an email for success or failure. Lately...

View Article

Command to recursively delete files

We often need command to recursively delete files from the current and sub-directories. Most of us execute the following command to do so. But to our utter surprise we find that it does not delete...

View Article


Tutorial on Python virtual environment

As the name suggests, it is a Python environment which is isolated from other python environments. This kind of environment is really handy when you are working on multiple projects but you don’t want...

View Article

Browsing latest articles
Browse All 9 View Live




Latest Images