Georg Brandl
Georg Brandl
Problem is, you can't *remove* dependencies with feature flags. So `core2` will have to be always a dependency, just not used if `std` is set.
There is obviously no way when using `vec::IntoIter`, but that is also not really necessary. The iterator type should just need a reference to the Py object, and an index.
I don't think this is a bug - Python's hashes can never be 128-bit wide, so it doesn't make sense to allow 128-bit hash returns from `__hash__`. Implementing `WrappingCastTo` would...
The "not handling correctly" just means that we aren't handling negative indices specially anymore, I think. This is intended.
Proc-macros on `mod` are stable in 1.48.0, so we could make a pass at implementing a new `pymodule` now.
Should be unsafe to implement then.
Requiring `unsafe fn traverse` (even if it's not called from user code) is probably good enough.
Alternatively, stop modeling `__traverse__` as a freely implementable method, and make it a macro with declarative syntax, where you just give the `self` members that should be visited. (Same would...
Should this be a discussion?
Would be interesting to see what C extensions do.