Python Class Keeps Breaking
class User: def __init__(self): pass __login = 'undefined' __password = 'undefined' user1 = User() user1.__login AttributeError: 'User' object has no attribute '__login' user1. SyntaxError: invalid syntax user1.password = 'change!' self.__login self.__login = 'undefined' self.__password = 'undefined'
A screen recording shows someone editing a Python User class in Visual Studio Code. The programmer repeatedly breaks the code with private attributes, mistyped access, and syntax errors before finally adding initialization, turning ordinary debugging into a relatable programming joke. EN: A screen recording shows someone editing a Python User class in Visual Studio Code. The programmer repeatedly breaks the code with private attributes, mistyped access, and syntax errors before finally adding initialization, turning ordinary debugging into a relatable programming joke.
computer screen / экран компьютераVisual Studio Code editor / редактор Visual Studio CodePython code / код Pythonkeyboard / клавиатураcode editor / редактор кодаclass definition / определение классаerror message / сообщение об ошибкеsyntax error / синтаксическая ошибкаtext cursor / текстовый курсорdark theme interface / интерфейс в тёмной теме
- @gentoomemes / 6382 2023-09-17
- Type
- video, 1:15
- Size
- 1080×1920 · 2.1 MiB
- Mood
- саркастичный, relatable
- Language
- en
- Added