Съездил в командировку в Горький. Сейчас он, конечно, называется Нижний Новгород, но было бы здорово оставить старое название. Во-первых, не было бы путаницы с Великим Новгородом. Во-вторых, представьте, какая интересная эмоциональная энергетика в названии Горький.
И местные это всячески обыгрывают. Помимо просто повсеместного исторического наследия есть, например, сеть кофеен «Сладкий Горький», а в отеле подавали чай «Горьковский».
Много чего не успел, не посмотрел, был буквально на пару дней по работе. Даже в метро не спустился. Но чувствуется хороший туристический потенциал, обязательно сюда вернусь.
Из-за особенностей рельефа часть города находится на возвышенности, а часть в низине. Поэтому да, есть верхний Нижний Новгород, и нижний Нижний Новгород. Но Горький всё равно круче.
В детстве я слышал такую шуточную загадку: дракон-сладкоежка съел все города, но один оставил, какой?
#life
#Functions are first-class citizens in Python:
# They can be passed as arguments to other functions,
# returned as values from other functions, and
# assigned to variables and stored in data structures.
»> def myfunc(a, b):
... return a + b
...
»> funcs = [myfunc]
»> funcs[0]
<function myfunc at 0x107012230>
»> funcs[0](2, 3)
5
# Functions are first-class citizens in Python.
# They can be passed as arguments to other functions,
# returned as values from other #functions, and
# assigned to variables and stored in data structures.
»> def myfunc(a, b):
... return a + b
...
»> funcs = [myfunc]
»> funcs[0]
<function myfunc at 0x107012230>
»> funcs[0](2, 3)
5
https://docs.python.org/3/library/subprocess.html
The #subprocess module allows you to spawn new #processes, connect to their input/output/error pipes, and obtain their return codes. This module intends to replace several older #modules and #functions.
#python
https://docs.python.org/3/library/atexit.html
The #atexit module defines #functions to #register and #unregister cleanup functions. Functions thus registered are automatically executed upon normal interpreter termination. atexit runs these functions in the reverse order in which they were registered; if you register A, B, and C, at #interpreter#termination time they will be run in the order C, B, A.