-
Hello there,
I started working on a backend interface for my physical quantity package, similar to `pint`. The general idea of the interface is to make it easier to wrap any kind of numerical-like…
-
### Self Checks
- [X] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general).
- [X] I have s…
-
In Python 3.6, dictionaries are versioned with an integer key that changes every time they are updated. This should allow a Numba-compiled function (CPU, CUDA, etc) to quickly detect if global values…
-
### What is your issue?
If I do the following in repl, I get the weird behavior (described in comments).
```
>> import xarray as xr
>> import numpy as np
>> foo=xr.Variable(('x',), np.ones(10))…
-
Consider a simple ALU
```python
@m.combinational
def alu(a: m.Bits[8], b:m.Bits[8], op: m.Bits[2]) -> m.Bits[8]:
if op == 0:
return a + b
elif op == 1:
return a - b
…
-
Equal objects must have the same hash if they are hashable (http://docs.python.org/2/reference/datamodel.html#object.__hash__):
```
sage: my_func = function('func',nargs=1)
sage: f = my_func(0)
sag…
-
Here is a scratch of how implementing items using classes should look like:
```python
@attr.s
class Item:
"""An Item in the Pokémon world."""
cost: int = attr.ib(init=False)
sell…
-
The current Latex printer does a pretty good job of automatically finding a reasonable representation for a Symbol based on its name, but if a user wants more precise control they are essentially forc…
-
Here are the freedoms that we have in implementation dictionaries:
* Hash function
* load factor / initial size of an array
* array resizing strategy (rehashing or not)
* key collision strategy
…
-
* mashumaro version: 3.13.1
* Python version: 3.11
* Operating System: MacOS Sonoma 14.6
### Description
I tried to use tuples as dict keys and got an exception `TypeError: unhashable type: 'lis…