Agent-Hellboy / Agent-Hellboy/trace-dkey

Dictionary keys can be forzenset

Aperta
#14 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub
enhancement hacktoberfest
Lingua principale
Python
Stelle
8
Fork
6
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

```py
>>> l = ["Geeks", "for", "Geeks"]
>>> s=frozenset(l)
>>> s
frozenset({'for', 'Geeks'})
>>> dict={1:'a',2:{s:'frozenset'}}
>>> from trace_dkey import trace
>>> trace(dict,p)
[]
```
this should return [2,s]
but this is very tricky as frozenset are ast.Call object `[]`

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.