Source

Month in review – Articles and news

Hi folks. In this post I am going to share some great articles which I recently got across. Apart from that I would also be sharing some news relating to Python.

Articles

  1. Python Descriptors 

This IPython notebook was really helpful for me to learn about descriptors and properties in Python. It is topic which is greatly shadowed in a lot of Python books. This Notebook would be really beneficial for you if you want to grasp the concept in an effective and understandable manner.

  1. Using Coroutines for running many functions concurrently

Let me be honest. I never thought of this way before. This article from Brett sheds light on an obscure method of running many functions concurrently. I never saw this being discussed before.

News

  1. Google Code is shutting down

Google code is the host for a number of small Python projects. If you use any library which is hosted on Google code then make sure to back it up because it would be available for long.

2. Invent Your Own Computer Games with Python 3rd Edition

This book from Al Sweigart has helped a number of people to start programming in Python. If you are new then I am sure that it would help you immensely. This is a new edition of the book.

Tip

cdp () {
    cd "$(python -c "import os.path as _, ${1}; \
            print(_.dirname(_.realpath(${1}.__file__[:-1])))"
        )"
}

Put it in your .bashrc or .bash_profile and do cdp <python module name> to get in the directory where the module is defined. This work:

~ $ cdp os
/usr/lib/python2.7 $

~ $ cdp os.path
/usr/lib/python2.7 $

It also works if a virtual environment is active. This tip was taken from Reddit.

If you have any questions don’t forget to ask. The more you ask, the more you learn.

Newsletter

×

If you liked what you read then I am sure you will enjoy a newsletter of the content I create. I send it out every other month. It contains new stuff that I make, links I find interesting on the web, and occasional discount coupons for my book. Join the 5000+ other people who receive my newsletter:

I send out the newsletter once every other month. No spam, I promise + you can unsubscribe at anytime

✍️ Comments

Be the first to leave a comment! 🎉

Say something

Send me an email when someone comments on this post.

Thank you!

Your comment has been submitted and will be published once it has been approved. 😊

OK