Planet Python RSS
212 subscribers
17K links
Unofficial Planet Python RSS feed from planetpython.org. Maintained by @cfinnberg
Download Telegram
Python Pool: How to solve Type error: a byte-like object is required not ‘str’

Link: https://www.pythonpool.com/type-error-a-byte-like-object-is-required-not-str/?utm_source=rss&utm_medium=rss&utm_campaign=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 w
Martin Fitzpatrick: micro:bit Space Invaders — Playable retro game in just 25 pixels

Link: https://www.mfitzp.com/article/microbit-space-invaders/

How much game can you fit into 25 pixels? Quite a bit it turns out.
This is a mini clone of arcade classic Space Invaders for the BBC micro:bit microcomputer.
Using the accelerometer and two buttons f
Codementor: How To Drag And Drop In Selenium With Python?

Link: https://www.codementor.io/codepoetn/how-to-drag-and-drop-in-selenium-with-python-1ec9pyw1mx

Automating drag and drop in Selenium Python is the need of a devs hour. Stop wasting your time doing it manually and automate the entire process using Selenium with Python.
Codementor: How to implement pagination in Django queryset using limit and offset?

Link: https://www.codementor.io/argo/how-to-implement-pagination-in-django-queryset-using-limit-and-offset-1ecbbokmdt

Django utilises the array slicing syntax of python to implement limit offset. Suppose you have 20 rows in a queryset and you want to access the data in batches of 5.
firstfiverows =...
Matt Layman: Customer Requests - Building SaaS #88

Link: https://www.mattlayman.com/building-saas/customer-requests/

In this episode, I worked on some customer requests now that I’ve finished launching the product. These requests improved the usability of the application in a few spots that were lacking.
The first r
Ben Cook: The quick start guide to plotting histograms in Seaborn

Link: https://jbencook.com/seaborn-histogram/

The histplot() function in Seaborn is a great API for plotting histograms to visualize the distribution of your Pandas columns.
Python Engineering at Microsoft: Python in Visual Studio Code – January 2021 Release

Link: https://devblogs.microsoft.com/python/python-in-visual-studio-code-january-2021-release/

We are pleased to announce that the January 2021 release of the Python Extension for Visual Studio Code is now available. You can download the Python extension from the Marketplace, or install it dire
Red Hat Developers: Knowledge meets machine learning for smarter decisions, Part 2

Link: https://developers.redhat.com/blog/2021/01/22/knowledge-meets-machine-learning-for-smarter-decisions-part-2/

Red Hat Decision Manager helps organizations introduce the benefits of artificial intelligence to their daily operations. It is based on Drools, a popular open source project known for its powerful ru
Codementor: The Most Detailed Selenium WebDriver Tutorial With Python

Link: https://www.codementor.io/himanshuseth/the-most-detailed-selenium-webdriver-tutorial-with-python-1eddpfbxps

This is a comprehensive Selenium WebDriver Tutorial With Python. You'll learn how to set up Selenium WebDriver with Python, how to do automation testing using Selenium WebDriver with Python, and more!
Andre Roberge: Contest: 3 submitters, 3x3 entries, 3 days left

Link: https://aroberge.blogspot.com/2021/01/contest-3-submitters-3x3-entries-3-days.html

 The contest I announced for Friendly-traceback has resulted in a total of  nine entries so far from three different programmers.  Two of the cases submitted have already been fixed in the development
Real Python: The Real Python Podcast – Episode #44: Creating an Interactive Online Python Conference for PyCascades 2021

Link: https://realpython.com/podcasts/rpp/44/

How do you create a virtual conference that retains the interactivity of an in-person event? What are the tools needed for talk submissions, ticketing, and live hosting? Can you find those tools writt
Stack Abuse: How to Iterate Over a Dictionary in Python

Link: https://stackabuse.com/how-to-iterate-over-a-dictionary-in-python/

Introduction
Dictionaries are one of the most used data structures in all of software development, and for a good reason. They allow us to store our data in neat key, value pairs, which in turn gives
Python Pool: NumPy.ndarray object is Not Callable: Error and Resolution

Link: https://www.pythonpool.com/numpy-ndarray-object-is-not-callable-error-and-resolution/?utm_source=rss&utm_medium=rss&utm_campaign=numpy-ndarray-object-is-not-callable-error-and-resolution

Hello coders!! In this article, we will be learning how to fix the error ‘NumPy.ndarray object is not callable’ and will also look at what exactly causes this error. We know that NumPy is an inbuilt P
Ben Cook: Installing packages in a Jupyter notebook

Link: https://jbencook.com/install-packages-jupyter-notebook/

This post describes a trick for installing/upgrading Python packages in a Jupyter notebook. It's useful for scratch code, but don't do this when you need reproducible code.
Python Morsels: Customizing the String Representation of your Objects

Link: https://www.pythonmorsels.com/topics/customizing-string-representation-your-objects/




Related Topics:

String Concatenation and String Interpolation
Python's Two Different String Representations
String Representations for Classes
What are Dunder Methods?

Transcript:
Let's talk abou
Andre Roberge: Friendly contest: two days left after a surge of submissions

Link: https://aroberge.blogspot.com/2021/01/friendly-contest-two-days-left-after.html

This is just a quick update.Yesterday, the number of valid entries jumped from 9 to 23. Many of them have given me ideas on how to make Friendly-traceback better at finding the cause of the error but
Python Pool: Best Ways to Normalize Numpy Array

Link: https://www.pythonpool.com/normalize-numpy-array/?utm_source=rss&utm_medium=rss&utm_campaign=normalize-numpy-array

Hello geeks and welcome in this article, we will cover Normalize NumPy array. You can divide this article into 2 sections. In the 1st section, we will cover the NumPy array. Whereas in the second one,
Ben Cook: The PyTorch softmax() function

Link: https://jbencook.com/pytorch-softmax/

You can use the top-level torch.softmax() function from PyTorch for your softmax activation needs.
Matt Layman: Which Django Version Should I Use?

Link: https://www.mattlayman.com/blog/2021/which-django-version/

Django is a big and popular web framework for Python to help you build a web app. Which Django version should you use?
If you’re starting a Django web app, use the latest version of Django available.
Weekly Python StackOverflow Report: (cclx) stackoverflow python report

Link: http://python-weekly.blogspot.com/2021/01/cclx-stackoverflow-python-report.html

These are the ten most rated questions at Stack Overflow last week.Between brackets: [question score / answers count]Build date: 2021-01-23 22:20:09 GMTWhat are "soft keywords"? - [44/3]Remove triplet