Python's collections module has specialized container datatypes that can be used to replace Python's general purpose containers. The one that we'll be focusing on here is the namedtuple which you can use to replace Python's tuple. Of course, the namedtuple is not a drop-in replacement as you will soon see. I have seen some programmers […]
I noticed that CodeEval put out a post that Python is their most popular programming language for 5 years in a row! Admittedly, their Python usage has dropped 14% while others have gained, but Python has still managed to stay in the lead.
This week we welcome Hynek Schlawack (@hynek) as our PyDev of the Week! Hynek is an avid member of the Python community and a fellow of the Python Software Foundation. He has contributed to many projects and writes his own Python blog. Let's spend some time getting to know him better! Can you tell us […]
I am happy to announce my latest project, which is the sequel to my Python 101 book: Python 201 - Intermediate Python. I am launching a Kickstarter campaign to help fund its publication so if you're interested in supporting, you can do so here: https://www.kickstarter.com/projects/34257246/python-201-intermediate-python If you already know the basics of Python and now […]
This week we welcome Chris Moffitt (@chris1610) as our PyDev of the Week! Chris has been an active writer about Python on his blog and a speaker at DjangoCon. Let's spend a few moments getting to know him better. Can you tell us a little about yourself (hobbies, education, etc): I currently live near St. […]
One of the first items you learn as a beginner Python programmer is how to import other modules or packages. However, I've noticed that even people who have used Python casually for multiple years don't always know how flexible Python's importing infrastructure is. In this article, we will be looking at the following topics: Regular […]