How to "wow" someone new to Python

wxjmfauth at gmail.com wxjmfauth at gmail.com
Wed Jan 21 16:15:02 CET 2015


Le vendredi 16 janvier 2015 16:04:20 UTC+1, Chris Angelico a écrit :
> Scenario: You're introducing someone to Python for the first time.
> S/he may have some previous programming experience, or may be new to
> the whole idea of giving a computer instructions. You have a couple of
> minutes to show off how awesome Python is. What do you do?
> 
> I was thinking along the lines of a simple demo in the REPL, showing
> off some of Python's coolest features. But then I got stuck on the
> specifics. What are Python's best coolnesses? What makes for a good
> demo?
> 
> Ideally, this should be something that can be demo'd quickly and
> easily, and it should be impressive without going into great details
> of "and see, this is how it works on the inside". So, how would you
> brag about this language?
> 
> ChrisA

If you are smart enough, you can use a string.
On windows, with that string can make IDLE, tkinter,
and finally Python crash. No msg at all. The
main windows just desappears. It's quite clean,
not even a Python engine in the task manager.

For the record, I discovered this when toying
with my unicode plain text editor, I can now throw away,
an editor perfectly working with py32.

jmf



More information about the Python-list mailing list