3 ms·
> while keeping it somewhat WSGI-compatible There's the problem. WSGI is fundamentally flawed too - it could also be using generators for a two-way communicati
by 904baf11 7y ago
> while keeping it somewhat WSGI-compatible
There's the problem. WSGI is fundamentally flawed too - it could also be using generators for a two-way communication channel instead of stringly typed callbacks.
In a world where Python has optional static type hints, it would be nice to have concrete objects passed too.
- orf 7y agoCan you expand on the stringly typed callbacks? Where are they required? Are you referring to string keys in a callback dictionary, in which case stringly-typed seems a bit of an odd choice of words.
- 904baf11 7y agoCalling the receive async function gets you a dictionary with a string type key, which defines the layout of the dictionary. It's not nice.