detecting statements which result is not stored
Guenther Sohler <[email protected]> Thu, 5 Oct 2023 08:40:46 +0200
| Newsgroups | gmane.comp.python.devel |
|---|---|
| Message-ID | <CAASeUHok-R=L9-vu95J9tZhNg8hodU8TN2QBC_hjRuhehABJVw@mail.gmail.com> |
--===============2200708100394470533==
Content-Type: multipart/alternative; boundary="00000000000007f28b0606f26898"
--00000000000007f28b0606f26898
Content-Type: text/plain; charset="UTF-8"
Hi Python Developers, after some investigation i consider dev the correct
mailing list.
I got python embedded into OpenSCAD and i'd like to make more use out of it.
statements like these do exactly what they should:
width= 3*5
solid = make_nice_solid(width)
other_solid = solid.size(1)
print(" Everything fine")
But i'd like to be able to write lines like these: These are expressions
which create a value,
which is apparently NOT stored in a variable
solid *3
other_solid - solid
instead of wasting them, I'd like to collect them in an array and display
send it to the display engine
after python evaluation has finished.
Is there some way how i can collect the orphaned expressions ?
--00000000000007f28b0606f26898
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr"><br><div>Hi Python Developers, after=C2=A0 some investigat=
ion i consider dev the correct mailing list.</div><div>I got python embedde=
d into OpenSCAD and i'd like to make more use out of it.</div><div><br>=
</div><div>statements like these do exactly what they should:</div><div><br=
></div><div>width=3D 3*5</div><div>solid =3D make_nice_solid(width)</div><d=
iv>other_solid =3D solid.size(1)</div><div>print(" Everything fine&quo=
t;)</div><div><br></div><div>But i'd like to be able to write lines lik=
e these:=C2=A0 These are expressions=C2=A0 which create a value,</div><div>=
which is apparently NOT stored in a variable</div><div><br></div><div>solid=
*3</div><div>other_solid - solid<br></div><div><br></div><div>instead of w=
asting them, I'd like to collect them in an array and display send it t=
o the display engine</div><div>after=C2=A0 python evaluation has=C2=A0 fini=
shed.</div><div><br></div><div>Is there some way how i can collect the orph=
aned expressions ?</div><div><br></div><div><br></div><div><br></div></div>
--00000000000007f28b0606f26898--
--===============2200708100394470533==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline