Todd A. Jacobs · @todd_a_jacobs
8 followers · 73 posts · Server ruby.social

I need a dummy server that can support but otherwise treats most commands as no-ops. I couldn't find anything well-maintained via GitHub or Ruby Toolbox other than the gem from Ruby's at:

ruby-doc.org/3.2.2/gems/net-im

Rather than gutting Net::IMAP, is there already a gem out there that can be used to support fetch-before-send clients like Apple's Mail that won't send email before completing POP3 or IMAP4 authentication?

#rubylang #imap #starttls #stdlib

Last updated 1 year ago

Serge Matveenko ♻️☮️Ⓐ · @lig
198 followers · 2464 posts · Server fosstodon.org

Python libs you're using (stdlib and not) that have better alternatives.

- `dataclasses` -> `attrs`
- `json` -> `orjson`
- `requests` -> `httpx`
- `pyoidc` -> `authlib`
- `pytest-freezegun` -> `time-machine`
- `aioredis` -> `redis`

Have I missed anything?

#python #programming #learn #stdlib #libraries #pypi

Last updated 2 years ago

Serge Matveenko ♻️☮️Ⓐ · @lig
198 followers · 2464 posts · Server fosstodon.org

Python stdlib's `pathlib.Path.with_suffix` is
utterly broken.

#python #stdlib #pathlib

Last updated 2 years ago

Stefano Zacchiroli · @zacchiro
1011 followers · 981 posts · Server mastodon.xyz

has someone drunkenly hit C-t again?

if name.startswith(('assert', 'assret')):
raise AttributeError("Attributes cannot start with 'assert' or 'assret'")

github.com/python/cpython/blob

#butwhy #python #stdlib

Last updated 4 years ago