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
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.
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
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.
✍️ Comments
Thank you!
Your comment has been submitted and will be published once it has been approved. 😊
OK