David Hewitt

Results 1495 comments of David Hewitt

That's totally fair points, and I'm happy to be wrong here and change this back. I wonder in a world where Rust has variadic generics based on tuples if `()`...

@messense does this seem correct to you? Seems to me like `cargo-zigbuild` might be passing the wrong information down rather than applying a patch here? 🤔

Can you explain your use-case why you want a return value here? If this is for type hinting, see #5137

Implemented in #5241 (however we still need to build a lot of the infrastructure)

See https://github.com/kbknapp/cargo-outdated/pull/423#issuecomment-3517155752 - sorry about this!

Thanks for the report. We have been reworking error handling to help avoid creating Python exceptions when in pure-rust code, which benefits performance. `CastError` is one such error. Making `CastError`...

Sorry it's taken me a few days to get to this discussion. Agreed that Rust Python string conversions are irrelevant here, both are unicode encoded. On the locale, yes I...

Quite possibly, yes. I think there's going to be quite a few of these defaults to figure out when implementing "better" Python initialization...

👍 I've been busy the past few days but lurking on this conversation; I was going to say that pointers are probably better than transmuting lifetimes. I'm keen to take...

Sure thing, the main thing that got it stuck was https://github.com/PyO3/pyo3/pull/5341#discussion_r2300036538 where someone needs to examine the semantics of class attribute initialization and decide what we want to guarantee.