[Python-checkins] python/dist/src/Mac/Modules/scrap scrapsupport.py,1.6,1.7
jackjansen@users.sourceforge.net
jackjansen@users.sourceforge.net
2002年11月29日 15:40:49 -0800
Update of /cvsroot/python/python/dist/src/Mac/Modules/scrap
In directory sc8-pr-cvs1:/tmp/cvs-serv8673/scrap
Modified Files:
scrapsupport.py
Log Message:
Converted the Carbon modules to use PEP252-style objects, with
descriptors in stead of manual getattr hooks to get at attributes
of the objects.
For Qd I have in stead gotten rid of most of the attribute access
in favor of the carbon-style accessor methods (with the exception
of visRgn, to be done later), and of the Carbon.Qd.qd global object,
for which accessor functions are also available.
For List I have fixed the fact that various methods were incorrectly
generated as functions.
CF is untouched: PEP252 doesn't allow "poor-mans-inheritance" with
basechain, so it will have to wait for PEP253 support.
Index: scrapsupport.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Modules/scrap/scrapsupport.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** scrapsupport.py 18 Nov 2002 15:26:42 -0000 1.6
--- scrapsupport.py 29 Nov 2002 23:40:47 -0000 1.7
***************
*** 56,60 ****
putscrapbuffer = FixedInputBufferType('void *')
! class MyObjectDefinition(GlobalObjectDefinition):
pass
--- 56,60 ----
putscrapbuffer = FixedInputBufferType('void *')
! class MyObjectDefinition(PEP252Mixin, GlobalObjectDefinition):
pass