Notice: file_put_contents(): Write of 17667 bytes failed with errno=28 No space left on device in /var/www/tgoop/post.php on line 50
Proglib.academy | IT-курсы@proglib_academy P.2830
PROGLIB_ACADEMY Telegram 2830
⚡️ Разбор задачи из последнего междусобойчика

Даже если try хочет что-то вернуть — finally вмешается в процесс и ЗАТРЁТ return.

В Python поведение строгое: если finally содержит return, он перебивает всё, что было до него.

⚠️ Даже raise или return из try будут проигнорированы, если finally тоже говорит: «верни это».

Поэтому:
return 1  # выполняется…
return 2 # но finally делает override!
Ответ: 🌚 — 2


Пишите в комменты, знал ли вы это поведение. А если знали — ставьте ежа 👾

Proglib Academy
#междусобойчик
Please open Telegram to view this post
VIEW IN TELEGRAM
👍2👾1



tgoop.com/proglib_academy/2830
Create:
Last Update:

⚡️ Разбор задачи из последнего междусобойчика

Даже если try хочет что-то вернуть — finally вмешается в процесс и ЗАТРЁТ return.

В Python поведение строгое: если finally содержит return, он перебивает всё, что было до него.

⚠️ Даже raise или return из try будут проигнорированы, если finally тоже говорит: «верни это».

Поэтому:

return 1  # выполняется…
return 2 # но finally делает override!
Ответ: 🌚 — 2


Пишите в комменты, знал ли вы это поведение. А если знали — ставьте ежа 👾

Proglib Academy
#междусобойчик

BY Proglib.academy | IT-курсы




Share with your friend now:
tgoop.com/proglib_academy/2830

View MORE
Open in Telegram


Telegram News

Date: |

3How to create a Telegram channel? The creator of the channel becomes its administrator by default. If you need help managing your channel, you can add more administrators from your subscriber base. You can provide each admin with limited or full rights to manage the channel. For example, you can allow an administrator to publish and edit content while withholding the right to add new subscribers. Ng Man-ho, a 27-year-old computer technician, was convicted last month of seven counts of incitement charges after he made use of the 100,000-member Chinese-language channel that he runs and manages to post "seditious messages," which had been shut down since August 2020. Content is editable within two days of publishing With the administration mulling over limiting access to doxxing groups, a prominent Telegram doxxing group apparently went on a "revenge spree."
from us


Telegram Proglib.academy | IT-курсы
FROM American