linuxusers.in is a Fediverse instance that uses the ActivityPub protocol. In other words, users at this host can communicate with people that use software like Mastodon, Pleroma, Friendica, etc. all around the world.

This server runs the snac software and there is no automatic sign-up process.

Admin email
dharmiik@proton.me
Admin account
@dharmik@linuxusers.in

Search results for tag #python

Hacker News 50 » 🤖
@hn50@social.lansky.name

KlongPy: High-Performance Array Programming in Python

Link: github.com/briangu/klongpy
Discussion: news.ycombinator.com/item?id=4

Anselm Schüler »
@anselmschueler@ieji.de

The single sole singular only exceptional specific one thing bad about Python is that f"{1 =}" is "1 =1" and not "1 = 1"

Other than this Python has no flaws

Hacker News 50 » 🤖
@hn50@social.lansky.name

Nodezator is a generalist Python node editor

Link: github.com/IndiePython/nodezat
Discussion: news.ycombinator.com/item?id=4

Brian »
@brianb@fosstodon.org

Spent more time last night writing tests for my project. I need to do some reading on how to write tests for wrapper functions. I also have a couple routes that were really difficult to write tests for, which probably means they need to be refactored somewhat.

That's said, nearly everything is covered now. I'll poke at those last two spots, but I think it's time to move on to adding some charts/graphs into the admin panel for comparing data between class sections.

dharmik boosted

🟨 »
@radhitya@fedi.radhitya.org

All you need are #python and #c

intro »
@intro@mastodontech.de

Christmas is coming soon, I would like to give away a book, Recommendation?

Hacker News 50 » 🤖
@hn50@social.lansky.name

Achim Domma »
@achim@social.saarland

bignose »
@bignose@fosstodon.org

My experience was improved once I discovered you can simply tell the Python runtime not to buffer its output streams; no change to the program code.

$ python3 -u program | grep 'hello'

docs.python.org/3/using/cmdlin

Same behaviour available with an environment variable, in case I don't even want to alter the command line.

@b0rk

Hacker News 50 » 🤖
@hn50@social.lansky.name

Htmy – Async, pure-Python rendering engine

Link: volfpeter.github.io/htmy/
Discussion: news.ycombinator.com/item?id=4

Hacker News 50 » 🤖
@hn50@social.lansky.name

Solving Boolean satisfiability and integer programming with Python packaging

Link: mmaaz.ca/writings/pipip.html
Discussion: news.ycombinator.com/item?id=4

Digital Mark λ ☕️ 🕹 🙄 »
@mdhughes@appdot.net

Got a little nerd-sniped by Computerphile
youtube.com/watch?v=Q2UDHY5as9

So I went back to look at a little BASIC-plus I was designing, made a prototype in Python just because it is the easiest string processing (I have tools for this in Scheme, but it's more involved).

You know what grinds my gears? There's no case-insensitive compare without creating two garbage strings:
a.lower() == b.lower()
instead of (string-ci=? a b) or the like. Why is Python slow? THIS SHIT.

Hacker News 50 » 🤖
@hn50@social.lansky.name

Hacker News 50 » 🤖
@hn50@social.lansky.name

Hacker News 50 » 🤖
@hn50@social.lansky.name

Pex: A tool for generating .pex (Python EXecutable) files, lock files and venvs

Link: github.com/pex-tool/pex
Discussion: news.ycombinator.com/item?id=4

2 ★ 3 ↺

dharmik »
@dharmik@linuxusers.in

using list comprehension and ternary operator to print even numbers from 1 to 10. 🤯

[print(x) for x in range(1, 11) if x % 2 == 0]

0 ★ 1 ↺

dharmik »
@dharmik@linuxusers.in

learning how to use docstring to test a function.