Problem with PythonWin 2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)] on win32.

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Problem with PythonWin 2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)] on win32.

Bob Gailer
I open a .py file, work away and all is OK.
I drag the vertical divider to show the object treeview.
I type some text then a period and get:

>>> Firing event 'KeyDot' failed.
Traceback (most recent call last):
  File "D:\Python27\Lib\site-packages\pythonwin\pywin\scintilla\bindings.py", line 142, in fire
    rc = binding.handler(*args)
  File "D:\Python27\Lib\site-packages\pythonwin\pywin\scintilla\view.py", line 307, in KeyDotEvent
    self._AutoComplete()
  File "D:\Python27\Lib\site-packages\pythonwin\pywin\scintilla\view.py", line 465, in _AutoComplete
    minline, maxline, curclass = self._GetClassInfoFromBrowser()
  File "D:\Python27\Lib\site-packages\pythonwin\pywin\scintilla\view.py", line 520, in _GetClassInfoFromBrowser
    if not browser.list: return (minline,maxline,None) # Not initialized
  File "D:\Python27\Lib\site-packages\pythonwin\pywin\tools\hierlist.py", line 62, in __getattr__
... many many more of this line
  File "D:\Python27\Lib\site-packages\pythonwin\pywin\tools\hierlist.py", line 62, in __getattr__
    return getattr(self, attr)
  File "D:\Python27\Lib\site-packages\pythonwin\pywin\tools\hierlist.py", line 60, in __getattr__
    return getattr(self.listControl, attr)
RuntimeError: maximum recursion depth exceeded

There is an extra period after the one I typed.

Can this be fixed?

-- 
Bob Gailer
919-636-4239
Chapel Hill NC

_______________________________________________
python-win32 mailing list
[hidden email]
http://mail.python.org/mailman/listinfo/python-win32
Reply | Threaded
Open this post in threaded view
|

Re: Problem with PythonWin 2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)] on win32.

Roger Upole-2
Looks like this is due to some of the changes to support Python 3.
As I recall, it was difficult to get the inheritance from pywin.mfc.object.Object
to work properly for both Python 2 and 3.  The autocomplete code is doing
some introspection, so the attribute lookup gets even more complicated.
I'll try to take a closer look at it this weekend.

     Roger



_______________________________________________
python-win32 mailing list
[hidden email]
http://mail.python.org/mailman/listinfo/python-win32