python

Back Open Paginator
17.03.2026 21:16
h4ckernews (@h4ckernews@mastodon.social)

Python 3.15's JIT is now back on track

fidget-spinner.github.io/posts




Show Original Post


17.03.2026 21:14
diazona (@diazona@techhub.social)

@xahteiwi Agreed, although I would argue the knob should be logging.basicConfig() (or, generally speaking, the level and filter facilities provided by the logging module). Libraries shouldn't be defining their own environment variables to control logging; that's the application developer's responsibility.

#Python




Show Original Post


17.03.2026 21:12
CuratedHackerNews (@CuratedHackerNews@mastodon.social)

Python 3.15's JIT is now back on track

fidget-spinner.github.io/posts




Show Original Post


17.03.2026 21:11
diazona (@diazona@techhub.social)

@sunray @ellie It's not really a problem with pip itself, the problem is people blindly running `pip install` (or worse, `sudo pip install` on Unix-like systems) without using a virtual environment, which winds up installing packages into their one "global" Python environment. If you do that, sooner or later you run into conflicting versions of dependencies, and in some cases it can break your system. pipx and similar tools solve that by automatically creating a fresh virtual environment for every program you install with them.

#Python




Show Original Post


17.03.2026 21:08
xahteiwi (@xahteiwi@mastodon.social)

If you are a developer who maintains a client library for a REST API, do you know how you can make me, a user of your library, truly happy?

Riddle your library with `logging` calls. And give me a easy knob, preferably an environment variable, to turn the log level up. Way up.




Show Original Post


17.03.2026 20:02
publickey1 (@publickey1@rss-mstdn.studiofreesia.com)

JavaにJavaScriptエンジン「V8」とPythonランタイム「CPython」を組み込む「Project Detroit」、オラクルが発表
publickey1.jp/blog/26/javajava

#publickey1 #Java #JavaScript #プログラミング言語 #Oracle #Python




Show Original Post


17.03.2026 19:40
wolframkriesing (@wolframkriesing@mastodontech.de)

Wow, #PHP you make it interesting to use traits and "extend" them ... I would never have guessed that.

class Something {
use ExportTrait {
createA as traitCreateA;
createB as traitCreateB;
}
public function createA() {
return $this->traitCreateA();
}
}

And in #python it happens that you can even guess how it might be done without knowing the syntax. Less often, but it happened to me.




Show Original Post


17.03.2026 19:15
lobsters (@lobsters@mastodon.social)

Python 3.15’s JIT is now back on track lobste.rs/s/nvlqyc
fidget-spinner.github.io/posts




Show Original Post


17.03.2026 19:14
rtn (@rtn@chaos.social)

Do you have any suggestions of good books around python and numpy/scipy?

#python #numpy #scipy




Show Original Post


17.03.2026 19:06
bterwijn (@bterwijn@fosstodon.org)

Automatic data structure visualization in your IDE using 𝗺𝗲𝗺𝗼𝗿𝘆_𝗴𝗿𝗮𝗽𝗵:
- web debugger binary tree demo: memory-graph.com/#codeurl=http
- setup video for VS Code: youtu.be/23_bHcr7hqo

#Python #programming #memory_graph





Show Original Post


17.03.2026 19:00
247CodeGirl (@247CodeGirl@mastodon.social)

Season 1 Lesson 9 Part 4 - Your First Steps Python Booleans Made Easy For Professional Coders Fast





Show Original Post


17.03.2026 18:43
treyhunner (@treyhunner@mastodon.social)

Python Tip #76 (of 365):

Don't call the string split() method with a space character

Instead of this:

words = some_string.split(" ")

Do this:

words = some_string.split()

Calling the split method without arguments will:

• Trim whitespace from either end of the string
• Split by any amount of consecutive whitespace characters

Note that "whitespace characters" isn't just spaces: newlines and tabs count also.

More on the split() method: pym.dev/string-split-method/




Show Original Post


1 ...311 312 313 314 315 316 317 318 319 320 321 ...1594
UP