Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct __sizeof__ support for mmap #59901

Closed
serhiy-storchaka opened this issue Aug 16, 2012 · 3 comments
Closed

Correct __sizeof__ support for mmap #59901

serhiy-storchaka opened this issue Aug 16, 2012 · 3 comments
Assignees
Labels
OS-windows stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error

Comments

@serhiy-storchaka
Copy link
Member

BPO 15696
Nosy @jcea, @tjguk, @briancurtin, @serhiy-storchaka
Files
  • mmap_sizeof-3.x.patch: Patch for 3.2 and 3.3
  • mmap_sizeof-2.7.patch: Patch for 2.7
  • mmap_sizeof-3.x_2.patch
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = 'https://github.com/serhiy-storchaka'
    closed_at = <Date 2014-08-19.18:46:20.676>
    created_at = <Date 2012-08-16.19:31:38.895>
    labels = ['type-bug', 'library', 'OS-windows']
    title = 'Correct __sizeof__ support for mmap'
    updated_at = <Date 2014-08-19.18:46:20.674>
    user = 'https://github.com/serhiy-storchaka'

    bugs.python.org fields:

    activity = <Date 2014-08-19.18:46:20.674>
    actor = 'serhiy.storchaka'
    assignee = 'serhiy.storchaka'
    closed = True
    closed_date = <Date 2014-08-19.18:46:20.676>
    closer = 'serhiy.storchaka'
    components = ['Library (Lib)', 'Windows']
    creation = <Date 2012-08-16.19:31:38.895>
    creator = 'serhiy.storchaka'
    dependencies = []
    files = ['26858', '26859', '33061']
    hgrepos = []
    issue_num = 15696
    keywords = ['patch']
    message_count = 3.0
    messages = ['168402', '205700', '225532']
    nosy_count = 6.0
    nosy_names = ['jcea', 'tim.golden', 'brian.curtin', 'python-dev', 'aliles', 'serhiy.storchaka']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue15696'
    versions = ['Python 2.7', 'Python 3.4', 'Python 3.5']

    @serhiy-storchaka
    Copy link
    Member Author

    Here is a patch that implements correct __sizeof__ for mmap under Windows.

    I have not tested it because it is Windows-only issue. Please test it.

    @serhiy-storchaka serhiy-storchaka added stdlib Python modules in the Lib dir OS-windows type-bug An unexpected behavior, bug, or error labels Aug 16, 2012
    @serhiy-storchaka serhiy-storchaka self-assigned this Dec 29, 2012
    @serhiy-storchaka
    Copy link
    Member Author

    Synchronized with tip.

    @python-dev
    Copy link
    Mannequin

    python-dev mannequin commented Aug 19, 2014

    New changeset 4aba144b752d by Serhiy Storchaka in branch '2.7':
    Issue bpo-15696: Add a __sizeof__ implementation for mmap objects on Windows.
    http://hg.python.org/cpython/rev/4aba144b752d

    New changeset ca4a22256bf8 by Serhiy Storchaka in branch '3.4':
    Issue bpo-15696: Add a __sizeof__ implementation for mmap objects on Windows.
    http://hg.python.org/cpython/rev/ca4a22256bf8

    New changeset f543171d7f41 by Serhiy Storchaka in branch 'default':
    Issue bpo-15696: Add a __sizeof__ implementation for mmap objects on Windows.
    http://hg.python.org/cpython/rev/f543171d7f41

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    OS-windows stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant