Re: Python 3 issue
Russel Winder <[email protected]>
| Newsgroups | gmane.comp.programming.tools.scons.devel |
|---|---|
| Message-ID | <[email protected]> |
On Fri, 2017-06-23 at 10:53 -0700, Bill Deegan wrote: > This change: > https://bitbucket.org/bdbaddog/scons-russel-example/commits/48899a710 > f9afbec891307addd6ae5b9c08d53c9?at=master > > Will make it work in py2 and py3. > > Any reason we can't live with that? On reflection that probably seems like what I should have written in the first place! Python 3 uses absolute imports with the . and .. exceptions. The absolute_import __future__ makes Python 2 behave the same to give consistency. Of course this only works if the parent package is imported. In this context that will always be the case, so it should be fine. I can definitely live with this as an idiom. I am now just embarrassed to have found this problem. :-) -- Russel. ============================================================================= Dr Russel Winder t: +44 20 7585 2200 voip: sip:[email protected] 41 Buckmaster Road m: +44 7770 465 077 xmpp: [email protected] London SW11 1EN, UK w: www.russel.org.uk skype: russel_winder _______________________________________________ Scons-dev mailing list [email protected] https://pairlist2.pair.net/mailman/listinfo/scons-dev
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEETwDs1X+Beyaiaer41L3V0s7Np7gFAllQxlQACgkQ1L3V0s7N p7hd3A//U2BwIuDaogUcxBK0gWhGV2j04ZY0cOBpXJMIbiLa5o2+4abuCnXU1Vpm CEYXF1Or10PTnIYvWtJn9TbOQ3KQH1N/yb1342H0mGLth1SsQiAw2nZRadKroLRn HcauXjgabp0YHEIKVITo5HXh1+PQtbYRwdI2FFRRZEq4u3S7DdChPoBnIOe0C90A G51FE3M4jg/cL5Sw9ee+BkGeUA2eTABvvd7VzJTuRyBeAbfsu6RygyQ2QPGTlVdC TPJa8kxkIzcRgqL3JpmqZ0OugxgO6rfS72PlDrRDoWGe4QDADmDIZOSEZBt5GHAi U1QvyqbnZeV3ALPA0W2qB1ac+89BKpCSM2vtTsx/e4/DVAUcOCC8AkrJLmfltHAe +hql21TsO6TdUgp/VhVL7Fk2dYdQswHoIjiTDJ/KTMcATz+F32wW7w+d9fXCK3P+ a1k9QsNN8YkdDsrt6WC44AzQO7z0YNfy7RZb14qvFHiYUAXt/cXqv9kPzPOgfU8u 7mVC9UOT8AIUr76Tp2StUx8BG4+z3CnbWkWfuAyRbamjh33kdwq7f0MEciCHg4zX gSmDgtiemMIdl3AAGgyUjJNEF+1dWkl2eq8yN6Wwu3ev/6jSjlsm+J33kvBtMExX egl9IgqyBrqa8s89o/luuhMqSBtTlN66tB/GBWExxyodhzdalF8= =djlj -----END PGP SIGNATURE-----