Issue 1034277: Why does Python link to Foundation? (original) (raw)
This issue has been migrated to GitHub: https://github.com/python/cpython/issues/40952
classification
Title: | Why does Python link to Foundation? | ||
---|---|---|---|
Type: | Stage: | ||
Components: | macOS | Versions: | Python 2.4 |
process
Status: | closed | Resolution: | fixed |
---|---|---|---|
Dependencies: | Superseder: | ||
Assigned To: | jackjansen | Nosy List: | bob.ippolito, brett.cannon, jackjansen |
Priority: | normal | Keywords: |
Created on 2004-09-24 19:05 by bob.ippolito, last changed 2022-04-11 14:56 by admin. This issue is now closed.
Messages (6) | ||
---|---|---|
msg22545 - (view) | Author: Bob Ippolito (bob.ippolito) * ![]() |
Date: 2004-09-24 19:05 |
I can't see any reason for Python to link to Foundation, so I don't think it should. Am I missing something? | ||
msg22546 - (view) | Author: Bob Ippolito (bob.ippolito) * ![]() |
Date: 2004-09-27 01:18 |
Logged In: YES user_id=139309 mactoolboxglue seems to be the culprit. I don't think linking to Foundation is necessary, but it seems that CoreFoundation is (for now, anyway). locateResourcePy uses CoreFoundation, which is used in the public API implementation of PyMac_GetAppletScriptFile.. however PyMac_GetAppletScriptFile is not used anywhere! I would like to remove it. | ||
msg22547 - (view) | Author: Bob Ippolito (bob.ippolito) * ![]() |
Date: 2004-09-27 01:29 |
Logged In: YES user_id=139309 Removing those unused functions, we're left with two functions that require CoreServices: PyMac_StrError GetResource HLock HUnlock ReleaseResource PyMac_GetFullPathname FSpMakeFSRef FSMakeFSSpec FSpMakeFSRef FSRefMakePath I think these two functions can safely be refactored so that their functionality comes from elsewhere. Realistically, both of these functions could probably be written in Python anyway (it sure sounds like PyMac_GetFullPathname should be due to the comments) | ||
msg22548 - (view) | Author: Bob Ippolito (bob.ippolito) * ![]() |
Date: 2004-09-27 03:45 |
Logged In: YES user_id=139309 See patch at http://python.org/sf/1035255 | ||
msg22549 - (view) | Author: Brett Cannon (brett.cannon) * ![]() |
Date: 2004-11-06 19:49 |
Logged In: YES user_id=357491 Fixed by patch #1035255. | ||
msg22550 - (view) | Author: Brett Cannon (brett.cannon) * ![]() |
Date: 2004-11-06 20:08 |
Logged In: YES user_id=357491 Fixed by patch #1035255. |
History | |||
---|---|---|---|
Date | User | Action | Args |
2022-04-11 14:56:07 | admin | set | github: 40952 |
2004-09-24 19:05:08 | bob.ippolito | create |