-
Here's a comprehensive list of dunder methods that can be overloaded in Python:
Arithmetic Operators:
__add__: Addition (+)
__sub__: Subtraction (-)
__mul__: Multiplication (*)
__truediv__: T…
-
### Current problem
I'm using pyreverse to visualize the structure of sympy which is a fairly large project, with a lot of relations modelled by classes, but also some functionality like iterators im…
-
```py
class A:
def __getattr__(self, attr):
reveal_type(attr) # str
```
-
### Review Mojo's priorities
- [X] I have read the [roadmap and priorities](https://docs.modular.com/mojo/roadmap.html#overall-priorities) and I believe this request falls within the priorities.
###…
-
One looks like:
https://github.com/sagemath/sage/blob/31e216689afea5bc4e0daaee0122c546f42d1da5/src/sage/libs/mpmath/ext_main.pyx#L1784-L1794
i.e. context's rounding mode is ignored and this function…
-
### Bug Description
When I ask the LLM to graph using seaborn, I get this error even though Seaborn is in the allowed imports.
RuntimeError: Execution of code containing references to private or d…
-
### Bug description
When converting an unbound method (on a class) to a bound method (on an object) by calling `__get__`, pylint emits an `unnecessary-dunder-call` warning:
```py
class Cls:
…
-
I can do:
- `__breakpointhook__`
- `__displayhook__`
- `__excepthook__`
- `__interactivehook__`
- `__unraisablehook__`
- `__file__`
I could also do: `__stderr__`,`__stdin__`, `__stdout__`, `_…
-
_Originally posted by @fubuloubu in https://github.com/vyperlang/vyper/issues/3716#issuecomment-1873545832_
```vyper
# NOTE: Could be defined as an internal library type
struct Ledger(HashMap[a…
-
**PLEASE DO CHIME IN WITH YOUR THOUGHTS**
My personal idea for this module is:
To have a raku module that does this set of things around HTMX (see [htmx.org](htmx.org)):
- write web pages in …