mmap.mmap.move() is missing

Abierto
#1,368 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

@deronnax ya está trabajando en esto.

Desde el 26/11/2026.

  • #1370 de @deronnax — abierto

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
62/100
Tipo de issue
Nueva funcionalidad
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
java, python
Área
backend

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
Python
Estrellas
1.7k
Forks
167
Merge medio
3 d 11 h
PR fusionados (30 d)
68

Preparar el entorno

Abrir en Codespaces

Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de oracle/graalpython

Todos los issues de oracle/graalpython

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.