In-place array repetition changes values without updating serialized TOML
Los mantenedores suelen responder en 3 días
@harbinresearcher ya está trabajando en esto.
Desde el 12/10/2026.
- #647 de @harbinresearcher — abierto
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 35/100
Línea de trabajo
Start with the array's in-place repetition behavior and the existing clear() and extend() paths mentioned in the issue. Add tests for a *= 0, a *= 2, and negative repetition that compare the array values, serialized TOML, and a subsequent mutation. Done means all three stay synchronized; the issue links open pull request #647, so check its status before starting.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
On current master (858186a3), in-place array repetition changes the Python list but leaves the serialized TOML unchanged:
import tomlkit
doc = tomlkit.parse("a = [1, 2]\n")
a = doc["a"]
a *= 0
assert a == []
print(tomlkit.dumps(doc)) # still a = [1, 2]
With a *= 2, the values become [1, 2, 1, 2], but the document still serializes [1, 2]. Negative repetition similarly clears the list without clearing the rendered values. The array remains the same object attached to the document.
I plan to synchronize this existing list operation by using the array's current clear() / extend() paths, with tests that compare values, serialization and subsequent mutation. This does not change sorting/reordering behavior discussed in #233.
Prepared with AI assistance. I found no repetition-related issue or PR; please flag any overlapping work.
- Lenguaje dominante
- Python
- Estrellas
- 859
- Forks
- 186
- Merge medio
- 4 d 14 h
- PR fusionados (30 d)
- 22
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Sin guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de python-poetry/tomlkit
-
tomlkit 0.15.1 fails on out-of-order table headerQuizá libre de nuevo Un pull request para esta issue se cerró sin fusionarse. Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
python-poetry/tomlkit#632 ·
Los mantenedores suelen responder en 3 días
-
`dumps(sort_keys=True)` only sorts the top level of a parsed document (nested tables / inline tables / AoT keep original order)Posiblemente ocupada @Sreekant13 la tomó hace 14 días. Abierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
python-poetry/tomlkit#614 · 2 comentarios ·
Los mantenedores suelen responder en 3 días
-
toml-test datetime cases use tomlkit's own parse_rfc3339 as the expected value, so they cannot detect datetime parsing bugsPosiblemente ocupada @ekanshul la tomó hace 6 días. Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 68/100
python-poetry/tomlkit#603 ·
Los mantenedores suelen responder en 3 días
-
unwrap raises KeyAlreadyPresent for an out-of-order AoT element extensionPosiblemente ocupada @davidpavlovschi la tomó hace 77 días. Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 72/100
python-poetry/tomlkit#577 ·
Los mantenedores suelen responder en 3 días
-
Looking for a co-maintainerAbierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 20/100
python-poetry/tomlkit#574 · 5 comentarios ·
Los mantenedores suelen responder en 3 días
Todos los issues de python-poetry/tomlkit
Issues similares
-
Broken links in the docsAbierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 78/100
uniswap-python/uniswap-python#487 ·
-
[Bug]: agent_final_response still returns the abandoned branch's answer after navigate moves HEAD backPosiblemente ocupada @enyst la tomó hoy. Abiertobug priority:low ready-for-dev
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
OpenHands/software-agent-sdk#5822 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 72/100
-
area: server enhancement good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
scs0209/laya-guard#52 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 2 días