Skip to content

Add gestalt back into Python 3.0 #47103

Closed

Description

@brettcannon
BPO 2854
Nosy @brettcannon, @benjaminp
Files
  • gestalt_is_back.patch
  • gestalt_is_back2.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/benjaminp'
    closed_at = <Date 2008-05-29.21:25:47.692>
    created_at = <Date 2008-05-14.20:09:37.575>
    labels = ['type-bug', 'library', 'release-blocker']
    title = 'Add gestalt back into Python 3.0'
    updated_at = <Date 2008-05-29.21:25:47.670>
    user = 'https://github.com/brettcannon'

    bugs.python.org fields:

    activity = <Date 2008-05-29.21:25:47.670>
    actor = 'benjamin.peterson'
    assignee = 'benjamin.peterson'
    closed = True
    closed_date = <Date 2008-05-29.21:25:47.692>
    closer = 'benjamin.peterson'
    components = ['Library (Lib)']
    creation = <Date 2008-05-14.20:09:37.575>
    creator = 'brett.cannon'
    dependencies = []
    files = ['10336', '10370']
    hgrepos = []
    issue_num = 2854
    keywords = ['patch']
    message_count = 9.0
    messages = ['66828', '66831', '66832', '66836', '66837', '66838', '66878', '67076', '67512']
    nosy_count = 2.0
    nosy_names = ['brett.cannon', 'benjamin.peterson']
    pr_nums = []
    priority = 'release blocker'
    resolution = 'fixed'
    stage = None
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue2854'
    versions = ['Python 3.0']

    Activity

    1. brettcannon commented on May 14, 2008

      @brettcannon
      MemberAuthor

      gestalt was removed as part of the stdlib cleanup for Mac code. But it
      turns out that gestalt is one of those modules that is just needed. Either
      the original version needs to be added back in or a ctypes version needs
      to be implemented. Either way, something to get system info needs to be
      added back into the stdlib (and probably go into plat-darwin).

    2. added
      stdlibStandard Library Python modules in the Lib/ directory
      type-bugAn unexpected behavior, bug, or error
      on May 14, 2008
    3. brettcannon commented on May 14, 2008

      @brettcannon
      MemberAuthor

      Actually, the plat-darwin comment is not right if the original C version
      is kept since that would just end up in Modules.

    4. benjaminp commented on May 14, 2008

      @benjaminp
      Contributor

      Does it have to be public? How about _gestalt?

    5. brettcannon commented on May 14, 2008

      @brettcannon
      MemberAuthor

      On Wed, May 14, 2008 at 1:37 PM, Benjamin Peterson
      <report@bugs.python.org> wrote:

      Benjamin Peterson <musiccomposition@gmail.com> added the comment:

      Does it have to be public? How about _gestalt?

      That's fine by me. If someone really cares enough they can document it
      themselves.

    6. benjaminp commented on May 15, 2008

      @benjaminp
      Contributor

      I feel kinda bad about removing the module without noting how it was
      used in platform.py, so I'll deal with this.

    7. self-assigned this
      on May 15, 2008
    8. brettcannon commented on May 15, 2008

      @brettcannon
      MemberAuthor

      On Wed, May 14, 2008 at 6:01 PM, Benjamin Peterson
      <report@bugs.python.org> wrote:

      Benjamin Peterson <musiccomposition@gmail.com> added the comment:

      I feel kinda bad about removing the module without noting how it was
      used in platform.py, so I'll deal with this.

      While I am not going to stop you dealing with it, you shouldn't feel
      bad. It would have been best had a test case in test_platform picked
      this up (if you can it would be great to toss a test in).

    9. benjaminp commented on May 15, 2008

      @benjaminp
      Contributor

      Here's a patch. I moved gestalt to Modules and renamed it _gestalt. I
      inlined the few lines of pymactoolbox that I needed, so that doesn't
      have to come back.

    10. benjaminp commented on May 19, 2008

      @benjaminp
      Contributor

      This is just a reminder to myself that when this is checked in, I need
      to unblock and merge r63460 and r63464.

    11. benjaminp commented on May 29, 2008

      @benjaminp
      Contributor

      _gestalt was added in 63795.

    12. transferred this issue fromon Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    Labels

    release-blockerstdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions