python

Back Open Paginator
04.10.2025 22:35
r (@r@bsky.brid.gy)

Alert ⚠️ Malicious PyPI Package soopsocks Infects 2,653 Systems Before Takedown thehackernews.com/2025/10/aler... #Cybercrime #Python #PyPI

Alert: Malicious PyPI Package ...




Show Original Post


04.10.2025 22:35
scripter (@scripter@social.tchncs.de)

Alert ⚠️ Malicious PyPI Package soopsocks Infects 2,653 Systems Before Takedown
thehackernews.com/2025/10/aler #Cybercrime #Python #PyPI





Show Original Post


04.10.2025 21:58
renedudfield (@renedudfield@fosstodon.org)

The #python 3.14rc3 installer for windows is broken.

I see the installer was redone, so that's probably where the issue is not supporting all the install options the old installer supported.




Show Original Post


04.10.2025 21:47
wsvincent (@wsvincent@fosstodon.org)

A fun Friday night hack superpowered by Claude Code. The original Django book by Adrian Holovaty and @jacob is now available again at DjangoBook.com.

I wrote up a short bit on how this came to be: wsvincent.com/djangobook-back-

#django #python





Show Original Post


04.10.2025 21:41
StartPy (@StartPy@mastodon.arabipro.social)

الدرس (7)
تحويل نوع المتغيّر
تقدّم في الدرس (4) أن نوع المتغيّر قد يتحوّل أثناء تشغيل البرنامج وذلك تبعاً للقيمة التي يمثّلها، وهذا الأمر واضح في المثال التالي:
x=5; y=2; x= x/y
فإنّ المتغير "x" كان من نوع العدد الصحيح "int" ولكن بعد أن أعطيناه قيمة ناتج قسمته على 2 سيتحوّل نوعه ليصبح عدداً عشرياً "float". ولكن، هذا ليس كافياً في بعض الصور، لذا كانت الحاجة إلى وجود دوال لتحويل أنواع المتغيّرات بين بعضها البعض، وتسمى "دوال تحويل النوع".

- دوال تحويل النوع (type conversion functions):
هي دوال تُستخدم لتحويل البيانات بين الأنواع الأساسية (مثل int, float, str) والهياكل البيانية (مثل list, tuple, set, dict). وفيما يلي سنذكر هذه الدوال مع بعض التوصيات المهمّة في استخدامها، ويمكنك مشاهدة الصور المرفقة للتعرّف على جميع الصور الممكنة.
الدوال المدمجة لتحويل الأنواع هي:
دالة int(x): تحويل إلى عدد صحيح (integer)
دالة float(x): تحويل إلى عدد عشري (float)
دالة str(x): تحويل إلى نص (string)
دالة bool(x): تحويل إلى قيمة منطقية (True/False)
دالة list(x): تحويل إلى قائمة (list)
دالة tuple(x): تحويل إلى مترابطة بيانية (tuple)
دالة set(x): تحويل إلى مجموعة (set)
دالة dict(x): تحويل إلى قاموس (dictionary)

* توصيات لتجنب الأخطاء
تحقق من صلاحية البيانات: تأكد أن النص يحتوي على أرقام صالحة قبل تحويله إلى int أو float.
التكرار مطلوب: لتحويل إلى list، tuple، أو set، يجب أن يكون المدخل iterable (مثل قائمة، نص، ولا يمكن أن يكون int أو float مباشرة).
المفاتيح في dict: يجب أن تكون المفاتيح غير قابلة للتغيير (مثل str، int، tuple).
اقرأ رسائل الخطأ: إذا حصلت على ValueError (بيانات غير صالحة للتحويل) أو TypeError (نوع غير متوافق)، تحقق من نوع المدخل وصحته.

* تذكّر!!!:
ليست كل التحويلات ممكنة (مثل تحويل نص غير رقمي إلى int يسبب ValueError).
التحويل يعتمد على محتوى البيانات (مثل تحويل "5.5" إلى float ممكن، لكن إلى int يتطلب تحويل وسيط).
#python
#programming_languages
#بايثون
#لغات_برمجة





Show Original Post


04.10.2025 21:40
ambv (@ambv@mastodon.social)

Looks like Tallinn’s got pretty good adoption.





Show Original Post


04.10.2025 21:28
leephillips (@leephillips@mastodon.social)

and : Slowly Converging

lee-phillips.org/juliabook/tri




Show Original Post


04.10.2025 20:45
pybay (@pybay@fosstodon.org)

Only 2 weeks to go until PyBay 2025! ⏳

Get ready for a full day of incredible Python talks, hands-on workshops, and networking with the amazing Python community.

📍 Oct. 18, 2025, San Francisco, CA: pybay.org/
🎟️ Tickets: pretix.eu/bapya/pybay-2025/
🎤 More talks: pybay.org/speaking/talk-list-2

#PyBay #Python #PyBay2025





Show Original Post


04.10.2025 20:33
diazona (@diazona@techhub.social)

@Yhg1s cool I don't see myself using this all that often but it sounds like a neat feature!

Is there, by chance, an estimate of which #Python version this would be likely to appear in if it gets accepted?




Show Original Post


04.10.2025 20:26
pythonbrasil (@pythonbrasil@pynews.com.br)

Temos a honra de apresentar nosso keynote, Robert Silva!
Robert é DevOps Engineer no Santander, com mais de 10 anos de experiência em TI como consultor e arquiteto de soluções. Especialista em Kubernetes (CKA e CKAD) e automação, é apaixonado por compartilhar conhecimento e inspirar profissionais na transição para DevOps.

#python #bolhadev #pythonbrasil #devops #pybr2025





Show Original Post


04.10.2025 20:25
frank (@frank@troet.cafe)

Abelbeck Aviation Checklist progress: back-end is on a good way.

✅ asyncio HTTP server
✅ API module "Pilot's Logbook"
✅ API module "Aircraft Database"
✅ API module "Navigation"
✅ API module "German AIXM AIP"
✅ API module "German Print AIP"

"Navigation" offers course and wind triangle calculations.

"Aircraft database" offers take-off/landing distance calculations.

My digital local-only flight bag is evolving...

#aviationnerd #python #asyncio




Show Original Post


04.10.2025 19:52
diazona (@diazona@techhub.social)

@maphew Ah I see, thanks! For some reason I was only thinking of Linux. (I had been looking at another utility earlier in the day that was Linux-only, maybe I got stuck in that mindset.)

BTW I have been exclusively using ~/.local/bin for user scripts on Linux, as per the XDG standard or whatever it is, so I think it should be safe to ignore all the rest, leaving /bin and /opt and other things outside the home directory to the system package manager. At least, it works for me.

#Python #Linux




Show Original Post


1 ...1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 ...1559
UP