Re: detecting statements which result is not stored

Steve Holden <[email protected]> Thu, 5 Oct 2023 21:41:38 +0100
Newsgroups gmane.comp.python.devel
Message-ID <CAMofdRCioZV2FmLygF0CpN7wQUZSZWUzR24NtSK2WT=G2dWf-Q@mail.gmail.com>
--===============8687032032647550755==
Content-Type: multipart/alternative; boundary="0000000000005e592c0606fe27f4"

--0000000000005e592c0606fe27f4
Content-Type: text/plain; charset="UTF-8"

Sounds like you might want the "Python Help" group on https;//
discuss.python.org - the dev conversation migrated there quite a while ago
now, so thighs channel is more or less announcements only.

Good luck with your project!

Kind regards,
Steve


On Thu, 5 Oct 2023 at 16:07, Guenther Sohler <[email protected]>
wrote:

>
> 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 ?
>
>
>
> _______________________________________________
> Python-Dev mailing list -- [email protected]
> To unsubscribe send an email to [email protected]
> https://mail.python.org/mailman3/lists/python-dev.python.org/
> Message archived at
> https://mail.python.org/archives/list/[email protected]/message/D7GI2EAE73OSYOQI7QKQOCB6SRRYOUWV/
> Code of Conduct: http://python.org/psf/codeofconduct/
>

--0000000000005e592c0606fe27f4
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div class=3D"gmail_default" style=3D"font-size:small">Sou=
nds like you might want the &quot;Python Help&quot; group on https;//<a hre=
f=3D"http://discuss.python.org">discuss.python.org</a> - the dev conversati=
on migrated there quite a while ago now, so thighs=C2=A0channel is more or =
less announcements only.</div><div class=3D"gmail_default" style=3D"font-si=
ze:small"><br></div><div class=3D"gmail_default" style=3D"font-size:small">=
Good luck with your project!</div><div class=3D"gmail_default" style=3D"fon=
t-size:small"><br></div><div><div dir=3D"ltr" class=3D"gmail_signature" dat=
a-smartmail=3D"gmail_signature"><div dir=3D"ltr"><div><div dir=3D"ltr">Kind=
 regards,</div><div dir=3D"ltr">Steve<br></div></div></div></div></div><br>=
</div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">=
On Thu, 5 Oct 2023 at 16:07, Guenther Sohler &lt;<a href=3D"mailto:guenther=
[email protected]">[email protected]</a>&gt; wrote:<br></div><block=
quote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1=
px solid rgb(204,204,204);padding-left:1ex"><div dir=3D"ltr"><br><div>Hi Py=
thon Developers, after=C2=A0 some investigation i consider dev the correct =
mailing list.</div><div>I got python embedded into OpenSCAD and i&#39;d lik=
e to make more use out of it.</div><div><br></div><div>statements like thes=
e do exactly what they should:</div><div><br></div><div>width=3D 3*5</div><=
div>solid =3D make_nice_solid(width)</div><div>other_solid =3D solid.size(1=
)</div><div>print(&quot; Everything fine&quot;)</div><div><br></div><div>Bu=
t i&#39;d like to be able to write lines like these:=C2=A0 These are expres=
sions=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 - sol=
id<br></div><div><br></div><div>instead of wasting them, I&#39;d like to co=
llect them in an array and display send it to the display engine</div><div>=
after=C2=A0 python evaluation has=C2=A0 finished.</div><div><br></div><div>=
Is there some way how i can collect the orphaned expressions ?</div><div><b=
r></div><div><br></div><div><br></div></div>
_______________________________________________<br>
Python-Dev mailing list -- <a href=3D"mailto:[email protected]" target=
=3D"_blank">[email protected]</a><br>
To unsubscribe send an email to <a href=3D"mailto:[email protected]=
rg" target=3D"_blank">[email protected]</a><br>
<a href=3D"https://mail.python.org/mailman3/lists/python-dev.python.org/" r=
el=3D"noreferrer" target=3D"_blank">https://mail.python.org/mailman3/lists/=
python-dev.python.org/</a><br>
Message archived at <a href=3D"https://mail.python.org/archives/list/python=
[email protected]/message/D7GI2EAE73OSYOQI7QKQOCB6SRRYOUWV/" rel=3D"noreferre=
r" target=3D"_blank">https://mail.python.org/archives/list/python-dev@pytho=
n.org/message/D7GI2EAE73OSYOQI7QKQOCB6SRRYOUWV/</a><br>
Code of Conduct: <a href=3D"http://python.org/psf/codeofconduct/" rel=3D"no=
referrer" target=3D"_blank">http://python.org/psf/codeofconduct/</a><br>
</blockquote></div>

--0000000000005e592c0606fe27f4--

--===============8687032032647550755==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline