What’s new in Python is a news feed of articles, trends, and stories hand picked by me on what is happening in the Python open source ecosystem. All of the topics in this article have been hand picked from sources such as Github, Bugs.Python.org, Twitter, and of course, python.org. This latest issue focuses on adding IPv6 support while testing http.server, C API Changes, fork() as a bug on macOS Mojave, voting for the new Python governance model, and Platform.popen() being dropped on older Windows platforms.
Python just received a minor version update to Python 3.7 with many new performance enhancements, added features, and module improvements to the language. One of the existing Python modules in 3.7 that received some nice new enhancements is the ssl module. The updated ssl module now has enhanced hostname support, updates to how blacklisting and whitelisting work, but most importantly, conditional support for TLS 1.3 connections.
Python is about to get a nice new update with many new feature enhancement, performance improvements, and redesigned modules with the release of Python 3.7. At the time of writing this article a release candidate is available today by visiting CPython's github page and checking out branch 3.7. In this two part series I am writing about two updates to Python 3.7 that I feel will benefit the language in regards to networking. In this article I will be writing about the additions to the Python socket module because I am networking guy!
Over the last 6 months I have noticed a lot of code going into CPython working with SSL and TLS. At first I did not think anything commits and brushed it off as bug fixes and improvements. However, as the months went by and I kept seeing these commits come through it started to get my curiosity piqued about what might be happening in language under the hood.
If you are like me and sometimes you forget the syntax on how to sort a list of custom objects by property then this tutorial is for you. It seems like there is always a need to sort and manipulate custom objects by property and that was my why I wanted to write this tutorial. To demonstrate how to take a custom list of objects and sort those objects by a specific property. In the case of this tutorial I have chosen to use a date property because sorting by date is a very real world example of something you may run into in the work place, but the same code would also work for numbers or
If you have ever wanted to know how to open a file using Python, but were unsure of the syntax, or exactly how Python works with files, then this tutorial is aimed at you. This tutorial aims to walk you through the basics of how to use Python to open a file using two different real world scenario's. The first scenario I walk through how to use Python to open a file from the command line using the file as a command line argument passed in from STDIN. The second scenario I use Python to open a file that is referenced from a file path anywhere in your program.
If you have ever wanted to use Python list comprehensions, but were unsure of the syntax or exactly how they worked, then this tutorial is aimed at you. This tutorial aims to walk you through the basics of how Python list comprehensions work with three real world examples. In the tutorial below I have three examples of the power of Python list comprehensions; The first example illustrates how to setup and create a basic list comprehension. The second example get's a lot more complex and uses two nes
Since the announcement of CoreML at WWDC this year I have been very excited to get in and start researching all the capabilities of Apple's new machine learning framework. One of the ideas I had to test the capabilities of CoreML was to build a recommendation engine to provide users of an application with musical recommendations based upon a library of known selections. CoreML would be used in this recommendation engine to fit musical selections to a machine learning model called a linear regression model.