/PyTricks

Collection of less popular features and tricks for the Python programming language

Primary LanguagePythonMIT LicenseMIT

Intention

Creating a knowledge base of unpopular Python built-in features to save a lot of unnecessary code.

Contribute

Feel free to use the PyTrickBase.txt as a starting point.

  1. Pull request:

    Send a pull request with your PyTrick, containing example code and a documentation one-liner. Be sure to add yourself to the contributors.

  2. Issue comment:

    Add your Python snippet and your documentation as a comment on Issue#1. I will take care of adding your PyTrick and you as a contributor.

Requirements

  • only use the standard Python library
  • compared to the "general approach":
    • improve readability
    • improve performance
    • implement functionality in a shorter way

Contact

  1. message me at @__brennerm
  2. send an email to xam.rennerb@gmail.com