-
Consider
repr :: PointSupply a -> Point a -> Point a
descriptor :: PointSupply a -> Point a -> a
equivalent :: PointSupply a -> Point a -> Point a -> Bool
They do not perfor…
-
Amongst other things #73459 cc @jbschlosser added the ability add custom "prefixes" to `Tensor.__repr__` through the `tensor_contents` parameter:
```py
>>> t = torch.rand(3)
>>> t.__repr__(tensor…
-
### Pandas version checks
- [X] I have checked that this issue has not already been reported.
- [X] I have confirmed this bug exists on the [latest version](https://pandas.pydata.org/docs/whatsnew/i…
-
I noticed from the README example that `repr(u8)` is currently not propagated to the generated tag enum. This can make it more difficult to reconcile the tagged and untagged enums with each other, esp…
-
I'm trying to take an existing Python library, and allow it to be used remotely over the network. The library creates and returns Python objects which contain C library handles, so AFAIK they cannot b…
-
uPy currently implements depth-first MRO, which is equivalent to one used pre-Python2.2.
References:
- http://python-history.blogspot.com/2010/06/method-resolution-order.html
- https://www.python.org/…
-
e.g. in the code below, the ipython display object has a method `_repr_html_()`. If SageWS's display mechanism doesn't know what to do, it could check if that method exists and render the output as ht…
-
# Documentation
The chapter "When to use `__new__()` vs. `__init__()`" starts with a sample class `Coordinate(bytes, Enum)` and later use 'int' instead of bytes. I would suggest the code here unde…
fkhn updated
6 months ago
-
Is it possible to add support for `#[repr(C, Int)]` enums?
In the [Type layout](https://doc.rust-lang.org/reference/type-layout.html) reference it says:
The representation of a repr(C) enum …
-
rustc has a `PassMode` enum to declare how arguments should be passed between functions. `PassMode::Direct` is used for the simple case where we can just generate LLVM IR with an argument type that ma…