Skip to content

mmap is not implemented #2059

Closed
Closed

Description

@yihyunjoon

Feature

Currently, I'm working on adding test_os.py test file. Then I met this error.

Traceback (most recent call last):
  File "Lib/test/test_os.py", line 15, in <module>
    import mmap
ModuleNotFoundError: No module named 'mmap'

mmap module in CPython is not implemented on RustPython.

Python Documentation

https://docs.python.org/3/library/mmap.html

Activity

  1. added
    C-compatA discrepancy between RustPython and CPython
    on Aug 2, 2020
  2. coolreader18 commented on Aug 2, 2020

    @coolreader18
    Member

    Hmm, yeah, that would be tricky. For now you can probably just comment out that import line and skip any tests that use mmap

  3. darleybarreto commented on Sep 7, 2020

    @darleybarreto

    Perhaps translating fmmap and combining with memmap2-rs would do the trick for now.

  4. canewsin commented on Feb 23, 2022

    @canewsin

    Status ?

  5. youknowone commented on Feb 23, 2022

    @youknowone
    Member

    nothing known progress

  6. youknowone commented on Mar 10, 2022

    @youknowone
    Member

    not working, but #3564

  7. killme2008 commented on May 18, 2022

    @killme2008
    Contributor

    @youknowone may i try this issue?

  8. youknowone commented on May 18, 2022

    @youknowone
    Member

    @killme2008 sure! you can work on #3564 if you want. If you want to start from zero base, still reading it will be helpful to understand how you can add a new module.

  9. killme2008 commented on May 18, 2022

    @killme2008
    Contributor

    @youknowone Great, thank you for the suggestion. I will read it.

  10. fanninpm commented on Jun 14, 2022

    @fanninpm
    Contributor

    After a significant amount of effort, #3755 has been merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-stdlibC-compatA discrepancy between RustPython and CPython

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions