beginner's pyd question - exporting structs to python
Russel Winder via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Mon Aug 18 11:08:49 PDT 2014
On Mon, 2014-08-18 at 17:17 +0000, Laeeth Isharc via Digitalmars-d-learn
wrote:
> Thank to jwhear on irc who solved it for me despite claiming not
> to be a pyd guru.
:-)
[…]
> distutils.util.get_platform(),
[…]
Does os.uname() not provide sufficient information?
[…]
> print mystruct.i
> print mystruct.s
Should use print as a function not as a statement. Use Python 3, or if
you have to use Python 2 (which almost no-one does):
from __future__ import print_function
as the first statement.
--
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
More information about the Digitalmars-d-learn
mailing list