Planet Python RSS
214 subscribers
17K links
Unofficial Planet Python RSS feed from planetpython.org. Maintained by @cfinnberg
Download Telegram
Ben Cook: TorchVision transforms

Link: https://jbencook.com/torchvision-transforms/

TorchVision, a PyTorch computer vision package, has a great API for image pre-processing in its torchvision.transforms module. This post gives some basic usage examples, describes the API and shows yo
Ned Batchelder: Machete mode: tagging frames

Link: https://nedbatchelder.com/blog/202103/machete_mode_tagging_frames.html

I had a puzzle about Python execution today, and used a
machete-mode debugging trick to figure it
out. If you haven’t heard me use the term before, machete mode is when you use
gross temporary code t
Weekly Python StackOverflow Report: (cclxvii) stackoverflow python report

Link: http://python-weekly.blogspot.com/2021/03/cclxvii-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-03-20 19:43:26 GMTAttributeError: can't set attribute when connect
Talk Python to Me: #308 Docker for Python Developers (2021 Edition)

Link: https://talkpython.fm/episodes/show/308/docker-for-python-developers-2021-edition

Docker is one of the core elements of developing Python applications in consistent ways as well as running them across different hardware universally. On this episode, you'll meet Peter McKee from Doc
ABlog for Sphinx: ABlog Configuration Options

Link: https://ablog.readthedocs.org/manual/ablog-configuration-options/



This post describes ABlog configuration options that go in Sphinx build configuration file.

General options


blog_path
A path relative to the configuration directory for blog archive pages.
Defaul
Evennia: Where do I begin? (repost)

Link: http://evennia.blogspot.com/2021/03/this-is-repost-of-article-i-originally.html

This is a repost of an article I originally wrote for the Imaginary Realities e-zine, Volume 7, issue 3 back in 2015. It's not Evennia-specific but meant for a wider audience interested in making a te
ABlog for Sphinx: ABlog v0.10.14 released

Link: https://ablog.readthedocs.org/release/ablog-v0.10-released/#ablog-v0-10-14-released

ABlog v0.10.14 released
Python Circle: Multiple language support in Django application: Internationalization in Django

Link: https://pythoncircle.com/post/745/multiple-language-support-in-django-application-internationalization-in-django/

Multiple language support in Django application, translation of Django application, Django admin site translation, Model and field keys language translation in Django application, Translating your Dja
Python Pool: Best Ways to Use Python String __contains__() Method

Link: https://www.pythonpool.com/python-string-__contains__/?utm_source=rss&utm_medium=rss&utm_campaign=python-string-__contains__

Introduction
There are many ways to check if the substring is present on the main string in python in python. In that, one of the methods is Python String __contains__(). This method is used to check
Python Pool: How to Convert Numpy Array to Pandas Dataframe

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

Introduction
In python, there are many ways to convert a numpy array to a pandas dataframe. But, sometimes we are asked to solve with particular methods. So In this tutorial, we will be seeing all the
Python Pool: Prime Factorization | How to Find Prime Factors of a Number in Python

Link: https://www.pythonpool.com/prime-factorization-python/?utm_source=rss&utm_medium=rss&utm_campaign=prime-factorization-python

Introduction
In this article, we will see a python program to print all the prime factors of the given number. If a number is a prime number and perfectly divides the given number then that number is
Python Pool: How to Start Using Numpy logspace() Method in Python

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

What is numpy logspace?
The Numpy logspace() function returns or creates the array by using the numbers that are evenly separated on a log scale. In the linear space, the sequence basically starts at
Mike Driscoll: PyDev of the Week: John Sheehan

Link: https://www.blog.pythonlibrary.org/2021/03/22/pydev-of-the-week-john-sheehan/

This week we welcome John Sheehan (@JennaSys) as our PyDev of the Week. John is the author of React to Python. You can see what John has been up via his website or on his Github profile.
Let’s spend s
Stack Abuse: How to Print Colored Text in Python

Link: https://stackabuse.com/how-to-print-colored-text-in-python/

Introduction
It's typical for CLI apps to return text in the same color of the terminal. There are always cases when we want to highlight output to the user, for example, a warning or error message. I
Real Python: Build an Asteroids Game With Python and Pygame

Link: https://realpython.com/asteroids-game-python/

Do you want to create your own computer games but like Python too much to abandon it for a career as a game developer? There’s a solution for that! With the Pygame module, you can use your amazing Pyt
Python Pool: Best Ways to Use Python String __contains__() Method

Link: https://www.pythonpool.com/python-string-__contains__/?utm_source=rss&utm_medium=rss&utm_campaign=python-string-__contains__

Introduction
There are many ways to check if the substring is present on the main string in python in python. In that, one of the methods is Python String __contains__(). This method is used to check