Home » Developing U++ » U++ Developers corner » STARTED: Python in bazaar
Re: STARTED: Python in bazaar [message #31849 is a reply to message #31846] |
Thu, 31 March 2011 09:44 |
|
kohait00
Messages: 939 Registered: July 2009 Location: Germany
|
Experienced Contributor |
|
|
sound good...
my goal would be to only offer a small single interface to python, not too extensive.. focus on exporting some part of the API of a Upp side class to be available in python and vice versa.
this implys the Value - PyObject translation for the most common types in python
Value: PyObject:
int = long int
in64 = long long integer (theoretically it's unlimited)
double = real
bool = BOOL
String = String
Time = DateTime
Time = Time
Date = Date
Vector<Value> = tuple (Vector<> basicly to distinguish from list)
Array<Value> = list
ArrayMap<Value, Value> = dict
and ofcorse the methods for modules/classes or static funcitons API
i'm still thinnking of how to best do the latter part.
since somehow with the self PyObject we'd need to access the class instance..(module instance is always the same, for static functions self == NULL anyway). i think it'd be best to have the upp class have a python PyObject* instance of the python class, and have the PyObject instance have another PyObject* as private member (kind of a contect variable) which represents the this pointer of a upp class. so both classes are runtime connected without the need to use maps.
could you provide your sourcecode to learn?
BTW: have you been able to use the Python package in bazaar?
[Updated on: Thu, 31 March 2011 09:45] Report message to a moderator
|
|
|
|
|
STARTED: Python in bazaar
By: kohait00 on Wed, 30 March 2011 23:09
|
|
|
Re: STARTED: Python in bazaar
By: Novo on Thu, 31 March 2011 06:28
|
|
|
Re: STARTED: Python in bazaar
By: kohait00 on Thu, 31 March 2011 09:44
|
|
|
Re: STARTED: Python in bazaar
By: mirek on Thu, 31 March 2011 09:57
|
|
|
Re: STARTED: Python in bazaar
By: mirek on Thu, 31 March 2011 09:58
|
|
|
Re: STARTED: Python in bazaar
By: kohait00 on Thu, 31 March 2011 10:22
|
|
|
Re: STARTED: Python in bazaar
By: kohait00 on Thu, 31 March 2011 10:37
|
|
|
Re: STARTED: Python in bazaar
By: mirek on Thu, 31 March 2011 12:05
|
|
|
Re: STARTED: Python in bazaar
By: kohait00 on Thu, 31 March 2011 12:08
|
|
|
Re: STARTED: Python in bazaar
By: kohait00 on Thu, 31 March 2011 12:10
|
|
|
Re: STARTED: Python in bazaar
By: Novo on Mon, 04 April 2011 06:28
|
|
|
Re: STARTED: Python in bazaar
By: mirek on Mon, 04 April 2011 09:35
|
|
|
Re: STARTED: Python in bazaar
By: kohait00 on Mon, 04 April 2011 15:08
|
|
|
Re: STARTED: Python in bazaar
|
|
|
Re: STARTED: Python in bazaar
By: kohait00 on Mon, 04 April 2011 20:12
|
|
|
Re: STARTED: Python in bazaar
|
|
|
Re: STARTED: Python in bazaar
By: chickenk on Mon, 04 April 2011 21:35
|
|
|
Re: STARTED: Python in bazaar
|
|
|
Re: STARTED: Python in bazaar
By: kohait00 on Mon, 11 April 2011 14:56
|
|
|
Re: STARTED: Python in bazaar
By: kohait00 on Tue, 12 April 2011 23:57
|
|
|
Python in bazaar growing
|
|
|
Re: Python in bazaar growing
|
|
|
Re: Python in bazaar growing
|
|
|
Re: Python in bazaar growing
|
|
|
Re: Python in bazaar growing
|
|
|
Re: Python in bazaar growing
|
|
|
Re: Python in bazaar growing
|
|
|
Re: Python in bazaar growing
|
|
|
Re: Python in bazaar growing
|
|
|
Re: Python in bazaar growing
|
|
|
Re: Python in bazaar growing
|
|
|
Re: STARTED: Python in bazaar
By: chickenk on Thu, 31 March 2011 12:06
|
|
|
Re: STARTED: Python in bazaar
By: mirek on Thu, 31 March 2011 12:06
|
Goto Forum:
Current Time: Fri May 10 09:15:04 CEST 2024
Total time taken to generate the page: 0.01639 seconds
|