commonism
commonism
Hi, I already implemented this in https://github.com/Dorthu/openapi3/pull/69 - been quite a lot. ```python import httpx import json import pydantic import pytest from aiopenapi3 import OpenAPI DD = """ paths: /pets:...
It's even worse for [-2](https://docs.python.org/3/library/functions.html#slice). I guess this is not about using slice, but you'd prefer dedicated arguments/parameters instead of the single start:stop:step slice parameter?
Missing [__slots__](https://betterprogramming.pub/optimize-your-python-programs-for-free-with-slots-4ff4e1611d9d) - I did not consider this to be optimized for performance. But nice comparison - what did you use for the numbers?
Dropping reflection and looking on the raw performance to create an object and access the properties for normal/slots/dataclasses: ```python import dataclasses import timeit import datetime import copy import typing class...
You've been competing with `AMD Ryzen 5 PRO 4650U with Radeon Graphics`. I've updated the PR to use `NoCopy/Slots`.
https://www.cpubenchmark.net/compare/1983vs4272vs3547vs4827/Intel-Xeon-L5639-vs-AMD-Ryzen-9-5900-vs-AMD-EPYC-7742-vs-AMD-Ryzen-5-PRO-6650U due to clock - the numbers for 7742 (ubuntu 23.04/py3.10) are 10-14% worse than my ryzen mobile: ``` create Baseline 1.0522814639998614 NoCopy 1.0588048629997502 NoCopy/Slots 1.1171760289998929 Optimized 1.136160388999997 Optimized/KW 1.3660570930001086...
I added redacting own messages in rooms functionality to the archiver bot. https://github.com/russelldavies/matrix-archive/compare/master...commonism:redact
possible via https://github.com/corpusops/bitwardentools/pull/18 ```python def api_key(): return {"client_id": "…", "client_secret":"…", "scope":"api", "grant_type":"client_credentials"} client = Client(server, email, password, mfa_cb=api_key) client.sync() ```
Email/Password is required for 2fa, pass empty strings for api key via cb. Not a beauty, but … consider this cosmetics.
You could have kept my commit. To me this is borderline copyright infringement.