Planet Python RSS
214 subscribers
17K links
Unofficial Planet Python RSS feed from planetpython.org. Maintained by @cfinnberg
Download Telegram
ItsMyCode: TypeError: only size-1 arrays can be converted to python scalars

Link: https://itsmycode.com/typeerror-only-size-1-arrays-can-be-converted-to-python-scalars/

We get this error generally while working with NumPy and Matplotlib. If you have a function that accepts a single value, but if you pass an array instead, you will encounter TypeError: only size-1 arr
PyCharm: PyCharm 2021.3.2 Is Out

Link: https://blog.jetbrains.com/pycharm/2022/01/2021-3-2/

Bug fixes highlighted in this second minor release of PyCharm 2021.3:
We fixed the IDE’s freeze while indexing WSL projects [IDEA-286059]We fixed a bug with Python string literals that were treated as
Real Python: Draw the Mandelbrot Set in Python

Link: https://realpython.com/mandelbrot-set-python/

This tutorial will guide you through a fun project involving complex numbers in Python. You’re going to learn about fractals and create some truly stunning art by drawing the Mandelbrot set using Pyth
Python Morsels: Supporting index and key lookups

Link: https://www.pythonmorsels.com/topics/supporting-index-and-key-lookups/




In Python, you can customize how square brackets ([]) work on your objects.
Index and key lookups both use square brackets
Lists in Python support indexing using square brackets:
>>> colors = ["pur
PyCharm: PyCharm 2022.1 EAP is open!

Link: https://blog.jetbrains.com/pycharm/2022/01/pycharm-2022-1-eap-is-open/

It’s that time of the year when we count on your early feedback to help us prepare for the next major PyCharm release. The Early Acces Program (EAP) is designed to give our users and community members
Test and Code: 178: The Five Factors of Automated Software Testing

Link: https://testandcode.com/178

"There are five practical reasons that we write tests. Whether we realize it or not, our personal testing philosophy is based on how we judge the relative importance of these reasons." - Sarah Mei
Thi
Django Weblog: Django security releases issued: 4.0.2, 3.2.12, and 2.2.27

Link: https://www.djangoproject.com/weblog/2022/feb/01/security-releases/

In accordance with our security release policy, the Django team
is issuing
Django 4.0.2,
Django 3.2.12, and
Django 2.2.27.
These release addresses the security issues detailed below. We encourage all
Zero to Mastery: Python Monthly Newsletter 💻🐍 January 2022

Link: https://zerotomastery.io/blog/python-monthly-newsletter-january-2022/?utm_source=python-rss-feed

26th issue of the Python Monthly Newsletter! Read by 20,000+ Python developers every month. This monthly Python newsletter covers the latest Python news so that you stay up-to-date with the industry a
Real Python: Python's len() Function

Link: https://realpython.com/courses/pythons-len-function/

In many situations, you’ll need to find the number of items stored in a data structure. Python’s built-in function len() is the tool that will help you with this task.
There are some cases in which th
Python for Beginners: Arithmetic Sequence In Python

Link: https://www.pythonforbeginners.com/basics/arithmetic-sequence-in-python

You might have heard about arithmetic sequences and geometric sequences in your mathematics classes. In this article, we will discuss arithmetic sequences. We will also implement programs to perform d
PyCharm: Tutorial: Developing FastAPI Applications using K8s & AWS

Link: https://blog.jetbrains.com/pycharm/2022/02/tutorial-fastapi-k8s-aws/

We’re happy to announce the new PyCharm Guide tutorial by Mukul Mantosh, this time on FastAPI, Kubernetes, and AWS. In the video below he talks to Paul Everitt and shares a sneak peek at what you shou
PyCoder’s Weekly: Issue #510 (Feb. 1, 2022)

Link: https://pycoders.com/issues/510

#510 – FEBRUARY 1, 2022 View in Browser » What Is a JIT and How Can Pyjion Speed Up Your Python? How can you can speed up Python? Have you thought of using a JIT (Just-In-Time Compiler)? This we
ItsMyCode: TypeError: can only concatenate str (not “int”) to str

Link: https://itsmycode.com/typeerror-can-only-concatenate-str-not-int-to-str/

In Python, we can concatenate values if they are of the same type. Let’s say if you concatenate a string and an integer you will get TypeError: can only concatenate str (not “int”) to str
In this arti
PyCharm: Free course: Static Sites with Sphinx and Markdown

Link: https://blog.jetbrains.com/pycharm/2022/02/static-sites-with-sphinx/

We are happy to announce the new Static Sites with Sphinx and Markdown Course, resulting from the partnership between PyCharm (through Paul Everitt) and Talk Python. This is a free course that will te
Python⇒Speed: Finding leaked secrets in your Docker image with a scanner

Link: https://pythonspeed.com/articles/docker-secret-scanner/

If you’re not careful, you can end up with a private SSH key, AWS access token, or password embedded in your Docker image.
That means anyone who access the image will be able to get that secret, and p
ItsMyCode: TypeError: ‘builtin_function_or_method’ object is not subscriptable

Link: https://itsmycode.com/builtin-function-or-method-object-is-not-subscriptable/

In Python, Built-in functions are not subscriptable, if we use the built-in functions as an array to perform operations such as indexing, you will encounter TypeError: ‘builtin_function_or_method’ obj
Real Python: Using Python's pip to Manage Your Projects' Dependencies

Link: https://realpython.com/what-is-pip/

The standard package manager for Python is pip. It allows you to install and manage packages that aren’t part of the Python standard library. If you’re looking for an introduction to pip, then you’ve
Python for Beginners: Fibonacci Series In Python

Link: https://www.pythonforbeginners.com/basics/fibonacci-series-in-python

You might have heard about different types of series of numbers. In this article, we will discuss such a series named the Fibonacci series. The Fibonacci series has a lot of significance in financial