Re: PythonWin troubleshooting

2005-12-17 Thread Greg Chapman
just delete the above key, and PythonWin will recreate it the next time it is run). I guess there is no guarantee that you will not run into this again, but, as I said, I have not seen it recur with the latest builds of PythonWin. --- Greg Chapman -- http://mail.python.org/mailman/listinfo/python-list

Re: super with only one argument

2005-03-17 Thread Greg Chapman
Greg Chapman wrote: > Steven Bethard wrote: > > > When would you call super with only one argument? The only examples > > I can find of doing this are in the test suite for super. > > > > I think it's to allow something like this: > > class A(B, C

Re: super with only one argument

2005-03-17 Thread Greg Chapman
er.foo() This allows you to rename A and only have to change one super call to reflect the new name. --- Greg Chapman -- http://mail.python.org/mailman/listinfo/python-list

Re: segfault when calling Python from C thread

2005-02-21 Thread Greg Chapman
Fredrik Lundh wrote: > Greg Chapman wrote: > > > Your callback function needs to hold the Python GIL (and have a > > vaild threadstate) before it calls any Python C-API functions. > > Change the last part of it to: > > > >PyGILState_STATE state; > >

Re: segfault when calling Python from C thread

2005-02-20 Thread Greg Chapman
lback threads execute. (This call is made automatically if you are creating new threads using Python's thread module, but if the new threads are created by some C code, you need to call it yourself.) --- Greg Chapman -- http://mail.python.org/mailman/listinfo/python-list