There is no automatic output because running your code in Python translates 
into executing

exec(code)

in Sage, which does not return anything and so there is nothing to display. 
Although if you include print(...) inside of your code, you will get the 
output. Other languages are executed as

print(language.eval("code"))

so typically you see the last value automatically.

As far as I can tell, this is not a new behaviour, so nothing is "broken". 
Either nobody has used this language, or they were happy with how it works, 
or they suffered silently. It does seem inconsistent with other languages, 
but at this point I am not eager to change anything for historical reasons. 
It is also not immediately clear to me what the replacement code must be.

Thank you for pointing this out!
Andrey

On Wednesday, 14 September 2022 at 03:39:59 UTC-6 [email protected] wrote:

> With Python chosen as "Language", there is no output for any input.
>
> Is it broken? Or am I missing something? 
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-cell" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-cell/564f3ce2-6102-4dca-b8c2-4ff6a55bd0cfn%40googlegroups.com.

Reply via email to