python

Back Open Paginator
05.10.2025 23:45
wildrikku (@wildrikku@mastodon.gamedev.place)

I'm still not having a great time with #Python. Seemingly simple things require poking around and searching on StackOverflow to an extent C# and PHP avoid by having better docs. I recently made a parser with BeautifulSoup. Now I wanted to extent the code to make another parser but this time the response is JSON, not HTML. It took me like 15 min to figure out which method I need because urlopen() returns Any so my IDE can't help and HTTPRequest, which is what it really returns, is undocumented.




Show Original Post


05.10.2025 23:40
cofiem (@cofiem@aus.social)

@diazona there's also beartype for runtime type checking github.com/beartype/beartype

"Beartype is an open-source pure-Python PEP-compliant near-real-time hybrid runtime-static third-generation type checker emphasizing efficiency, usability, unsubstantiated jargon we just made up, and thrilling puns."

#python #typechecking #beartype




Show Original Post


05.10.2025 23:20
diazona (@diazona@techhub.social)

@EMR @TomSwirly @stuartl @felix Huh, interesting idea. I haven't heard of such a thing but I wouldn't be surprised if the big wrapper frameworks are attempting to do it, or at least have thought about it.

#Python




Show Original Post


05.10.2025 23:11
taketwo (@taketwo@social.tchncs.de)

Steam is a good tool for #gamingonlinux #linuxgaming but people have games on other storefronts.
There are partial and unfinished tools that can support #EA, #Ubi and #Battlenet written in #Rust, #typescript and #python, that would make #Heathstone, #wow / #worldofwarcraft, #TheDivision and others more accessible on Linux. Can we find some #fedihelp to get these over the finish line?

I am sure there are people out there that play games on these platforms, can write code and maybe want to get there hands dirty with a little bit of #reverseengineering




Show Original Post


05.10.2025 22:35
jobRxiv (@jobRxiv@mas.to)

Senior Psychometrician
Gap International

Gap International, a leading global management consulting firm, is looking for an experienced and innovative Senior Psychometrician.

See the full job description on jobRxiv: jobrxiv.org/job/gap-internatio

#phd #psychometrics #Python #r #sas #spss #ScienceJobs #hiring #research
jobrxiv.org/job/gap-internatio




Show Original Post


05.10.2025 22:05
jobsfordevelopers (@jobsfordevelopers@mastodon.world)

Gympass is hiring Senior Software Engineer

🔧 #python #api #aws #kafka #nosql #postgresql #sql #seniorengineer
🌎 Remote; Brazil
⏰ Full-time
🏢 Gympass

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




Show Original Post


05.10.2025 21:49
birozularutti (@birozularutti@piaille.fr)

Dear colleagues,

I just finished implementing my fancy government making procedure in #python. Here it is:

1: def make_french_government():
2: past_governments = []
3: current_government = Government(will_fail=True)
4:
5: while current_government.will_fail:
6: past_government.append(current_government)
7: current_government = past_government[-1]
8: print("cocorico!")

Everything seems fine to me but #ruff is complaining about a possible infinite loop on line 5. And about a superfluous assignment on line 7. I don't get it.

Please help,
Sincerely,
E. #Macron

P.S. Please someone hit ctrl-c.

#Lecornu #MacronDemission




Show Original Post


05.10.2025 21:47
darbales (@darbales@rollenspiel.social)

Übungscode #Python
import numpy
import numpy as np
Z = np.zeros((2, 4))
print(Z)
Z = np.zeros((2, 4), dtype=int)
print(Z)




Show Original Post


05.10.2025 21:24
diazona (@diazona@techhub.social)

@EMR @TomSwirly @stuartl @felix Well what I was saying is that mypy in strict mode (or an equivalent) plus Pydantic gets you most of the way toward solving the type consistency problem, but it's not always enough. Particularly when you have untyped dependencies.

#Python




Show Original Post


05.10.2025 21:19
diazona (@diazona@techhub.social)

@TomSwirly @stuartl @felix Pydantic isn't the kind of thing I was thinking of. It does runtime type checking for its own data types, whereas I'm thinking of a package that does some AST hacking or something on that level to validate type hints at runtime *everywhere* in the program. Or at least, that's the idea.

Personally I've found it pretty effective to use strict type enforcement (like mypy --strict), along with validating the type of all external data coming into the program (which Pydantic can help with), and a few strategically placed assertions to shore up the gaps. With that combination I don't generally miss a strict type system.

#Python




Show Original Post


05.10.2025 21:09
curiouslearner (@curiouslearner@mastodon.social)

🎉 Django PostgreSQL Anonymizer v0.1.0b1 (Beta) is live!

Database anonymization for Django + PostgreSQL with role-based access, context managers, pre-built presets & comprehensive docs.

📦 pip install django-postgres-anonymizer==0.1.0b1
📚 django-postgres-anonymizer.rea
🐙 github.com/CuriousLearner/djan

Looking for beta testers!




Show Original Post


05.10.2025 20:20
GripNews (@GripNews@mastodon.social)

🌖 pyscn:智慧型 Python 程式碼品質分析工具
➤ 提升 Python 程式碼品質與可維護性的利器
github.com/ludo-technologies/p
pyscn 是一款專為 Python 開發者設計的智慧型程式碼品質分析工具。它能進行結構化分析,幫助開發者維護程式碼的可維護性。pyscn 支援多種分析功能,包括偵測死碼、複製程式碼、耦合度以及循環複雜度,並能以極高的速度(每秒超過十萬行程式碼)完成分析。該工具使用 Go 語言和 tree-sitter 建構,並提供多種指令以供分析、檢查品質以及生成設定檔。此外,pyscn 也整合了 CI/CD 流程,方便自動化品質控管。
+ 這個工具聽起來很強大,尤其是在處理大型專案時,偵測死碼和複製程式碼的功能能省下不少時間。我會嘗試在我的專案中使用看看。
+ Go 語言與 tree-sitter 的組合讓 pyscn 的效能非常出色。自動生成報告和 CI/CD 整合也為開發流程帶來了極大的便利。期待未來的更新!




Show Original Post


1 ...1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 ...1559
UP