Contribute Media
A thank you to everyone who makes this possible: Read More

The Standard Library Tour

Description

Tired of complex code? Python's standard library has tools to simplify your tasks! Join us for a tour of the standard library where we'll dive into less-known modules that do well-known things and well-known modules that do less-known things.

The Standard Library Tour is designed to provide attendees with an understanding of Python's standard library less known features. Have you ever found yourself writing complex code only to discover that Python has tools available within its library that could have made your job easier? Then this talk is for you!

The outline of the talk:

  • Basic information about the library

  • Well-known modules which do less-known things

    • functools less-known features: @singledispatch, partial(), @cache
    • itertools less-known features: product(), filterfalse(), zip_longest()
    • collections less-known features: ChainMap, defaultdict
  • Less-known modules which do well-known things
    • doctest for testing: testmod()
    • Difflib & Filecmp for comparison: Difflib.SequenceMatcher, Filecmp.cmpfiles()
    • contextlib for tasks involving the with statement: @contextmanager, @asynccontextmanager

By attending this session, you'll gain a deeper understanding of Python's standard library and you'll discover the "unknown unknowns" - tools that you may not even know exist within Python's standard library. By becoming familiar with the library and all of its capabilities, you'll be better equipped to solve problems and build applications more efficiently, without reinventing the wheel. You'll also receive recommendations on where to find additional resources and information so you can continue learning and exploring Python's tools after the conference has ended.

Details

Improve this page