Georg Brandl
Georg Brandl
I guess once Client is Sync it is not a problem anymore to get rid of the lifetime...
TBH, I don't know anymore :)
FWIW, I agree with Armin. None kind of plays two roles in Python, which are covered by None:: and () in Rust, while the empty Python tuple is seen rarely,...
> For me storing () somewhere does not make a lot of sense, because it does not have a meaningful value (beyond type system trickery). And the same is true...
Can you show some code or details where the string comes from and what you do with it? In particular, is there stdin/stdout or files involved? Normal string conversions between...
The Rust string is not involved here, neither is Rust's string encoding. You get the same exception from this: ``` py.eval("print('ß')", None, None).unwrap(); ``` or even by importing a second...
> I think this is not entirely correct. Rust Strings and &strs are UTF-8 encoded [0]. The raw, byte representation (UTF-8 encoded) is then directly handed over to the Python...
HOWEVER: I just realized that with `LANG=C` (or `LANG=bogus`) there are two different outcomes in the interpreter and a PyO3 generated executable with embedded Python: Python defaults to UTF-8 stdout...
I'm not sure that we should switch from not matching `python` in one way to doing it in another way :) The least surprising behavior would be to match the...
Why does it have to be this implicit? A single new attribute or argument (on the struct, not the members) isn't too much to write, and makes it explicit that...