#388 – OCTOBER 1, 2019
View in Browser »
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.
“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.”
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 →
“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.”
“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 is out, with prettier, colored output and error code support, along with many other fixes and improvements.
Articles & Tutorials
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.
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).
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 →
“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
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
Learn how to work with Pandas iloc and loc to slice, index, and subset your dataframes, for example by row and columns.
Projects & Code
PIRE is an interactive command-line interface allowing you to edit regexes live and see how your changes match against the input you specify.
This was PyCoder’s Weekly Issue #388.
View in Browser »
[ Subscribe to 🐍 PyCoder’s Weekly 💌 – Get the best Python news, articles, and tutorials delivered to your inbox once a week >> Click here to learn more ]