Bookmarks
Tag cloud
Picture wall
Daily
RSS Feed
  • RSS Feed
  • Daily Feed
  • Weekly Feed
  • Monthly Feed
Filters

Links per page

  • 20 links
  • 50 links
  • 100 links

Filters

Untagged links
It's Time to Say Goodbye to These Obsolete Python Libraries https://martinheinz.dev/blog/77
Wed 20 Jul 2022 06:11:18 PM PDT archive.org

With every Python release, there are new modules being added and new and better ways of doing things get introduced. We all get used to using the good old Python libraries and to certain way of doing things, but it's time upgrade and make use of the new and improved modules and their features.

  • os.path -> pathlib
  • os.urandom -> secrets
  • pytz -> zoneinfo
  • namedtuple -> dataclasses
  • Use logging.
  • Use f-strings.
  • tomli -> tomllib
  • distutils -> setuputils
article python modules versions archived
4992 links, including 379 private
Shaarli - The personal, minimalist, super-fast, database free, bookmarking service by the Shaarli community - Theme by kalvn