python

Back Open Paginator
03.11.2025 00:07
diazona (@diazona@techhub.social)

@hgfernan @mdione Only if the module is poorly written. A good module won't run any code when it just gets imported, or if anything just the bare minimum needed to do its own imports.

#Python




Show Original Post


02.11.2025 23:49
mdione (@mdione@en.osm.town)

I almost started bashing (#python'ing?) my head against the desk because I only read this for the first time ever:

> The functions `debug()`, `info()`, `warning()`, `error()` and `critical()` will call `basicConfig()` automatically if no handlers are defined for the root logger.

I run my code with `pdb` and reached `logging.basicConfig()`'s line `if len(root.handlers) == 0`. It failed, so someone called one of those functions before I called `basicConfig()`. Fixed by `basicConfig()` ASAP.




Show Original Post


02.11.2025 23:17
moehrenfeld (@moehrenfeld@social.karotte.org)

Learned the hard way: Try to upload a dummy #Python package with your preferred name to @pypi first or you might find out, after setting up the repository, the documentation and everything else… that your package name is too similar to an existing package. Which there is no way to check for before uploading. 🥲




Show Original Post


02.11.2025 23:09
safest_integer (@safest_integer@mastodon.social)

I just published a small project called PocketBook on github:

github.com/sieste/pocketbook

A python script minifies Project Gutenberg books, for printing on standard office paper, to fold into a book the size of a credit card that you can carry around in your pocket.

Please let me know if you try it out, especially if something doesn't work.

Also feel free to request your favourite books, and I'll try to add them to the repository.

@gutenberg_org





Show Original Post


02.11.2025 23:08
davidvujic (@davidvujic@mastodon.nu)

I'm glad that I didn't rush into fixing a missing feature in my Open Source project too quickly, but instead let the 🧠 background process work & come up with ideas that I think turned out to be good.

Mostly I want to solve things really fast to help the users. But this needed a few days to experiment and think about. Today I released a new version of the Python tools for the Polylith architecture, and I hope it will be a useful addition!

github.com/DavidVujic/python-p

#monorepo #polylith #python




Show Original Post


02.11.2025 22:25
lobsters (@lobsters@mastodon.social)

Making an Easy-to-Install Application in Python lobste.rs/s/xtfzxb
gokmengorgen.net/2025/11/02/ma




Show Original Post


02.11.2025 22:20
gicrisf (@gicrisf@fosstodon.org)

Since I'm tweaking my qutebrowser config again, I updated my public config.

I noticed I had only pushed my org-mode version before, expecting users to tangle it themselves, but I can't expect every qutebrowser user to be an Emacs user, so I pushed the tangled version too

github.com/gicrisf/qute-config

#qutebrowser #python




Show Original Post


02.11.2025 22:10
r (@r@fed.brid.gy)

Making an Easy-to-Install Application in Python

fed.brid.gy/r/https://gokmengo





Show Original Post


02.11.2025 21:36
feed (@feed@feedsin.space)

Python 3.13.9

Release date: 2025-10-14 13:58:56+00:00

python




Show Original Post


02.11.2025 21:36
feed (@feed@feedsin.space)

Python 3.9.25

Release date: 2025-10-31 19:03:29+00:00

python




Show Original Post


02.11.2025 21:15
AdamOnza (@AdamOnza@mastodon.online)

I once designed a programming language, called Dot. The grammar:
program = '.'.

The only valid program was just '.', a dot, but the dot was the compiler. So you could bootstrap a Dot compiler, by simply translating '.' into your favorite language, then compiling the program. xD
#Python
def dotcompile(prog):
assert prog=="."
s = 'def dotcompile(prog):\n\tassert prog=="."\n\ts = %r\n\tprint(s%%s)\n'
print(s%s)

In a way, all compilers are quines.🤔




Show Original Post


02.11.2025 21:05
jobsfordevelopers (@jobsfordevelopers@mastodon.world)

SumUp is hiring Senior Data Analyst

🔧 #python #aws #cicd #seniorengineer
🌎 Warszawa, Poland
⏰ Full-time
🏢 SumUp

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




Show Original Post


1 ...1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 ...1565
UP