Campbell Barton
fd2b115678
Python BGE API
...
- Initialize python types with PyType_Ready, which adds methods to the type dictionary.
- use Pythons get/setattro (uses a python string for the attribute rather then char*). Using basic C strings seems nice but internally python converts them to python strings and discards them for most functions that accept char arrays.
- Method lookups use the PyTypes dictionary (should be faster then Py_FindMethod)
- Renamed __getattr -> py_base_getattro, _getattr -> py_getattro, __repr -> py_base_repr, py_delattro, py_getattro_self etc.
From here is possible to put all the parent classes methods into each python types dictionary to avoid nested lookups (api has 4 levels of lookups in some places), tested this but its not ready yet.
Simple tests for getting a method within a loop show this to be between 0.5 and 3.2x faster then using Py_FindMethod()
2009-04-03 14:51:06 +00:00
..
2009-04-03 14:51:06 +00:00
2009-03-24 15:45:08 +00:00
2008-09-04 20:51:28 +00:00
2008-07-10 12:47:20 +00:00
2008-09-04 20:51:28 +00:00
2009-04-03 14:51:06 +00:00
2009-04-03 14:51:06 +00:00
2009-02-19 13:42:07 +00:00
2008-10-31 21:06:48 +00:00
2008-09-04 20:51:28 +00:00
2009-04-03 14:51:06 +00:00
2009-04-03 14:51:06 +00:00
2009-02-25 03:26:02 +00:00
2009-01-14 22:33:39 +00:00
2009-04-03 14:51:06 +00:00
2009-04-03 14:51:06 +00:00
2009-04-03 14:51:06 +00:00
2009-04-03 14:51:06 +00:00
2008-04-16 22:40:48 +00:00
2008-04-16 22:40:48 +00:00
2009-04-03 14:51:06 +00:00
2009-04-03 14:51:06 +00:00
2009-02-25 12:07:51 +00:00
2009-04-03 14:51:06 +00:00
2009-04-03 14:51:06 +00:00
2009-04-03 14:51:06 +00:00
2009-04-03 14:51:06 +00:00
2009-03-09 07:12:16 +00:00
2009-03-29 19:54:05 +00:00
2008-04-16 22:40:48 +00:00
2008-04-16 22:40:48 +00:00
2009-04-03 14:51:06 +00:00
2009-04-03 14:51:06 +00:00
2009-04-03 14:51:06 +00:00
2009-04-03 14:51:06 +00:00
2008-04-16 22:40:48 +00:00
2009-01-13 22:59:18 +00:00
2009-01-14 22:33:39 +00:00
2009-02-25 03:26:02 +00:00
2008-09-23 20:07:15 +00:00
2009-04-03 14:51:06 +00:00
2009-04-03 14:51:06 +00:00
2008-04-16 22:40:48 +00:00
2008-04-16 22:40:48 +00:00
2008-09-04 20:51:28 +00:00
2008-04-16 22:40:48 +00:00
2009-03-09 05:01:16 +00:00
2008-11-26 17:38:54 +00:00
2009-04-03 14:51:06 +00:00
2009-04-03 14:51:06 +00:00
2008-04-16 22:40:48 +00:00
2008-04-16 22:40:48 +00:00
2008-08-17 17:08:00 +00:00
2008-07-25 13:45:57 +00:00
2009-04-03 14:51:06 +00:00
2009-04-03 14:51:06 +00:00
2008-04-16 22:40:48 +00:00
2008-04-16 22:40:48 +00:00
2009-04-03 14:51:06 +00:00
2009-04-03 14:51:06 +00:00
2009-04-03 14:51:06 +00:00
2009-04-03 14:51:06 +00:00
2008-04-16 22:40:48 +00:00
2008-04-16 22:40:48 +00:00
2009-04-03 14:51:06 +00:00
2009-04-03 14:51:06 +00:00
2009-01-13 22:59:18 +00:00
2009-01-13 22:59:18 +00:00
2008-04-16 22:40:48 +00:00
2008-04-16 22:40:48 +00:00
2009-04-03 14:51:06 +00:00
2009-04-03 14:51:06 +00:00
2008-04-16 22:40:48 +00:00
2009-04-03 14:51:06 +00:00
2009-04-03 14:51:06 +00:00
2008-04-16 22:40:48 +00:00
2009-04-03 14:51:06 +00:00
2009-04-03 14:51:06 +00:00
2009-04-03 14:51:06 +00:00
2009-04-03 14:51:06 +00:00
2008-04-16 22:40:48 +00:00
2008-04-16 22:40:48 +00:00
2008-10-10 05:12:57 +00:00
2008-04-16 22:40:48 +00:00
2009-02-23 06:41:10 +00:00
2009-02-23 06:41:10 +00:00
2009-04-03 14:51:06 +00:00
2008-10-31 21:06:48 +00:00
2009-04-03 14:51:06 +00:00
2009-04-03 14:51:06 +00:00
2009-04-03 14:51:06 +00:00
2009-04-03 14:51:06 +00:00
2008-08-27 19:34:19 +00:00
2008-08-27 19:34:19 +00:00
2008-07-30 17:41:47 +00:00
2008-07-30 17:41:47 +00:00
2009-04-03 14:51:06 +00:00
2009-04-03 14:51:06 +00:00
2009-04-03 14:51:06 +00:00
2009-04-03 14:51:06 +00:00
2009-04-03 14:51:06 +00:00
2009-04-03 14:51:06 +00:00
2009-04-03 14:51:06 +00:00
2009-04-03 14:51:06 +00:00
2009-04-03 14:51:06 +00:00
2009-04-03 14:51:06 +00:00
2008-04-16 22:40:48 +00:00
2008-04-16 22:40:48 +00:00
2008-04-16 22:40:48 +00:00
2008-04-16 22:40:48 +00:00
2009-04-03 14:51:06 +00:00
2009-04-03 14:51:06 +00:00
2009-04-03 14:51:06 +00:00
2009-04-03 14:51:06 +00:00
2009-02-25 06:43:03 +00:00
2008-04-16 22:40:48 +00:00
2009-02-25 06:43:03 +00:00
2008-06-14 17:12:49 +00:00
2009-04-03 14:51:06 +00:00
2009-04-03 14:51:06 +00:00
2009-04-03 14:51:06 +00:00
2009-04-03 14:51:06 +00:00
2009-01-14 22:33:39 +00:00
2009-01-14 22:33:39 +00:00
2008-04-16 22:40:48 +00:00
2008-04-16 22:40:48 +00:00
2008-04-16 22:40:48 +00:00
2008-04-16 22:40:48 +00:00
2008-08-05 16:23:33 +00:00
2008-07-30 17:41:47 +00:00
2009-04-03 14:51:06 +00:00
2009-04-03 14:51:06 +00:00
2009-04-03 14:51:06 +00:00
2009-04-03 14:51:06 +00:00
2009-04-03 14:51:06 +00:00
2009-04-03 14:51:06 +00:00
2009-04-03 14:51:06 +00:00
2009-04-03 14:51:06 +00:00
2009-04-03 14:51:06 +00:00
2009-04-03 14:51:06 +00:00
2008-04-16 22:40:48 +00:00
2008-04-16 22:40:48 +00:00
2008-04-16 22:40:48 +00:00
2008-04-16 22:40:48 +00:00
2008-09-04 20:51:28 +00:00
2009-02-25 12:07:51 +00:00