www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Python and D could work together?

reply "ReverseFlux" <dani.98 libero.it> writes:
Hi guys,
I've been thinking for quite some time if there is any 
possibility of writing D modules for python do you think it's 
possible? Do you think I can use the already existing wrappers 
created for C++?
Jan 24 2014
next sibling parent reply "Tobias Pankrath" <tobias pankrath.net> writes:
On Friday, 24 January 2014 at 20:26:02 UTC, ReverseFlux wrote:
 Hi guys,
 I've been thinking for quite some time if there is any 
 possibility of writing D modules for python do you think it's 
 possible? Do you think I can use the already existing wrappers 
 created for C++?
You can always use the C-Interface for cpython.
Jan 24 2014
next sibling parent "ReverseFlux" <dani.98 libero.it> writes:
On Friday, 24 January 2014 at 21:10:23 UTC, Tobias Pankrath wrote:
 On Friday, 24 January 2014 at 20:26:02 UTC, ReverseFlux wrote:
 Hi guys,
 I've been thinking for quite some time if there is any 
 possibility of writing D modules for python do you think it's 
 possible? Do you think I can use the already existing wrappers 
 created for C++?
You can always use the C-Interface for cpython.
Thanks for The answer Does it work proprerly with D?
Jan 24 2014
prev sibling parent Russel Winder <russel winder.org.uk> writes:
On Fri, 2014-01-24 at 21:10 +0000, Tobias Pankrath wrote:
 On Friday, 24 January 2014 at 20:26:02 UTC, ReverseFlux wrote:
 Hi guys,
 I've been thinking for quite some time if there is any 
 possibility of writing D modules for python do you think it's 
 possible? Do you think I can use the already existing wrappers 
 created for C++?
You can always use the C-Interface for cpython.
That doesn't deal with using PyPy. -- Russel. ============================================================================= Dr Russel Winder t: +44 20 7585 2200 voip: sip:russel.winder ekiga.net 41 Buckmaster Road m: +44 7770 465 077 xmpp: russel winder.org.uk London SW11 1EN, UK w: www.russel.org.uk skype: russel_winder
Jan 25 2014
prev sibling next sibling parent "Martin Cejp" <minexew gmail.com> writes:
With user-defined annotations and compile-time traits, you could 
make a pretty smooth binding framework based on, for example, the 
CPython api.
Jan 24 2014
prev sibling parent reply "John Colvin" <john.loughran.colvin gmail.com> writes:
On Friday, 24 January 2014 at 20:26:02 UTC, ReverseFlux wrote:
 Hi guys,
 I've been thinking for quite some time if there is any 
 possibility of writing D modules for python do you think it's 
 possible? Do you think I can use the already existing wrappers 
 created for C++?
https://bitbucket.org/ariovistus/pyd
Jan 24 2014
parent "ReverseFlux" <dani.98 libero.it> writes:
On Friday, 24 January 2014 at 23:53:12 UTC, John Colvin wrote:
 On Friday, 24 January 2014 at 20:26:02 UTC, ReverseFlux wrote:
 Hi guys,
 I've been thinking for quite some time if there is any 
 possibility of writing D modules for python do you think it's 
 possible? Do you think I can use the already existing wrappers 
 created for C++?
https://bitbucket.org/ariovistus/pyd
Thanks a lot guys for your help!
Jan 25 2014