This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Carbon.Snd module SPB constructor shadowed
Type: behavior Stage:
Components: macOS Versions: Python 2.7
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: jackjansen Nosy List: ajaksu2, jackjansen, mendenhall, ronaldoussoren
Priority: low Keywords:

Created on 2003-07-23 21:20 by mendenhall, last changed 2022-04-10 16:10 by admin. This issue is now closed.

Messages (4)
msg17309 - (view) Author: Marcus Mendenhall (mendenhall) Date: 2003-07-23 21:20
I recently found an apparent bug in the automatically 
generated wrappers for Carbon.Snd.  
There is a name conflict over SPB, which is both declared as 
a type object, and as a constructor for an SPB.  The type 
object is shadowing the SPB constructor, so it is impossible 
to build SPBs, and thus impossible to do much with the 
module.  There are two names for the SPB data type -- SPB 
and SPBType, generated by the wrapper generator.  The 
SPBType should probably be kept, while SPB() should be 
unshadowed to allow creation of SPBs.  The error can be 
trivially replicated by just importing Carbon.Snd and 
attempting to create an SPB with a=Snd.SPB(), which 
returns an error.

msg17310 - (view) Author: Jack Jansen (jackjansen) * (Python committer) Date: 2003-07-24 22:25
Logged In: YES 
user_id=45365

I've manually edited _Sndmodule.c to get rid of the SPB name for 
SPBType. This is a stopgap for the 2.3 distribution, eventually the 
fix will have to be in sndgen.py, but at least that should make 
Carbon.Snd work again for 2.3rc2.
msg81853 - (view) Author: Daniel Diniz (ajaksu2) * (Python triager) Date: 2009-02-13 02:47
The edit took place in rev33677 and is gone from the source, closing
unless objections are voiced.
msg82369 - (view) Author: Ronald Oussoren (ronaldoussoren) * (Python committer) Date: 2009-02-17 21:10
I've reapplied the hack.

I'm closing the issue because we will not regenerate the Carbon bindings 
as these are deprecated and are no longer present in Python 3.x
History
Date User Action Args
2022-04-10 16:10:11adminsetgithub: 38920
2009-02-17 21:10:14ronaldoussorensetstatus: open -> closed
nosy: + ronaldoussoren
resolution: later -> fixed
messages: + msg82369
2009-02-13 02:47:08ajaksu2setpriority: normal -> low
nosy: + ajaksu2
type: behavior
messages: + msg81853
versions: + Python 2.7
2003-07-23 21:20:46mendenhallcreate