r/AskProgramming • u/XaX1000 • Sep 28 '26
cursed python hello world
Is there any way to make this code wok in python?
"hello"(print)
This is just a joke and i do not care how cursed of a setup this requires.
0
Upvotes
View all comments
Show parent comment
1
u/Individual-Flow9158 Sep 29 '26
Genius!
I don't think it's possible to avoid the SyntaxWarning entirely within the code, without either just running it with
python -Wi, or having a second module withwarnings.filterwarnings("ignore", category=SyntaxWarning)before it imports this one. Or is it?