Found out that using dict() instead of {} has a performance impact. Is there a way to transform every call of dict() to use {} in a automated way? codemod or pre-commit?

This page summarizes the projects mentioned and recommended in the original post on /r/Python

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • flake8-comprehensions

    ❄️ A flake8 plugin to help you write better list/set/dict comprehensions.

    Found https://github.com/adamchainz/flake8-comprehensions.

  • pyupgrade

    A tool (and pre-commit hook) to automatically upgrade syntax for newer versions of the language.

    Is there a tool to upgrade stuff like this automatically? Yes there is! PyUpgrade - Simply add the pre commit hook and let the magic unfold.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts