[Python-checkins] r83611 - in python/branches/py3k/Tools/framer/framer: bases.py template.py

georg.brandl python-checkins at python.org
Tue Aug 3 00:58:25 CEST 2010


Author: georg.brandl
Date: Tue Aug  3 00:58:25 2010
New Revision: 83611

Log:
Make the framer run (still generates wrong code for module creation though.)

Modified:
   python/branches/py3k/Tools/framer/framer/bases.py
   python/branches/py3k/Tools/framer/framer/template.py

Modified: python/branches/py3k/Tools/framer/framer/bases.py
==============================================================================
--- python/branches/py3k/Tools/framer/framer/bases.py	(original)
+++ python/branches/py3k/Tools/framer/framer/bases.py	Tue Aug  3 00:58:25 2010
@@ -199,7 +199,7 @@
         p(template.type_struct_start)
         for s in Slots[:-5]: # XXX
             val = self.__slots.get(s, s.default)
-            ntabs = 4 - (4 + len(val)) / 8
+            ntabs = 4 - (4 + len(val)) // 8
             line = "        %s,%s/* %s */" % (val, "\t" * ntabs, s.name)
             print(line, file=f)
         p(template.type_struct_end)

Modified: python/branches/py3k/Tools/framer/framer/template.py
==============================================================================
--- python/branches/py3k/Tools/framer/framer/template.py	(original)
+++ python/branches/py3k/Tools/framer/framer/template.py	Tue Aug  3 00:58:25 2010
@@ -76,7 +76,7 @@
 
 module_init_start = """\
 PyMODINIT_FUNC
-init%(ModuleName)s(void)
+PyInit_%(ModuleName)s(void)
 {
         PyObject *mod;
 


More information about the Python-checkins mailing list