Home » Archive

Articles tagged with: python

Web »

[21 Mar 2011 | No Comment | ]
How to use *args and **kwargs in Python

Are there times when you want to specify a variable argument list in Python?
This is possible by using *args and **kwargs.
The special syntax, *args and **kwargs, in a function definition is used to pass a variable number of arguments to a function.
The single asterisk (*args) is used to pass a non-keyword, variable length argument list. The double asterisk (**kwargs) is used to pass a keyword, variable length argument list.

Incoming search terms:python kwargspython **kwargspython kwargs example

Programming, Web »

[13 Mar 2011 | No Comment | ]
Python Date and Time

Adding a date or time to your program is really easy with Python. All you have to do is import date or import time and then use the available method calls.

Most likely though, you are here because you need something more than that. You probably need to convert epoch seconds to a date format. You may want to know how to get the difference between two dates.

Programming »

[20 Feb 2011 | No Comment | ]
How to Learn Python

Question. How do I learn Python? I’m not a programmer and I don’t know any computer languages but I want to start learning Python. How do I do it?

Linux »

[6 Feb 2011 | No Comment | ]
Install Eclipse and PyDev on Ubuntu

Installing Eclipse and PyDev on Ubuntu require some configuration. The process isn’t for the faint of heart. It isn’t a complicated process but it requires a number of steps that you have to do in sequence. The good news is that you only have to do it once.