Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

[Bug] Camel killer box and box dots gives unexpected behaviour

Aperta
#300 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

@Jerry-val ci sta già lavorando.

Dal 7/9/2026.

  • #324 di @Jerry-val — aperta

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
30/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
python
Ambito
backend

Direzione di ricerca

Inizia riproducendo i cinque accessi mostrati con Box({"someKey": ["a"]}, camel_killer_box=True, box_dots=True), confrontando i risultati per le chiavi snake_case, camelCase e con iniziale maiuscola. Determina il comportamento previsto per ogni ricerca, quindi aggiungi una copertura di regressione per il comportamento concordato e verifica che il caso incoerente di BoxKeyError sia stato risolto.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Hello! Thank you for this awesome package. The combination of camel killer box and box dots does exactly what I'm looking for. Well, almost - there's a couple of behaviours that are not working quite as I expected. I'm not sure how many of these are bugs or just my expectations are wrong but hopefully you can explain!

from box import Box

b = Box({"someKey": ["a"]}, camel_killer_box=True, box_dots=True)
b["some_key"]
# works as expected: BoxList(['a'])

b["some_key[0]"]
# works as expected: 'a'

b["someKey"]
# works but I don't know if it should? From the docs it sounds like the original camel-case
# version should have been destroyed completely, but this gives BoxList(['a'])

b["someKey[0]"]
# raises BoxKeyError - not sure whether this should work, but given that just "someKey" worked above
# it feels inconsistent at any rate

b["SomeKey"]
# works but I wouldn't expect it to! Is this meant to work?
Lingua principale
Python
Stelle
2.8k
Fork
138
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di cdgriffith/Box

Tutte le issue di cdgriffith/Box

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.