Python

6288 readers
3 users here now

Welcome to the Python community on the programming.dev Lemmy instance!

📅 Events

PastNovember 2023

October 2023

July 2023

August 2023

September 2023

🐍 Python project:
💓 Python Community:
✨ Python Ecosystem:
🌌 Fediverse
Communities
Projects
Feeds

founded 1 year ago
MODERATORS
376
 
 

This usage test works already. Whadda ya guys think?

377
2
submitted 1 year ago by thedeepself to c/python
 
 

The Pure #Python #webapp survey is here - https://metaperl.github.io/pure-python-web-development/intro.html

Recent Updates

378
 
 

pytheus is a modern python library for collecting prometheus metrics built with multiprocessing in mind.

379
380
381
20
submitted 1 year ago* (last edited 1 year ago) by [email protected] to c/python
 
 

Hello fellow lemmians (I hope that is correct), I want to learn a programming language in my free time, like a hobby and not necessarly for work. I think a general purpose language like python would be a good choice. I'm the type who prefer paperback books to minimize distraction and I would like your recommendation for a book, Im thinking about "Python crash course 3d edition" but feel free to suggest something else

382
 
 

Simple Python [executable] version management, that is.

383
13
submitted 1 year ago* (last edited 1 year ago) by jnovinger to c/python
 
 

Via https://mastodon.social/@hynek/110655873748943682

It has a single purpose: to help you write correct retry logic effortlessly.

If you’ve looked at it before: it now has proper docs, support for async, and retries of arbitrary code blocks.

384
385
24
Pillow 10.0.0 release (pillow.readthedocs.io)
submitted 1 year ago by jnovinger to c/python
386
12
submitted 1 year ago* (last edited 1 year ago) by jnovinger to c/python
 
 

The Github profile: https://github.com/davep/

387
388
389
 
 

Hi everyone!
I am learning about using selenium and/or playwright and I'm struggling with something that I am struggling to find a good solution to.
Prevent webRTC leaking my real IP when using proxies with either Selenium or Playwright.

There's plenty of janky workarounds I've seen but they all just seem like they have issues and/or cause issues. What would be the right way to prevent WebRTC IP leaking?

390
 
 

After seeing the work someone else did with migrating your subscriptions across accounts. I took their code and expanded upon it to fully synchronize your Lemmy instance accounts.

Feel free to give it a try. It's been useful for me to have accounts in multiple instances with the instability problems right now from the big influx of users.

Let me know what you think. Hopefully it can help a few people.

391
392
 
 

Originally saw this in a post by the author on Mastodon: https://fosstodon.org/@rednafi/110644868109506095

393
 
 

See Seth's earlier post Announcing that he was taking up the place: https://sethmlarson.dev/security-developer-in-residence

394
 
 

One of the coolest projects I've seen: a lisp that is embedded into Python. Hy compiles to Python AST so it's (almost) fully interoperable with Python (some notes about it here).

395
20
submitted 1 year ago* (last edited 1 year ago) by qwop to c/python
 
 

A post about how this community's banner used the python 2 print syntax - print "Hello World" - made me question, can we print a hello world message in Python 3 without using parentheses?

It turned out to be sort of a fun challenge, I've found 3 different approaches that work. I'd be interested to see what you come up with! (it seems I can't put spoilers in Lemmy, so I won't share my solutions yet in case y'all want to have a go).

Edit: Posted my solutions in the comments

396
20
submitted 1 year ago* (last edited 1 year ago) by [email protected] to c/python
 
 
Python 3.11.3 (main, Jun  5 2023, 09:32:32) [GCC 13.1.1 20230429] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> print "Hello World"
  File "<stdin>", line 1
    print "Hello World"
    ^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?

I hope this doesnt reflect on the Quality of this community 🤡

397
 
 

Also will provide automated posts in it for new releases etc.

398
 
 

The Pure Python web framework survey is here - https://metaperl.github.io/pure-python-web-development/intro.html

Recent Updates

399
400
 
 

Austin is a Python frame stack sampler for CPython written in pure C. Samples are collected by reading the CPython interpreter virtual memory space to retrieve information about the currently running threads along with the stack of the frames that are being executed. Hence, one can use Austin to easily make powerful statistical profilers that have minimal impact on the target application and that don't require any instrumentation.

view more: ‹ prev next ›