Python Morsels: Passing functions as arguments to other functions
TranscriptIn Python you can pass a function to another function as an argument.Passing a function as an argumentWe have a list of strings represent fruit names:>>> fruits = ['kumquat',...
View ArticlePython for Beginners: Implement Deque in Python
Deque or doubly ended queues are linear data structures with which we can perform last in first out (LIFO) operations as well as first in first out (FIFO) operations. Deques have many applications in...
View ArticleRead the Docs: Read the Docs newsletter - June 2021
Welcome to a new edition of our monthly newsletter, where we openly share the most relevant updates around Read the Docs, offer a summary of new features we shipped during the previous month, and share...
View ArticleTest and Code: 156: flake8: Python linting framework with pyflakes,...
flake8 is a command-line tool for linting Python projects. By default, it includes lint checks provided PyFlakes, PyCodeStyle, and McCabe It's also a platform, and allows plugins to extend the checks....
View ArticleStack Abuse: Searching and Replacing Words in Python with FlashText
IntroductionIn this tutorial, we'll explain how to replace words in text sequences, with Python using the FlashText module, which provides one of the most efficient ways of replacing a large set of...
View ArticleStack Abuse: Template Method Design Pattern in Python
IntroductionThe software engineering process often reveals to us many redundant elements inside the structure and code of our software. Knowing this, some of the primary responsibilities of a developer...
View ArticleeGenix.com: Python Meeting Düsseldorf - 2021-06-09
The following text is in German, since we're announcing a regional user group meeting in Düsseldorf, Germany.AnkündigungDas Python Meeting Düsseldorf findet dieses Mal online statt. 09.06.2021 18:00...
View ArticleReal Python: The Real Python Podcast – Episode #63: Create Web Applications...
What if you could create an application and deploy it to the web with just Python? Wouldn't it be nice to skip the additional full-stack development steps of learning three different languages in...
View Articledeath and gravity: When to use classes in Python? When your functions take...
Are you having trouble figuring out when to use classes or how to organize them?Have you repeatedly searched for "when to use classes in Python", read all the articles and watched all the talks, and...
View ArticlePyCon: PyCon US 2021 Recordings are complete!
The PyCon US 2021 recordings are available on our YouTube channel. Be sure to subscribe to our channel for notifications of new content. This channel will be used for all future conferences in order...
View ArticleAI Pool: Custom loss in Keras
What is the best way of creating a custom loss in Keras ? How is the gradient going to be computed or do I have to provide the gradients also?...
View ArticleAI Pool: Partial Convolution in Keras or in Tensorflow
There is a paper, which explains how you can avoid having holes in your segmentation mask. Is there an implementation in TensorFlow or in Keras ? https://arxiv.org/pdf/1811.11718.pdf ...
View ArticleAI Pool: What does logits mean in Tensorflow?
I'm checking out the loss functions of TensorFlow, and the majority of them have logits as a parameter. What does it mean?...
View ArticleWeekly Python StackOverflow Report: (cclxxviii) stackoverflow python report
These are the ten most rated questions at Stack Overflow last week.Between brackets: [question score / answers count]Build date: 2021-06-05 14:32:08 GMTHow to extract country from a string in python -...
View ArticlePython Software Foundation: The 2021 Python Language Summit: What Should I...
At the 2021 Python Language Summit, Eric Snow gave a presentation about how core developers can receive guidance to help them work on improvements to the language that will bring the most benefit to...
View ArticlePython Software Foundation: The 2021 Python Language Summit
Every year, a small group of core developers from Python implementations such as CPython, PyPy, Jython, and more come together to share information, discuss problems, and seek consensus in order to...
View ArticleTalk Python to Me: #319: Typosquatting and Supply Chains Vulnerabilities
One of the true superpowers of Python is the libraries over at the Python Package Index. They are all just a "pip install" away. Yet, like all code that you run on your system, it is done with some...
View ArticlePython Software Foundation: The 2021 Python Language Summit: Fuzzing and...
At the 2021 Python Language Summit, Zac Hatfield-Dodds gave a presentation about fuzzing and testing with Python properties. This presentation tied in with the one he gave at the 2020 Python Language...
View ArticleMike Driscoll: PyDev of the Week: Fernando Masanori
This week we welcome Fernando Masanori (@fmasanori) as our PyDev of the Week! Fernando is a Professor at FATEC São José dos Campos in Brazil. He is the creator of the first Brazilian MOOC to teach...
View ArticleStack Abuse: Python's itertools – count(), cycle() and chain()
IntroductionPython has a lot of built-in tools that allow us to iterate and transform data. A great example is the itertools module, which offers several convenient iteration functions. Each of these...
View Article