I was tinkering with Python the other day when I encountered the “property” keyword. I had seen it many times before and I sort of knew what it does, but I never really had a chance to dig deep into it. As it turns out, "property" in Python is very useful when you are designing large … Continue reading Understanding Python “Property”
Tag: Python
How To Install PIL On Ubuntu
Let's say you want to play around with images in Python. To do that, we need a Python package that can handle all the image manipulation. Python Imaging Library (PIL) is one of most popular libraries that is used to process the image data. Actually, people use Pillow now, which is a modern repackaged version of … Continue reading How To Install PIL On Ubuntu
Display Caller Of The Current Function In Python
If you have spent enough time coding, then you know where I am going with this. As the code gets bigger, debugging gets trickier. Keeping track of everything becomes difficult, especially when you collaborate with others and your functions are being called by someone else's functions. A lot of times, you may want see where … Continue reading Display Caller Of The Current Function In Python
How To Convert An Existing Django Project To Eclipse Project
So you have a Django project and you want to use Eclipse IDE to modify and control it. When I say "existing Django project", I mean a Django project created without using Eclipse. If you are not sure how to use Eclipse to manage your Python project, you can check out this blog post. You … Continue reading How To Convert An Existing Django Project To Eclipse Project
Non-ASCII Character Syntax Error In Python
So you played around with Python enough to get to this error? Good. Now let's see what happened here. When you copy something and paste it into a .py file, some of the characters may not be copied correctly. Given below is the error Python usually spews out when that happens: SyntaxError: Non-ASCII character … Continue reading Non-ASCII Character Syntax Error In Python
How To Build A Web Crawler?
I was reading an article the other day and I came across the term "web crawler". The context in which it was used got me a little curious about the design of a web crawler. A web crawler is a simple program that scans or "crawls" through web pages to create an index of the … Continue reading How To Build A Web Crawler?
Python Development In Eclipse
As your code gets bigger, effective code management becomes an integral part of your project. This post is about setting up Python development environment in Eclipse. Most of the Python developers will already be aware of this. For those of you who are not, read on. Eclipse is an IDE which supports many different languages. It … Continue reading Python Development In Eclipse
Exploring The Lesser Known Features Of Python – Part II
As it is evident from the title, this is the second part in the Python exploration series. You can find the first part here. I have discussed a few lesser known but very useful features of Python. There were too many features, so I didn't put everything in a single blog post. I will continue discussing more … Continue reading Exploring The Lesser Known Features Of Python – Part II
Exploring The Lesser Known Features Of Python – Part I
I have been fiddling with Python for some time now and I have to tell you, it just keeps getting better and better! Every time I interact with Python, I stumble across something new. There are so many things you can do with it. It is very well documented and most of the material is … Continue reading Exploring The Lesser Known Features Of Python – Part I
Essential Python Tools: virtualenv and pip
A wise man once said 'Necessity is the mother of invention'. But I think the real mother of invention is laziness. If you are lazy enough, you will find an easier way to do a particular thing. In order to solve large problems elegantly, we need to use tools that solve smaller sub-problems very well. … Continue reading Essential Python Tools: virtualenv and pip