Issue #388

Python Generators How-To, Python vs Java/Julia/Matlab/IDL, CPython 3.8 RC, and More

Oct. 1, 2019

Python Generators How-To, Python vs Java/Julia/Matlab/IDL, CPython 3.8 RC, and More
#388 – OCTOBER 1, 2019 VIEW IN BROWSER
The PyCoder’s Weekly Logo
How to Use Generators and Yield in Python
Learn about generators and yielding in Python. You’ll create generator functions and generator expressions using multiple Python yield statements. You’ll also see how to build data pipelines that take advantage of these Pythonic tools.
REAL PYTHON

Comparison of Python, Julia, Matlab, IDL and Java
“We use simple test cases to compare various high level programming languages. We implement the test cases from an angle of a novice programmer who is not familiar with the optimization techniques available in the languages. The goal is to highlight the strengths and weaknesses of each language but not to claim that one language is better than the others.”
NASA.GOV

Become a Python Guru With PyCharm
PyCharm is the Python IDE for Professional Developers by JetBrains providing a complete set of tools for productive Python, Web and scientific development. Be more productive and save time while PyCharm takes care of the routine →
JETBRAINSsponsor

Regex Performance in Python
“Working with regex, you have to understand what you are doing: the regex engine for Python, the type of statement you are writing, and alternative tools that are available for your purposes. Yes, there are instances when the re package may not be the best tool to use.”
JUN WU

PEG at the Core Developer Sprint
“Every year for the past four years a bunch of Python core developers get together for a week-long sprint at an exotic location. These sprints are sponsored by the PSF as well as by the company hosting the sprint.”
GUIDO VAN ROSSUM

Mypy 0.730 Released
Mypy 0.730 is out, with prettier, colored output and error code support, along with many other fixes and improvements.
MYPY-LANG.BLOGSPOT.COM

Django Bugfix Releases: 2.2.6, 2.1.13 and 1.11.25
DJANGOPROJECT.COM


Discussions


Python 3.8.0 Release Candidate Due Today
ŁUKASZ LANGA

If Someone Told You They “Know Python” What Would You Expect Them to Know?
REDDIT

Do You Need to Know Math to Be a Programmer?
REDDIT


Python Jobs


Backend Developer
3DSIGNALS 📍 KFAR SABA, ISRAEL

More Python Jobs >>>


Articles & Tutorials


Preventing SQL Injection Attacks With Python
SQL injection attacks are one of the most common web application security risks. In this step-by-step tutorial, you’ll learn how you can prevent Python SQL injection. You’ll learn how to compose SQL queries with parameters, as well as how to safely execute those queries in your database.
REAL PYTHON

Rectified Adam (RAdam) Optimizer With Keras
Learn how to use Keras and the Rectified Adam optimizer as a drop-in replacement for the standard Adam optimizer, potentially leading to a higher accuracy model (and in fewer epochs).
ADRIAN ROSEBROCK

Python Developers Are in Demand on Vettery
Vettery is an online hiring marketplace that’s changing the way people hire and get hired. Ready for a bold career move? Make a free profile, name your salary, and connect with hiring managers from top employers today →
VETTERYsponsor

Simple Introduction to StringIO and BytesIO in Python
“For some reason IO streams are a totally underused feature that rarely comes up in most code. We all know that memory if faster than disk IO, this is what I use IO streams for.”
DANIEL BEACH • Shared by Daniel Beach

How Much Faster Is Redis at Storing a Blob of JSON Compared to PostgreSQL?
Also read the followup here.
PETER BENGTSSON

Strings and Character Data in Python
Learn how to use Python’s rich set of operators, functions, and methods for working with strings. You’ll learn how to access and extract portions of strings, and also become familiar with the methods that are available to manipulate and modify string data in Python 3.
REAL PYTHON video

Using iloc and loc for Indexing and Slicing Pandas Dataframes
Learn how to work with Pandas iloc and loc to slice, index, and subset your dataframes, for example by row and columns.
ERIK MARSJA

Customizing Your Pytest Test Suite (Part 2)
RAPHAEL PIERZINA

Multiprocessing vs Threading in Python: What Every Data Scientist Needs to Know
SUMIT GHOSH

Setting Up a Flask Application in Visual Studio Code
MIGUEL GRINBERG

Python Negatypes: ABCs and __subclasshook__
HILLEL WAYNE


Projects & Code


pire: Python Interactive Regular Expressions
PIRE is an interactive command-line interface allowing you to edit regexes live and see how your changes match against the input you specify.
GITHUB.COM/JOHANNESTAAS

pyrrhic: Programmable Python Build System
GITHUB.COM/TAWESOFT • Shared by Ben Golightly

pandas-profiling: Create HTML Profiling Reports From Pandas DataFrame Objects
GITHUB.COM/PANDAS-PROFILING

limeade: Hot Reloading for Python 3.4+
GITHUB.COM/CFSWORKS

📆🐍 Upcoming Python Events


PyCon Estonia
October 3 to October 4, 2019

PyCon Balkan 2019
October 3 to October 6, 2019

SciPy Latam
October 8 to October 11, 2019

PyCon ZA 2019
October 9 to October 14, 2019

PyConDE & PyData Berlin 2019
October 9 to October 12, 2019

PyTennessee 2020 CFP
March 7 to March 8, 2020 in Nashville, TN
Happy Pythoning!
Copyright © 2019 PyCoder’s Weekly, All rights reserved.