Python News: What’s New From June 2023

June 2023 welcomed a lot of new people and positions to the Python Software Foundation (PSF). Elections wrapped up for directors, and a new security developer in residence got to work. The organization is still looking to expand, though, and it announced a new deputy CPython developer in residence position that could go to a less seasoned programmer. Over at Pydantic, version 2 brings improved performance, while the sun went down on Python 3.7. It’s summer, so get ready for […]

Read more

Unlock IPython’s Magical Toolbox for Your Coding Journey

When you’re executing Python code, the standard Python shell that comes with your Python installation is a natural tool to use. However, as you progress in your coding journey, you might find yourself seeking more powerful functionalities than the standard REPL offers. Luckily, IPython offers an enhanced version of interactive Python that can supercharge your capabilities. Using the IPython shell is a fast way of learning Python and executing code without the need for a full-fledged integrated development environment (IDE), […]

Read more

Mazes in Python Part 2: Storing and Solving

If you’re up for a little challenge and would like to take your programming skills to the next level, then you’ve come to the right place! In this hands-on video course, you’ll practice object-oriented programming, among several other good practices, while building a cool maze solver project in Python. This is the second part in a two-part series. Throughout the series, you’re going step by step through the guided process of building a complete and working project. This includes reading […]

Read more

The easiest way to speed up Python with Rust

If you want to speed up some existing Python code, writing a compiled extension in Rust can be an excellent choice: In many situations, Rust code can run much faster than Python. Rust prevents most of the memory-management bugs that often occur in C, C++, and Cython code. There is a growing ecosystem of third-party Rust packages available, and unlike C and C++ it also has a built-in package manager and build system. However, if you just want to prototype […]

Read more

Profiling in Python: How to Find Performance Bottlenecks

Do you want to optimize the performance of your Python program to make it run faster or consume less memory? Before diving into any performance tuning, you should strongly consider using a technique called software profiling. It may help you answer whether optimizing the code is necessary and, if so, which parts of the code you should focus on. Sometimes, the return on investment in performance optimizations just isn’t worth the effort. If you only run your code once or […]

Read more

Highlights from Machine Translation and Multilinguality in June 2023

Here are the preprints that I found the most interesting in June 2023. Exploring the Relationship between Alignment and Cross-lingual Transfer in Multilingual Transformers Folks from LORIA (a French research institute) and Posos (a French company) study the relationship between cross-lingual representation alignment and cross-lingual transfer. Here, alignment means what I would call language neutrality, i.e., that similar sentences should receive similar representation across languages. (Not alignment as the new word for finetuning language models to follow instructions, nor the […]

Read more

Python 3.12 Preview: Support For the Linux perf Profiler

The final release of Python 3.12 is scheduled for October 2023, which is growing closer. In the meantime, you can download and install its preview version to get a sneak peek at the upcoming features. One of the biggest changes announced is support for the Linux perf profiler, which is a powerful performance profiling tool. To fully benefit from using the perf profiler in Python 3.12, you should have a fairly good understanding of how the underlying hardware and the […]

Read more

Filtering Iterables With Python

Python’s filter() is a built-in function that allows you to process an iterable and extract those items that satisfy a given condition. This process is commonly known as a filtering operation. With filter(), you can apply a filtering function to an iterable and produce a new iterable with the items that satisfy the condition at hand. In Python, filter() is one of the tools that you can use for functional programming. In this video course, you’ll learn how to: Use […]

Read more

How to Round Numbers in Python

With many businesses turning to Python’s powerful data science ecosystem to analyze their data, understanding how to avoid introducing bias into datasets is absolutely vital. If you’ve studied some statistics, then you’re probably familiar with terms like reporting bias, selection bias, and sampling bias. There’s another type of bias that plays an important role when you’re dealing with numeric data: rounding bias. Understanding how rounding works in Python can help you avoid biasing your dataset. This is an important skill. […]

Read more
1 105 106 107 108 109 928