mmap.mmap.move() is missing
I maintainer di solito rispondono entro 1 giorno
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 62/100
Direzione di ricerca
Start with the reproduction: mmap.mmap in GraalPy is missing the move() method, which CPython's test_mmap.MmapTests.test_move exercises. Find where the existing mmap methods such as size or seek are defined in the GraalPy runtime and check how move(dest, src, cnt) is expected to copy bytes within the buffer. Done when region.move(1, 0, 4) on a 6-byte region yields b'aabcdf' and the CPython test passes.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
I found this while benchmarking the conformance of alternative Python implementations against CPython: the same standard library cases and selected CPython tests run on CPython, PyPy, GraalPy and RustPython.
mmap.mmap has no move() method, which the mmap documentation lists on every platform.
Reproduction
import mmap
region = mmap.mmap(-1, 6)
region[:] = b"abcdef"
region.move(1, 0, 4)
print(region[:])
CPython 3.12.15 prints b'aabcdf'. GraalPy raises:
AttributeError: 'mmap.mmap' object has no attribute 'move'
CPython's test_mmap.MmapTests.test_move fails for the same reason.
Versions
- GraalPy 25.2.4 Community (Python 3.12.8), Linux x86-64 and macOS aarch64 standalone builds
- GraalPy 25.6.5 Community (Python 3.13.14), macOS aarch64 standalone build
This report was drafted with the help of AI. The reproductions were run on the GraalPy versions listed above, and on CPython 3.12.15 for the expected output.
- Lingua principale
- Python
- Stelle
- 1.7k
- Fork
- 167
- Merge medio
- 3g 11h
- PR unite (30g)
- 68
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di oracle/graalpython
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
oracle/graalpython#1105 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
oracle/graalpython#1102 ·
I maintainer di solito rispondono entro 1 giorno
-
mmap extended slicing ignores the step; negative steps raise java.lang.IndexOutOfBoundsExceptionAperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 64/100
oracle/graalpython#1367 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 22/100
oracle/graalpython#1366 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
oracle/graalpython#1365 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di oracle/graalpython
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
bug improve content
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 92/100
opensafely/documentation#2102 ·
I maintainer di solito rispondono entro 1 giorno
-
difficulty:1 documentation
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
MakazhanAlpamys/Soup#3533 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
onyx-dot-app/onyx#18730 ·
I maintainer di solito rispondono entro 1 giorno