Python | News, how-tos, features, reviews, and videos

A woman carefully studying survey data.
one red balloon rises above a line of white balloons

youtube thumbnails template 021020

How Python's context managers help you clean up after yourself

Sometimes in Python programs you need to acquire external resources, like file handles, and then free them again. Python's context manager construction lets you automatically free things up when you're done with them, and in a way...

puzzle missing piece

4 powerful features Python is still missing

What new programming language features would you like to see added to Python? Here are four possibilities — some likely, some not

computer frustration woman orange

How to run Anaconda side by side with other Pythons

Want to use Anaconda alongside other Python distributions? Here’s how to keep those Python installs from stepping on each other’s toes

python programming language snake

Microsoft unveils Pylance, its new Python extension for Visual Studio Code

Pylance works with the existing Microsoft Python extension to bring faster type checking and program analysis to Python devs

Design thinking should be at the center of DX: Prashanth MJ, Sutherland Globalinnovation

How to use Python dataclasses

Take advantage of Python dataclasses to make your Python classes less verbose and more powerful at the same time

executive pushing boulder uphill deadline stress struggle

For data scientists, drudgery is still job #1

Data cleaning and preparation still eats up nearly half the workload of data scientists, according to Anaconda’s new survey

Glowing abstract numbers

Python may get pattern matching syntax

A proposal under consideration by Python’s development team would finally bring pattern matching statements to the language

mechanic wrench fix engine repair

3 steps to a Python async overhaul

How to speed up an existing Python program by reworking it to run concurrently using async

green tree python

How to manage Python projects with Pipenv

Have your Python projects become a rat’s nest? Pipenv provides a clean and easy way to manage virtual environments and packages together

thumbs up happy employees binary diversity motivated staff happy people by peopleimages getty

Rust language tops Stack Overflow survey

2020 developer survey finds Rust ‘most loved,’ Python ‘most wanted,’ and Perl, Scala, and Go the ‘top paying’ languages

Clash of fists in silhouette

Julia vs. Python: Which is best for data science?

Python has turned into a data science and machine learning mainstay, while Julia was built from the ground up to do the job

mechanic overhauling engine

Python 3.9: What’s new and better

The next version of Python brings a faster release schedule, performance boosts, handy new string functions, dictionary union operators, and more consistent and stable internal APIs

it as a product boxes glowing box binary package by masterzphotois getty

How to use PyInstaller to create Python executables

Take advantage of PyInstaller to package up your Python app into a standalone executable for easy distribution

artificially intelligent, robotic workers

Kite brings its AI-powered code completion to JavaScript

Originally for Python only, Kite has added a JavaScript-trained machine learning model to its add-on for popular code editors and IDEs

women spinning plates asynchronous programming synchrony multi tasking by graemenicholson getty ima

6 Python libraries for parallel processing

Want to distribute that heavy Python workload across multiple CPUs or a compute cluster? These frameworks can make it happen

youtube thumbnails template 021020

Using multiprocessing to speed up Python programs

The multiprocessing module in Python can be used to take CPU-dependent tasks and run them on multiple cores in parallel. Here's a simple example. The benchmark shown is a variation of one posted at...

youtube thumbnails template 021020 2

Using "cProfile" to analyze Python code performance

Learn how to use the "cProfile" module to analyze a Python program's performance and make strategic changes to it.

youtube thumbnails template 021020

Using the "py" launcher with Python on Windows

The "py" launcher lets you select which of multiple installed versions of Python to run. Here's how to use it to launch your scripts.

Load More