I just wrote a very very tiny function to internationalise display texts in a program. Incuding a variable number of parameters.
#!/usr/bin/python3
def disp(*args):
# 1e is the replacer text.
disptext = args[0]
for a in range (1, len(args)):
disptext = disptext.replace("^", str(args[a]),1)
return disptext
print (disp ("Hi ^ there, all ^","you", 5))
print (disp ("Hola a ^, los ^ alli","vosotros", 5))
FastAPI for TypeScript Developers
https://programming.dev/post/42691967
Tuần trước, mình hoàn thành trò chơi Snake đầu tay bằng Python Turtle! 🐍 Học OOP, game loop, phát hiện va chạm, đóng gói với PyInstaller & Git. Tính năng: Điều khiển bằng phím mủi tên/WASD, đếm điểm, đồ họa rắn, thông báo thua. Đây là dự án đầu tiên mình xong 100%, hứa sẽ không bỏ dở nữa 😅 Feedback tại GitHub nhé! #Python #GameDev #LậpTrình #TựHọc #SnakeGame #LearningToCode
https://www.reddit.com/r/SideProject/comments/1pril7p/i_spent_my_weekend_building_a_snake_game_in/
As someone who so far just used pipenv for his #Python dependency management (as most of my stuff is web dev that isn't packaged but rather deployed):
If I'd want to write a library that I wanna properly package/release, which dependency manager would you recommend when starting a project from scratch in (the last days of) 2025?
spotdl的使用、结合spotdl的py脚本、rclone sync、rclone mount、screen......
#spotdl #rclone #sync #mount #screen #python
Also, in #Python, I was doing the exact thing by hand that `itertools.pairwise` does for you. (Learned about `pairwise` here)
Learned about #Python `__bases__`! It’s the opposite of `__subclasses__` (which I know and use) and a thing I should have been using in a couple of the places where I said `__mro__`.
I've added a few settings to Toad 🐸 to customize the UI.
You can tweak these settings to create an ultra minimal interface, if that is your thing!
I'm going to squeeze this release in before I take an end of year break. 🎄
https://youtube.com/shorts/iL7nd0e56TI
Hudson River Trading is hiring Senior Software Engineer - Development Tools
🔧 #cplusplus #python #seniorengineer
🌎 Chicago, Illinois
⏰ Full-time
🏢 Hudson River Trading
Job details https://jobsfordevelopers.com/jobs/senior-software-engineer-development-tools-at-hudsonrivertrading-com-oct-15-2024-2e9155?utm_source=mastodon.world&utm_medium=social&utm_campaign=posting
#jobalert #jobsearch #hiring
Lambda Durable Functionsを東京リージョンでも試してみました
https://qiita.com/yakumo_09/items/1c4b0c32d8dd7705c892?utm_campaign=popular_items&utm_medium=feed&utm_source=popular_items
#qiita #Python #AWS #初心者 #やってみた #lambda
[地獄] OpenAI APIが不正使用された件
https://qiita.com/ShigemoriMasato/items/8d4c09a40235440d8c77?utm_campaign=popular_items&utm_medium=feed&utm_source=popular_items
#qiita #Python #JavaScript #AWS #初心者
#Sphinx joined the list of packages dropping #Python 3.11 (and therefore #PyPy) support. Of course, we could just go through the effort of dropping it from respective packages in #Gentoo, given it's not technically that common… but honestly, at this point I have zero motivation to put the extra effort for this, just to learn that next month some core package starts requiring Python 3.12.
So, would anyone really mind if I removed Python 3.11 and PyPy support completely from Gentoo packages?