Yes, everybody should do this.

- easier to import
- the exception hierarchy is obvious
- limit the risk of circular imports
- it has no value to be in context, it takes space

Afficher le fil de discussion

RT @willmcgugan@twitter.com

A pet peeve of mine is when a library throws an exception, and there is no easy way to find where that exception may be imported from.

I prefer all (non internal) exceptions to live in an errors submodule so it's a no brainer.

Anyone else follow this convention?

🐦🔗: twitter.com/willmcgugan/status

I've been now using Open Office draw to edit any PDF form I'm give to fill for years. I even have a scanned hand signature I copy / paste on it.

Nobody ever says anything about it. For the french administration, there is no difference with a paper form.

Nice.

In case you want to test what threads with no GIL feels like, you can already compile the source code from here github.com/colesbury/nogil

RT @pypyproject@twitter.com

PyPy 7.3.6 triple release! Support for cpython versions 2.7, 3.7 and for the first time a beta release of 3.8 support! Other highlights are much faster bootstrapping, fixes of various other bugs and performance regressions pypy.org/posts/2021/10/pypy-v7

🐦🔗: twitter.com/pypyproject/status

Want to know everything about your python install?

$ python3 -m sysconfig
Platform: "linux-x86_64"
Python version: "3.9"
Current installation scheme: "posix_prefix"

Paths:
data = "/home/user/.cache/pypoetry/virtualenvs/foo-py3.9"
...

Yank terminal output to clipboard github.com/mptre/yank

Pipe a cli output to yank to get a lines/seps split of the content, from which you can select and copy to clipboard.

Top Level Await in

groups.google.com/g/python-ide

That would be quite nice. Await is "explicit enough" to state that I want to run the event loop.

Also, can't wait for TaskGroup in 3.11. Now if could could get coroutines to be automatically scheduled to the nearest group...

RT @1st1@twitter.com

I'll probably write a blog post about this. Glad to see our pep accepted, we will soon (and finally!) have task groups in asyncio. 🥳 twitter.com/Yhg1s/status/14415

🐦🔗: twitter.com/1st1/status/144216

Basically, this stuff take your face, make a real life looking avatar out of it, then send the movement of your face and animate the avatar that actually really, really looks like you IRL. Brilliant.

Afficher le fil de discussion

RT @AIMatesanz@twitter.com

NVIDIA has just announced Maxine: AI SDK for video conferencing.

The most intriguing feature is the reduction of video bandwidth by sending only lightweight facial landmarks of a speaker. On the other side the face is re-generated from landmarks with NN.

📉 @loss_function_porn@twitter.com

🐦🔗: twitter.com/AIMatesanz/status/

RT @tiangolo@twitter.com

Imagine I apply to that FastAPI job requiring 4+ years of experience ✅

They accept my 1.5+ experience (as the author) ⏳

Next requirement: a specific degree 👨‍🎓

This is my latest official diploma 🌈

Can we also rethink those degree requirements? 🤔

...mine is preschool 🤷

🐦🔗: twitter.com/tiangolo/status/12

RT @python_tip@twitter.com

Instead of

for i in tqdm(range(N)):
...

to get a progress bar while iterating from 0 to N-1, you can use a shortcut `trange`

from tqdm import trange

for i in trange(N):
...

🐦🔗: twitter.com/python_tip/status/

Damn those persons that can right click and read. Americans are not uneducated enough!

RT @GovParsonMO@twitter.com

Through a multi-step process, an individual took the records of at least three educators, decoded the HTML source code, and viewed the SSN of those specific educators.

We notified the Cole County prosecutor and the Highway Patrol’s Digital Forensic Unit will investigate.

🐦🔗: twitter.com/GovParsonMO/status

RT @GovParsonMO@twitter.com

Through a multi-step process, an individual took the records of at least three educators, decoded the HTML source code, and viewed the SSN of those specific educators.

We notified the Cole County prosecutor and the Highway Patrol’s Digital Forensic Unit will investigate.

🐦🔗: twitter.com/GovParsonMO/status

When I coded github.com/Tetricoins/tetripin, a cli for OTP, I thought I would not really use it: no installer, seeds in plain text, on the computer I enter the pin from...

Turns out it's the side project I use the most. Seeds are on a veracrypt drive though :)

RT @mrocklin@twitter.com

Who should I try to recruit to work on Dask?

Any recommendations?

🐦🔗: twitter.com/mrocklin/status/14

Déplier
Framapiaf

Le réseau social de l'avenir : Pas d'annonces, pas de surveillance institutionnelle, conception éthique et décentralisation ! Possédez vos données avec Mastodon !