Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8043947
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T05:04:27+00:00 2026-06-05T05:04:27+00:00

Given mmap’s constructor declaration: class mmap.mmap(fileno, length[, flags[, prot[, access[, offset]]]]) How do I

  • 0

Given mmap’s constructor declaration:

class mmap.mmap(fileno, length[, flags[, prot[, access[, offset]]]])

How do I specify both access & offset?

The documentation states:

access may be specified in lieu of flags and prot as an optional
keyword parameter. It is an error to specify both flags, prot and
access. See the description of access above for information on how to
use this parameter.

So I’ve tried to do things like

  • mmap.mmap(file_no, length, offset, access=mmap.ACCESS_COPY)
  • mmap.mmap(file_no, length, access=mmap.ACCESS_COPY, offset=offset)

    m = mmap.mmap(f.fileno(), 4, access=mmap.ACCESS_COPY, offset=2)
    Traceback (most recent call last):
    File “”, line 1, in
    mmap.error: [Errno 22] Invalid argument

  • mmap.mmap(file_no, length, mmap.ACCESS_COPY, offset)

But I can’t get it to work. Why is this confusing me so much?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T05:04:28+00:00Added an answer on June 5, 2026 at 5:04 am

    This error is unrelated to access. As documented, the offset just must be a multiple of mmap.PAGESIZE or mmap.ALLOCATIONGRANULARITY.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Given: class StringRecord : INotifyPropertyChanged { public string Key { get; set; } //
Given a abstract factory implementation: public class FooFactory : IFooFactory { public IFoo Create(object
Given a simple class in C++ with a private member variable name and a
Given the following classes: class Department { public String Name { get; set; }
Given the following declaration: <Extension()> Public Function ToJSON(ByVal target As Object) As String Dim
Given markup like this: <div class=a>A</div> <div class=b>B</div> <div class=a>A</div> <div class=b>B</div> <div class=a>A</div>
Given the following table: id category_id categorizable_id categorizable_type 66 22 67 Image 72 22
Given: Two vertically placed elements on the screen (ViewPager and Fragment) Action in the
Given the following conditions: two BigDecimal values: b1 and b2 ; x - Integer;
Given the above dynamically generated text (meaning that I can't just use an image),

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.