[Python-checkins] python/dist/src/Mac/Modules/icn icnsupport.py,1.8,1.9

jackjansen@users.sourceforge.net jackjansen@users.sourceforge.net
Tue, 03 Dec 2002 15:40:52 -0800


Update of /cvsroot/python/python/dist/src/Mac/Modules/icn
In directory sc8-pr-cvs1:/tmp/cvs-serv10318/icn

Modified Files:
	icnsupport.py 
Log Message:
Added PEP253 support to most Carbon modules. This isn't complete yet:
some of the more compilcated cases (CF, Res) haven't been done yet. Also,
various types should inherit from each other (anything with an as_Resource
method should be a Resource subtype, the CF types should become one family).


Index: icnsupport.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Modules/icn/icnsupport.py,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** icnsupport.py	29 Nov 2002 23:40:43 -0000	1.8
--- icnsupport.py	3 Dec 2002 23:40:20 -0000	1.9
***************
*** 55,59 ****
  """
  
! class MyObjectDefinition(PEP252Mixin, GlobalObjectDefinition):
  	def outputCheckNewArg(self):
  		Output("if (itself == NULL) return PyMac_Error(resNotFound);")
--- 55,59 ----
  """
  
! class MyObjectDefinition(PEP253Mixin, GlobalObjectDefinition):
  	def outputCheckNewArg(self):
  		Output("if (itself == NULL) return PyMac_Error(resNotFound);")