Daily Python Tip ๐๐ง
@python_tip
One #python tip per day. Do you have any? Send it to http://bit.ly/pythontip. Edited by @simecek, @karlafej, and... you?
๋ด๊ฐ ์ข์ํ ๋งํ ์ฝํ ์ธ
I just discovered Behind the Commit podcast! ๐ง (hosted by Mia Bajiฤ ๐๏ธ) First two episodes feature Python release managers Hugo van Kemenade (3.14&3.15), Pablo Galindo Salgado (3.10&3.11), ลukasz Langa (3.8&3.9) and FastAPI creator Sebastiรกn Ramรญrez open.spotify.com/show/2Z9EwkdBvโฆ
I once told at a conference dinner: "Iโve got a PhD, but 90% of my work is just applying @fastdotai stuff" A senior researcher nodded: "Same" ๐ So when the new course dropped, I needed ~60s to subscribe (2-wk refund) solve.it.com/?via_id=gifvtbโฆ 15% off (and yes, I get 15% too)
Python 3.14 is here! ๐ Highlights: free-threaded CPython (PEP 779), deferred annotations (PEP 649), t-strings (PEP 750), multiple interpreters (PEP 734), zstd module (PEP 784), faster UUID + nicer errors. Time to upgrade & test. #Python #Py314 python.org/downloads/releโฆ
Need pandas + Jupyter for quick analysis but don't want them in your production dependencies? uv run --with pandas --with jupyter jupyter lab One command. Zero environment pollution. โจ #uv #jupyter #DevTips
Two Python gems Iโve been playing with: ๐ Tenacity โ painless retry logic for anything. No more rolling your own loops + sleeps tenacity.readthedocs.io/en/latest/ โก DumPy โ a bold rethink of NumPy: โdonโt make me think, just run (fast, on GPUs)โ dynomight.net/dumpy/ Both worth a ๐
Today I learned... `uv init` now not only creates a new Python environment but also creates โโโ .gitignore โโโ README.md โโโ main.py โโโ pyproject.toml โโโ .python-version realpython.com/python-uv/#creโฆ
marimo = Jupyter for serious Python work ๐ฅ - Pure .py files (git-friendly!) - No more restart & run all - Deploy as scripts OR interactive web apps - Built-in SQL support - Reactive cells that auto-update dependencies marimo.io
When I started with Python, I was confused by the murky difference between variables and references. ๐ค This ๐ explains it brilliantly: Why Python has No Variables? medium.com/@king_star/whyโฆ
Happy (20 + 25)**2 Happy sum(i**3 for i in range(10)) Happy sum(i for i in range(10))**2 #HappyNewYear!
MarkItDown = a tool from Microsoft to convert Word / Excel / PPT / PDF... to Markdown github.com/microsoft/markโฆ
This is neat! Instead of writing scraping methods yourself, provide a few examples and let `autoscraper` to do it for you. oxylabs.io/blog/automatedโฆ
If you want to automatically scrape a website with Python, use `autoscraper` ๐ก Its almost magical ๐ช - Instead of writing the scraping logic manually, you provide a few sample values you'd like to scrape, and `autoscraper` will deduce the scraping rules for you. It learns theโฆ
๐ Python environments got easier! uv is the new rust-powered packaging tool that might finally solve the XKCD-famous dependency puzzle m.xkcd.com/1987/ Quick start: * `uv run` for most cases * `uv venv` for virtual envs * `uv pip` for packages (don't mix with regularโฆ
Automate your virtualenv activation! Using autoenv (github.com/hyperupcall/auโฆ), you can: 1. Automatically activate virtualenv when entering a directory 2. Run ANY command when cd-ing into a folder Example: # Set up autoenv echo "source venv/bin/activate" > .env # Or run customโฆ
AI is changing how we code, but should it change how we teach Python? I've embraced LLMs for coding, especially with pandas, but I'm unsure if beginners should start this way. Anyway, curious about the AI way? Try Andrew Ng's 'AI Python for Beginners': deeplearning.ai/short-courses/โฆ
"Tired of scrolling through Jupyter notebooks on GitHub? Try nbsanity.com: ๐ Just replace 'github' with 'nbsanity' in the URL to get much cleaner view ๐ For example nbsanity.com/jakevdp/Pythonโฆ #JupyterNotebook
#EuroPython2024 videos are live! ๐บ My top 3 ML talks: 1) "From Text to Context..." about combining semantic & traditional search youtube.com/live/vfmS8uwT4โฆ 2) "Scikit-LLM..." because of beginner-friendly NLP with dynamic few-shots youtube.com/live/m1P5baHpPโฆ 3) "Representation isโฆ
Here's an interesting Python brainteaser that came from a member asking a question on The Python Coding Place forumโฆ Can you figure out why the outputs are the way they are for these two similar but not identical bits of code? The answer gives a great insight on iteratorsโฆ
Use "named constructors" to create multiple ways to initialize objects class PaperSize: @classmethod def iso_a4(cls): return cls(210, 297) def __init__(self, width_mm, height_mm): self.width_mm = width_mm self.height_mm = height_mmโฆ
Still digesting #EuroPython2024, but #DjangoConEU 2024 videos just appeared on YouTube! youtube.com/playlist?list=โฆ My favorites: - Anลพe's "Django, SQLite, and Production" youtube.com/watch?v=GTDYwEโฆ - @scriptogre's "Functional Chatbots" tutorial (not on YT) github.com/scriptogre/funโฆ
#EuroPython2024 Day 1 ๐ท๐ Someone on Hacker News described Python type hints as "lipstick on a pig." I kind of agree, but sometimes a pig with lipstick is better than just a pig. Jakub Berรกnek: Writing Python like it's Rust... slides: program.europython.eu/media/europythโฆ One package Iโฆ
United States ํธ๋ ๋
- 1. Cowboys 69.2K posts
- 2. LeBron 91.1K posts
- 3. Gibbs 18.3K posts
- 4. Lions 84.8K posts
- 5. Pickens 12.6K posts
- 6. #OnePride 9,773 posts
- 7. Brandon Aubrey 6,877 posts
- 8. Ferguson 10.3K posts
- 9. #DALvsDET 6,025 posts
- 10. Eberflus 2,309 posts
- 11. Goff 8,253 posts
- 12. CeeDee 9,954 posts
- 13. Bland 8,310 posts
- 14. Shang Tsung 18.7K posts
- 15. DJ Reed N/A
- 16. Al Michaels N/A
- 17. Schotty 1,754 posts
- 18. Austin Reaves 14.1K posts
- 19. Turpin 2,169 posts
- 20. #LakeShow 4,755 posts
๋ด๊ฐ ์ข์ํ ๋งํ ์ฝํ ์ธ
-
Python Software Foundation
@ThePSF -
Talk Python Podcast
@TalkPython -
Real Python
@realpython -
Scientific Python
@SciPyTip -
PyCoderโs Weekly
@pycoders -
Python Hub
@PythonHub -
Guido van Rossum
@gvanrossum -
Matt Makai | Full Stack Python | Plushcap
@fullstackpython -
Pybites
@pybites -
PyData
@PyData -
Django
@djangoproject -
Python Trending ๐บ๐ฆ
@pythontrending -
PyCharm, a JetBrains IDE
@pycharm -
Mike Driscoll
@driscollis -
TestDriven.io
@testdrivenio
Something went wrong.
Something went wrong.