Planet Python

Planet Python - http://planetpython.org/

Latest articles

Python Pool: How to solve Type error: a byte-like object is required not ‘str’

Hello geeks and welcome, In this article, we will cover Type error: a byte-like object is required, not ‘str.’ Along with that, we will look at the root cause due to which this error occurs. Then we will look at different methods with the help of which we can get rid of this error. The root cause of this error lies in its name. Let us try to dissect...

Matthew Wright: Selecting in Pandas using where and mask

This is the fifth post in a series on indexing and selecting in pandas. If you are jumping in the middle and want to get caught up, here's what has been discussed so far: Basic indexing, selecting by label and locationSlicing in pandasSelecting by boolean indexingSelecting by callable Once the basics were covered in the … Continue reading Selecting...

Mike Driscoll: PySimpleGUI: Working with Multiple Windows

When you are creating graphical user interfaces (GUIs), you will often find that you need to create more than one window. In this tutorial, you will learn how to create two windows with PySimpleGUI. PySimpleGUI is one of the easiest Python GUIs to get started with. It wraps other Python GUIs and gives them a common interface. You can read more about...

Real Python: C for Python Programmers

The purpose of this tutorial is to get an experienced Python programmer up to speed with the basics of the C language and how it’s used in the CPython source code. It assumes you already have an intermediate understanding of Python syntax. That said, C is a fairly limited language, and most of its usage in CPython falls under a small set of syntax...

Python Pool: Demystifying += in Python with Examples

Day by day, Python is becoming easier to write and easily structured. This development creates a better version of Python and allows new developers to have a smooth coding experience. += in Python is one of such things that made Python more enjoyable. Did you know that almost 60% of new Python codes have no idea about +=? += in Python is...

Python Bytes: #217 Use your cloud SSD for fast, cross-process caching

<p>Sponsored by <strong>Linode!</strong> <a href="https://pythonbytes.fm/linode"><strong>pythonbytes.fm/linode</strong></a></p> <p>Special guest: <a href="https://twitter.com/ogimoore"><strong>Ogi Moore</strong></a></p> <p>Watch the <strong><a...

PyCoder’s Weekly: Issue #456 (Jan. 19, 2021)

#456 – JANUARY 19, 2021 View in Browser » Automating Excel File Creation and Distribution With Pandas And Outlook See how a little bit of Python can go a long way to automating manual processes and save businesses valuable time. CHRIS MOFFITT Tracing the Python GIL Lear how to trace and visualize the GIL, how the GIL affects performance, and...

Real Python: Introduction to Sorting Algorithms in Python

Sorting is a basic building block that many other algorithms are built upon. It’s related to several exciting ideas that you’ll see throughout your programming career. Understanding how sorting algorithms in Python work behind the scenes is a fundamental step toward implementing correct and efficient algorithms that solve real-world problems. In this...

Stack Abuse: Python: Catch Multiple Exceptions in One Line

Introduction In this article we're going to be taking a look at the try/except clause, and specifically how you can catch multiple exceptions in a single line, as well as how to use the suppress() method. Both of these techniques will help you in writing more accessible and versatile code that adheres to DRY (don't repeat yourself) principles. Let's...

Django Weblog: Django 3.2 alpha 1 released

Django 3.2 alpha 1 is now available. It represents the first stage in the 3.2 release cycle and is an opportunity for you to try out the changes coming in Django 3.2. Django 3.2 has a mezcla of new features which you can read about in the in-development 3.2 release notes. This alpha milestone marks the feature freeze. The current release schedule...

Discover, share and read the best on the web

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

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