PythonHub
2.44K subscribers
2.35K photos
49.3K links
News & links about Python programming.
https://pythonhub.dev/
Download Telegram
Python Type Hints - Lambdas don’t support type hints, but that’s okay

Python has no syntax to add type hints to lambdas, but that doesn’t mean you can’t use them in type-checked code. In this post we’ll look at how Mypy can infer the types for lambdas, based on where they’re used.

https://adamj.eu/tech/2022/10/10/python-type-hints-lambda-incompatible/
Decorator shortcuts

When using many decorators in code, there’s a shortcut you can use if you find yourself repeating them. They can be assigned to a variable just like any other Python expression.

https://nedbatchelder.com/blog/202210/decorator_shortcuts.html
How to Track the Rank of Keywords in Google SERPs using Python

In this post, we will learn how to track the rank of pages in google for any keyword using Python. We will create a tool like SEMrush & Ahrefs with coding.

https://blog.shahednasser.com/track-keywords-in-google-using-python/
5 Python Projects to Automate Your Life: From Beginner to Advanced

Brand-new automation projects that you should solve in 2022Continue reading on Towards Data Science ...

https://towardsdatascience.com/5-python-projects-to-automate-your-life-from-beginner-to-advanced-90fe29a7d664
Python dependency management difficulty is an unhelpful meme

Python package management/installation is famously difficult or so the story goes. This keeps getting reinforced by forum comments, quoting that one xkcd page, and people who aren’t actually running into the issues repeating the meme. In practice, it will take just a few minutes to understand and not end up in a mess.

https://blog.viraptor.info/post/python-dependency-management-difficulty-is-an-unhelpful-meme