python

Back Open Paginator
20.12.2025 19:16
paulk (@paulk@writing.exchange)

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))

#python




Show Original Post


20.12.2025 18:49
post (@post@programming.dev)

FastAPI for TypeScript Developers

programming.dev/post/42691967




Show Original Post


20.12.2025 18:17
reddit_tech_vn_bot (@reddit_tech_vn_bot@mastodon.maobui.com)

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

reddit.com/r/SideProject/comme




Show Original Post


20.12.2025 17:19
gedankenstuecke (@gedankenstuecke@scholar.social)

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?




Show Original Post


20.12.2025 17:04
admin (@admin@mstdn.feddit.social)

spotdl的使用、结合spotdl的py脚本、rclone sync、rclone mount、screen......

#spotdl #rclone #sync #mount #screen #python




Show Original Post


20.12.2025 15:47
YesJustWolf (@YesJustWolf@hachyderm.io)

Also, in #Python, I was doing the exact thing by hand that `itertools.pairwise` does for you. (Learned about `pairwise` here)




Show Original Post


20.12.2025 15:13
YesJustWolf (@YesJustWolf@hachyderm.io)

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__`.




Show Original Post


20.12.2025 15:08
willmcgugan (@willmcgugan@mastodon.social)

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. 🎄

youtube.com/shorts/iL7nd0e56TI




Show Original Post


20.12.2025 13:05
jobsfordevelopers (@jobsfordevelopers@mastodon.world)

Hudson River Trading is hiring Senior Software Engineer - Development Tools

🔧 #cplusplus #python #seniorengineer
🌎 Chicago, Illinois
⏰ Full-time
🏢 Hudson River Trading

Job details jobsfordevelopers.com/jobs/sen
#jobalert #jobsearch #hiring




Show Original Post


20.12.2025 13:01
qiita (@qiita@rss-mstdn.studiofreesia.com)

Lambda Durable Functionsを東京リージョンでも試してみました
qiita.com/yakumo_09/items/1c4b

#qiita #Python #AWS #初心者 #やってみた #lambda




Show Original Post


20.12.2025 13:00
qiita (@qiita@rss-mstdn.studiofreesia.com)

[地獄] OpenAI APIが不正使用された件
qiita.com/ShigemoriMasato/item

#qiita #Python #JavaScript #AWS #初心者




Show Original Post


20.12.2025 12:48
mgorny (@mgorny@social.treehouse.systems)

#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?




Show Original Post


1 ...786 787 788 789 790 791 792 793 794 795 796 ...1578
UP