mmap.mmap.move() is missing

Aberta
#1,368 0 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

@deronnax já está trabalhando nisso.

Desde 26/11/2026.

  • #1370 de @deronnax — aberto

Avaliação

Dificuldade
3/5
Tempo estimado
1-2 dias
Facilidade para iniciantes
62/100
Tipo de issue
Funcionalidade
Clareza
Claramente especificada
Status de atividade
Ativa
Stack de tecnologia
java, python
Domínio
backend

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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.

Linguagem predominante
Python
Estrelas
1.7k
Forks
167
Merge médio
3d 11h
PRs com merge (30d)
68

Preparar o ambiente

Abrir no Codespaces

Inicia o contêiner de desenvolvimento do projeto no navegador, com a sua própria conta do GitHub.

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de oracle/graalpython

Todas as issues de oracle/graalpython

Issues semelhantes

Mais issues de Python

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.