Coder Social home page Coder Social logo

lesser-known-python's Introduction

lesser-known-python

Collection of lesser-known python features that you will love (and use).

I code in Python a lot, and from time to time I learn something new that makes me exclaim "Wow! That's cool! I wonder how I didn't know that before!". The goal of this repository is to collect these kind of discoveries.

Although the features collected here may not be widely known, they are supposed to be potentially useful in your day-to-day work (and mine too!). The goal is not to collect tricks or surprising behaviors that make you ask yourself "WTF is going on here?". If this is what you were looking for this is not the right place, but I can recommend you to spend some time on the amazing wtfpython repository.

Index

[Spoiler Alert] Next - notes for my future self

  • Ellipsis
  • Semplifying imports
  • Argument unpacking
  • String f-formatting
  • Dictionary comprehensions
  • Generator expressions
  • Advanced type hints
  • ...

FAQ

  • I know this hidden gem, but it's not mentioned here!

    Let's add it then! Feel free open an issue or make a pull request.

  • The thing x that you wrote is wrong.

    Thank you for noticing! Although I do my best, I can make mistakes. That's how we learning works. Feel free open an issue and I'll fix it.

  • Why are you doing this?

    A number of reasons! First (very selfishly) I wanted to write down some cools things that I learnt during the last years. Second, I have a lot of fun learning new things and teaching is the best way to learn. Then, since I learnt a lot of things on the web, I'm glad if I give something back too!

lesser-known-python's People

Contributors

ndrplz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.