[Pyrex] Bug and fix: `__pyx_k2p' undeclared here (not in a function)

Michael P. Dubner pywebmail at list.ru
Tue Jun 22 22:14:47 CEST 2004


Hello,

I've managed to find when and why error "`__pyx_knnnp' undeclared here" 
appears.
Here is as simple as possible bug demo code:
------------ bug.pyx
class C:
  a='non-id string'
------------
And here is patch:
------------ Symtab.py.diff
*** Symtab.py    Sat May  1 15:38:04 2004
--- Symtab.new.py    Wed Jun 23 00:04:12 2004
***************
*** 381,387 ****
                  entry.is_interned = 1
              else:
                  entry.pystring_cname = entry.cname + "p"
!                 self.pystring_entries.append(entry)
                  self.global_scope().all_pystring_entries.append(entry)
     
      def new_const_cname(self):
--- 381,387 ----
                  entry.is_interned = 1
              else:
                  entry.pystring_cname = entry.cname + "p"
!                 self.global_scope().pystring_entries.append(entry)
                  self.global_scope().all_pystring_entries.append(entry)
     
      def new_const_cname(self):
------------
Still I'm not sure this won't affects something else.

--
Best regards,
Michael Dubner (dubnerm at mindless.com)
Brainbench MVP/HTML+JavaScript (http://www.brainbench.com)
PS: Sorry for my English





More information about the Pyrex mailing list