Fork me on GitHub

  1. What is __init__.py ?

    July 28, 2013

    Okay yet another useful post. This post is really important and useful for anyone just starting out with python. So what is the __init__.py file ?

    Files name __init__.py are used to mark directories on disk as Python package directories. If you have the files

    mydir/spam/__init__.py ...
    read more
  2. The with statement

    July 28, 2013

    So the chances are that you already know about the with statement but some of us do not know about it. Lets face the reality the with statement saves us a lot of time and reduces our code base. Just imagine you are opening a file width python and then ...

    read more
  3. A simple python server

    July 28, 2013

    I guess it's not a simple python server. It is really simple and easy to deploy python server. Just imagine you want to share a folder on your pc with someone on your network. What you will do ? Obviously you will start the sharing service but what if you ...

    read more
  4. In-place value swapping

    July 28, 2013

    Okay so this is kinda new for some of us. If you are a seasoned programmer then this might not be surprising for you but if you are a new programmer then this is something you really need to know. Okay so here we go. In normal situations if you ...

    read more
  5. The beginning of a new blog.

    July 28, 2013

    Hi there, Today i am beginning my very own personal blog related to python. Let me first tell you who i am. I am a computer programmer from Pakistan. I have made a lot open source contributions. I have contributed mainly to youtube-dl.It's a python script which allows ...

    read more

« Page 9 / 9