[wxPython] wxPython & Python2C

Has anyone out there tried optimizing portions of their wxPython apps with
Python2C? If so, I would really like to get some advice. Basically, under
Linux I've Python2C-ed my main frame, due to some of the time intensive
algorithms it contains. When I go to run the application with its compiled
extension, I get something like the following:
.../wxPython/frames.py, line 108 in __init__, "self.this =
apply(framesc.new_wxFrame, _args, _kwargs"
TypeError: Illegal argument type for built in operation

Has anyone else seen/dealt with this?

Let me know and best regards to all,

Steve
Steve_Thompson@maxtor.com

···

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/mailman/listinfo/wxpython-users

Has anyone out there tried optimizing portions of their wxPython apps with
Python2C? If so, I would really like to get some advice. Basically,

under

Linux I've Python2C-ed my main frame, due to some of the time intensive
algorithms it contains. When I go to run the application with its

compiled

extension, I get something like the following:
.../wxPython/frames.py, line 108 in __init__, "self.this =
apply(framesc.new_wxFrame, _args, _kwargs"
TypeError: Illegal argument type for built in operation

You might try hacking frames.py to print out the values of _args and _kwargs
to see what the values/types are. If they don't match what new_wxFrame is
expecting then you'll get this error.

Does the same app work when you don't use Python2C?

···

--
Robin Dunn
Software Craftsman
robin@AllDunn.com
http://wxPython.org Java give you jitters?
http://wxPROs.com Relax with wxPython!

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/mailman/listinfo/wxpython-users