Moving from Python to D
Russel Winder via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Fri May 8 08:37:23 PDT 2015
On Fri, 2015-05-08 at 03:24 +0000, avarisclari via Digitalmars-d-learn
wrote:
> Hello,
>
> Sorry to bother you with something trivial, but I am having
> trouble translating a block of code I wrote in Python over to D.
> Everything else I've figured out so far. Could someone help me
> understand how to get this right?
>
> Here's the python:
This is Python 2 not Python 3!
Do you have a definition for scenes so I can run the code. Are there any
tests of any sort?
For me Step 1 is to make this Python 3 and much more idiomatic Python.
Doing this will also make the route to a D implementation far more
obvious.
--
Russel.
=============================================================================
Dr Russel Winder t: +44 20 7585 2200 voip: sip:russel.winder at ekiga.net
41 Buckmaster Road m: +44 7770 465 077 xmpp: russel at winder.org.uk
London SW11 1EN, UK w: www.russel.org.uk skype: russel_winder
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: This is a digitally signed message part
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20150508/0b168511/attachment.sig>
More information about the Digitalmars-d-learn
mailing list