You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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=<Date2008-05-29.21:25:47.692>created_at=<Date2008-05-14.20:09:37.575>labels= ['type-bug', 'library', 'release-blocker']
title='Add gestalt back into Python 3.0'updated_at=<Date2008-05-29.21:25:47.670>user='https://github.com/brettcannon'
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).
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).
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.
Activity
brettcannon commentedon May 14, 2008
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).
brettcannon commentedon May 14, 2008
Actually, the plat-darwin comment is not right if the original C version
is kept since that would just end up in Modules.
benjaminp commentedon May 14, 2008
Does it have to be public? How about _gestalt?
brettcannon commentedon May 14, 2008
On Wed, May 14, 2008 at 1:37 PM, Benjamin Peterson
<report@bugs.python.org> wrote:
That's fine by me. If someone really cares enough they can document it
themselves.
benjaminp commentedon May 15, 2008
I feel kinda bad about removing the module without noting how it was
used in platform.py, so I'll deal with this.
brettcannon commentedon May 15, 2008
On Wed, May 14, 2008 at 6:01 PM, Benjamin Peterson
<report@bugs.python.org> wrote:
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).
benjaminp commentedon May 15, 2008
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.
benjaminp commentedon May 19, 2008
This is just a reminder to myself that when this is checked in, I need
to unblock and merge r63460 and r63464.
benjaminp commentedon May 29, 2008
_gestalt was added in 63795.