python-easter-eggs icon indicating copy to clipboard operation
python-easter-eggs copied to clipboard

[Proposal] Extend Section 6 with an encouraging reflection

Open johomo opened this issue 1 year ago • 1 comments

The footnote of Section 6: It's not a choice, it defines who we are states:

This is to instantly close down any conversation about introducing curly braces to Python.

Even though it is correct, such a harsh statement may disappoint even the most stone-hearted programmer. But Python never disappoints you. It is so versatile that it allows using curly braces, and even any block delimiter of your choise, provided that you prepend # .

# This is allowed
resume = "knows Python"
if 'Python' in resume: # {
    print('You rock!')
# }    

# This is also allowed
resume = "knows Python"
if 'Python' in resume:
# BEGIN
    print('You rock!')
# END

Do you think this encouraging reflection is worth being added, even though it is not an easter egg?

Bonus track: With Whython your dreams come true. You can type code blocks with braces.

johomo avatar Feb 04 '24 19:02 johomo

Sounds a lot like Bython

TimoNotThy avatar Oct 25 '25 20:10 TimoNotThy