[ python-Bugs-1034277 ] Why does Python link to Foundation?

SourceForge.net noreply at sourceforge.net
Mon Sep 27 03:29:01 CEST 2004


Bugs item #1034277, was opened at 2004-09-24 15:05
Message generated for change (Comment added) made by etrepum
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1034277&group_id=5470

Category: Macintosh
Group: Python 2.4
Status: Open
Resolution: None
Priority: 5
Submitted By: Bob Ippolito (etrepum)
Assigned to: Jack Jansen (jackjansen)
Summary: Why does Python link to Foundation?

Initial Comment:
I can't see any reason for Python to link to Foundation, so I don't 
think it should.  Am I missing something?

----------------------------------------------------------------------

>Comment By: Bob Ippolito (etrepum)
Date: 2004-09-26 21:29

Message:
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)

----------------------------------------------------------------------

Comment By: Bob Ippolito (etrepum)
Date: 2004-09-26 21:18

Message:
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.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1034277&group_id=5470


More information about the Python-bugs-list mailing list