Skip to content
#

python-articles

Here are 18 public repositories matching this topic...

Python's built-in libraries include powerful tools for retrieving and operating over abstract syntax trees. This article provides an overview of how to use these features to analyze and transform Python code programmatically.

  • Updated Oct 18, 2020
  • Jupyter Notebook

Native syntactic support for type annotations was introduced in Python 3. This article provides an overview of this feature, reviews how it can be used to document information about expressions and functions in a structured way, and illustrates some of the advantages of leveraging it for applicable use cases.

  • Updated Oct 26, 2020
  • Jupyter Notebook

Python comprehensions are a powerful language feature that can greatly improve the productivity of a programmer and the readability of code. This article explores how comprehensions can be used to build concise solutions for problems that require generating various kinds of combinations of all the elements from a finite (or infinite) set.

  • Updated Dec 22, 2020
  • Jupyter Notebook

Iterators and generators are powerful abstractions within Python that have a variety of uses. This article reviews how they are defined, how they are related, and how they can help programmers work in an elegant and flexible way with data structures and data streams of an unknown or infinite size.

  • Updated Oct 14, 2020
  • Jupyter Notebook

While built-in string methods and regular expressions have limitations, they can be leveraged in creative ways to implement scalable workflows that process and analyze text data. This article explores these tools and introduces a few useful peripheral techniques within the context of a use case involving a large text data corpus.

  • Updated Dec 28, 2020
  • Jupyter Notebook

This article uses a simple use case involving a transaction between a vendor and a customer to illustrate the privacy-enhancing potential of oblivious transfer (OT) and to demonstrate how OT can be incorporated into a Python implementation of a web service by leveraging the otc library.

  • Updated Nov 4, 2020
  • Jupyter Notebook

Both built-in and user-defined data structures in Python can be either mutable or immutable. This article explains why Python makes this distinction for built-in data structures and reviews some use cases within which you may want to define an immutable data structure of your own.

  • Updated Dec 26, 2020
  • Jupyter Notebook

Python offers a rich set of APIs that make it possible to build wrappers for foreign functions written in another language (such as C/C++) and compiled into shared libraries. This article introduces some basic techniques that will allow you to start using shared libraries in your projects.

  • Updated Dec 23, 2020
  • Jupyter Notebook

Improve this page

Add a description, image, and links to the python-articles topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the python-articles topic, visit your repo's landing page and select "manage topics."

Learn more