We are currently working on new rules for what content should and shouldn't be allowed on this website, and are looking for feedback! See Esolang:2026 topicality proposal to view and give feedback on the current draft.
Talk:Pyline
Jump to navigation
Jump to search
exec?
exec("""
while True:
print("If it uses exec, is it Pyline?")
# I'm surprised that nobody actually bothered to ask this since 2022.
""")
--Gilbert189 (talk) 12:15, 15 March 2025 (UTC)
- Yeah, that would be allowed. In general, Pyline isn't actually a challenge to program in, because there are clean homomorphisms like the one you've given here; just write ordinary Python and then translate it down to Pyline. Perhaps we could forbid `exec()` from Pyline Classic instead? I intended that dialect as a genuine challenge for old hands who recall Python 2. Corbin (talk) 15:29, 15 March 2025 (UTC)
- My interpretation, both now and when I discovered Pyline was that exec is only allowed as long as the code in exec is itself a single expression (effectively making it an eval that doesn't return the value), as I discovered Pyline while compacting solutions to examples from my finals into a single nested comprehension (don't remember if that was in 2022 or sooner tbh). IMHO it shouldn't be allowed because it negates everything (since you can just wrap any code in a exec) MinekPo1 (talk) 14:12, 21 October 2026 (UTC)