Skip to content

add curry#22

Open
Quark1111 wants to merge 1 commit intomainfrom
curry_func
Open

add curry#22
Quark1111 wants to merge 1 commit intomainfrom
curry_func

Conversation

@Quark1111
Copy link
Owner

No description provided.

@Quark1111 Quark1111 requested a review from chernishev November 26, 2025 22:41
Comment on lines +5 to +8
if not isinstance(arity, int):
raise TypeError("арность должна быть числом")
if arity < 0:
raise ValueError("арность не может быть отрицательной")
Copy link

@Godrik0 Godrik0 Dec 7, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Не проверяется случай, когда пользователь указывает арность не соответствующую реальной.
Мы можем написать f_curry = curry(sum3, 100), ошибка появится только при вызове функции f_curry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants