Skip to content

Conversation

@DoctorChe
Copy link
Owner

No description provided.

@pep8speaks
Copy link

Hello @DoctorChe! Thanks for opening this PR. We checked the lines you've touched for PEP 8 issues, and found:

Line 74:7: W291 trailing whitespace
Line 79:80: E501 line too long (84 > 79 characters)

Line 48:80: E501 line too long (94 > 79 characters)

100-e простое число: 541
"""

Choose a reason for hiding this comment

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

в решете наблюдается небольшой инкремент в момент создания списка
в остальном выделяемой интерпретатором памяти достаточно

"""
На объекта обычного класса выделено 472 байта памяти
На объекта класса с применением слотов выделено 144 байта памяти. Экономия более чем в 3 раза.
"""

Choose a reason for hiding this comment

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

слоты эффективны, когда нет необходимости динамически создавать атрибуты класса

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.

4 participants