A tough question that goes through the mind of all web developers. Ruby vs Python. Which one is better? Both of them are popular languages suited for developing web applications. In short, it’s the clash of the Titans.
PIPENV – The Python’s Packaging Tool
Pipenv, the official Python-recommended resource for managing package dependencies, letting us install and uninstall Python packages. Pipenv helped to solve a few problems associated with the typical workflow using pip, virtualenv, and traditional requirements.txt, consolidating and simplifying the development process to a single command line tool.
PyCon India 2014 – Days of Future Past
Banglore cantonment station was busy as usual, Taxi wala blocking passengers with their offers. People running away not to get caught in their trap. Sreekanth, Tevin, Nidhin with me trying best for a taxi and a good bargain. Even though we were tired of the eight hour journey in an over cooled AC coach. Nuventure […]
Executing bash commands via Python 3
In python, executing bash commands can be done using subprocess module. It’s pretty easy to use and it’s a powerful module. For simple commands, we can use subprocess.call Usage: Eg: total 4 -rw-rw-r– 1 tevin tevin 15 Sep 3 15:29 test.txt You can also use subprocess.check_call and subprocess.check_output Popen: For more flexibility, you can use […]
Concept of Mutable & Immutable objects in Python
An Immutable object, in the lime light of object-oriented and functional programming, is an object whose state cannot be modified after it is created. Objects of built-in types like (int, float, bool, str, tuple, unicode) are immutable, A Mutable object, can be mutated or state can be modified after it is created. A mutable object will have at least a single method able to […]