Planet Python - RSS Feed

Planet Python - http://planetpython.org/

Latest articles

scikit-learn: Interview with Norbert Preining, scikit-learn Team Member

Author: Reshama Shaikh , Norbert Preining Norbert Preining joined the scikit-learn Team in June 2021. In this interview, learn more about Norbert’s journey, immersion and passion in open source. His contributions to open source span a lifetime – see where scikit-learn fits...

ItsMyCode: [Solved] AttributeError: module ‘datetime’ has no attribute ‘utcnow’

The AttributeError: module ‘datetime’ has no attribute ‘utcnow’ occurs if you have imported the datetime module and directly if we are using the datetime.utcnow() method on the datetime module.  The datetime is a module, and it does not have the utcnow() method; instead, we need to use the datetime class name, which has the method correct...

ItsMyCode: [Solved] TypeError: cannot unpack non-iterable NoneType object

The TypeError: cannot unpack non-iterable NoneType object occurs when we try to unpack the values from the method that does not return any value or if we try to assign the None value while unpacking the iterables. In this tutorial, we will look into what exactly is TypeError: cannot unpack non-iterable NoneType object and how to resolve the error...

The Python Coding Blog: How to Shuffle a Generator in Python…Without Converting to a List

Can you shuffle a generator in Python without going through a list or other data type first? A quick Google search seems to say no, sort of. I suspect a more in-depth search might yield more results. Excuse the yield pun. But life’s too short for Google searches. So I thought I’d give it a try. What’s the context? I often like to dive randomly...

Talk Python to Me: #366: Optimizing PostgreSQL DB Queries with pgMustard

Does your app have a database? Does that database play an important role in how the app operations and users perceive its quality? Most of you probably said yes to the first, and definitely to the second. But what if your DB isn't doing as well as it should? How would you know? And once you know, what do you do about it? <br/> <br/>...

Python for Beginners: Check For Sorted List in Python

Lists are one of the most used data structures in python. In this article, we will discuss different ways to check for sorted list in python. Table of ContentsHow to Check For a Sorted List in Python?Check For Sorted List in PythonConclusion How to Check For a Sorted List in Python? A sorted list has all its elements...

Real Python: The Real Python Podcast – Episode #110: Advantages of Protobuf for Serialization in Python

Would you like a way to send structured serialized data between different platforms and languages? What if the data was self-documenting, could automatically generate Python code, and would validate itself? This week on the show, Liran Haimovitch talks about protocol buffers and communicating with microservices through Remote Procedure Calls (RPC)....

Mike Driscoll: How to do a Simple Cache with Python and functools (Video)

Learn how to use Python's amazing standard library to add caching to your functions. In this video tutorial, you will learn how to use functools.cache to add caching to a function If you'd like to learn more about the functools module, you can check out this other video of mine: The post How to do a Simple Cache with Python and functools (Video)...

PyBites: Learn by building, how we built our own collaboration tool in Django

Listen now: In this episode we tell the story about Pybites CMS, our new powertool we use to better streamline our business. We tell why we built it, how it was an opportunity for Julian to brush up his coding skills, how we applied the PDM philosophy of learning by building, scratching your own itch. Join...

Mike Driscoll: How to Create a Command-line Application with argparse

When you are creating an application, you will usually want to be able to tell your application how to do something. There are two popular methods for accomplishing this task. You can make your application accept command-line arguments or you can create a graphical user interface. Some applications support both. Command-line interfaces are helpful...

Discover, share and read the best on the web

Follow RSS Feeds, Blogs, Podcasts, Twitter searches, Facebook pages, even Email Newsletters! Get unfiltered news feeds or filter them to your liking.

Get Inoreader
Inoreader - Follow RSS Feeds, Blogs, Podcasts, Twitter searches, Facebook pages, even Email Newsletters!