Re: Class __init__ trouble

2006-01-17 Thread SkyRanger
Problem was solved by adding classes into new separate modules. -- http://mail.python.org/mailman/listinfo/python-list

Re: Class __init__ trouble

2006-01-17 Thread SkyRanger
So any one have ideas how to solve this problem??? I think my problem in code that adds new methods in class. Every time i add new methods it adds on single class or maybe globally. How to make it correctly??? -- http://mail.python.org/mailman/listinfo/python-list

Class __init__ trouble

2006-01-16 Thread SkyRanger
I create class: FOClassName:= PyString_FromString(ClasName); FClass:= PyClass_New(nil, FDict, FOClassName); PyDict_SetItemString(FDict, ClasName, FClass); Py_DECREF(FOClassName); Py_DECREF(FDict); Py_DECREF(FClass); Add methods for it: MyFunc:=PyCFunction_New(MyMethod, nil); MyMe

Bad argument to internal function when calling method

2006-01-05 Thread SkyRanger
Hi! I make class extension from Delphi, but i have problem. Here my code: // {pyClassMethod} function pyClassMethod( self, args : PPyObject ) : PPyObject; cdecl; var Strs : PChar; begin if PyArg_ParseTuple(args, 's',[EMAIL P