python

Back Open Paginator
05.09.2025 12:59
ax6761 (@ax6761@freeradical.zone)

... related ...

Distribute shell scripts using setuptools and pyproject.toml, asked 20220830,
by Luting Wang,
stackoverflow.com/questions/73

#Python




Show Original Post


05.09.2025 12:53
ax6761 (@ax6761@freeradical.zone)

...
Amazing #Python!

What to put in the [project.scripts] table if scripts are not stored in the "src" directory? reply 20231011,
by Brian61354270,
stackoverflow.com/questions/77




Show Original Post


05.09.2025 12:20
ax6761 (@ax6761@freeradical.zone)

@egerlach I do not find a way via "pyproject" packaging.python.org/en/latest to be able to specify a file to be installed as is without creating wrapper which may not work for a file-name-with-hypen.

#Python




Show Original Post


05.09.2025 12:00
djangonews (@djangonews@mastodon.social)

📰 Django News - Last call for DjangoCon US 2025 tickets! - Sep 5th 2025

django-news.com/issues/301




Show Original Post


05.09.2025 11:44
ihor (@ihor@fosstodon.org)

I used to think Rust testing was far behind Python with pytest, but that’s not really the case. There's a googletest crate that fixes so many pain points: clearer failure messages, test fixtures, approx comparisons for floats, and more.

If you write tests in Rust, it’s worth giving this crate a try. I'm surprised it isn’t more widely used, because it makes the testing experience much smoother.

docs.rs/googletest/latest/goog

#rust #googletest #python #pytest




Show Original Post


05.09.2025 11:21
holdenweb (@holdenweb@freeradical.zone)

#python tip. If you are tempted to write expressions like

return True if (some Boolean expression) else False

what you are actually saying to the interpreter is "If this expression is True then return True, otherwise return False." So it's simpler to return the Boolean expression directly. So for example

return True if email == "someone@example.com" else False

can (and IMHO usually should) be rewritten as

return email == ""someone@example.com"




Show Original Post


05.09.2025 11:06
andreagrandi (@andreagrandi@mastodon.social)

Would you like to work with me?

Supertab is looking for another Senior Python Backend Developer.

Position is fully remote.

Pay is €85k - €92k

Details and apply form laterpay.jobs.personio.de/job/




Show Original Post


05.09.2025 10:32
trilader (@trilader@chaos.social)

Things I didn't want to build/debug for doing some remote file ops with #sftp via #python + #paramiko :

"Add option to sleep between jobs

This was added because with $PROVIDER_NAME counting files sometimes fails with -EACCES even though we have a 755 mode on the directory that failed.
With some delay during processing/between jobs (even running with -vvv causes enough) that doesn't happen..."

The original code ran multiple times an hour for several years and stated failing this week...




Show Original Post


05.09.2025 10:30
PyConUK (@PyConUK@fosstodon.org)

⭐️ Talk spotlight! ⭐️

🎙10 Python Performance Mistakes I Won’t Make Again by @sash

Find out more here: pretalx.com/pyconuk-2025/talk/

🎟️ Grab your ticket! 2025.pyconuk.org/tickets/

#PyConUK2025 #Python





Show Original Post


05.09.2025 10:03
JGraber (@JGraber@mastodon.social)

Friday #295: A Simple Strategy to Tackle Errors

pythonfriday.dev/2025/09/295-a




Show Original Post


05.09.2025 09:28
petbrain (@petbrain@mastodon.social)

Meow!

Mixins drew pet into huge refactoring. Multiple inheritance was never easy.

Interfaces that were vague now come into the shape. Everything is based on interfaces now.

Pet cannot see the end of this refactoring so it has to revise priorities:

1. Write pet apps in a temporary language for now.
2. Finish
3. Finish refactoring.

(1) is a difficult choice. Pet was about to get back to , but does not want to become stupid again. maybe?




Show Original Post


05.09.2025 09:15
pyconza (@pyconza@fosstodon.org)

If you applied for an opportunity grant, URGENTLY check your email (and spam folder). If you don't accept your grant we will need to pass it onto someone else!

We are still raising money to support more people. If you are in a position to make a donation, check this out: za.pycon.org/donations . We still have a long way to go!

#PyConAfrica #Python





Show Original Post


1 ...1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 ...1550
UP