<transcript><audio_183>quite involved and by the way pattern matching now that we're talking about pattern matching is so powerful that you can't have something like like for instance a data class like this click example so you're writing some kind of game and then you're checking like the user is</transcript><caption><image_184>The image is a screenshot of a code snippet in a programming language. The code is written in pink and black text on a black background. The text reads "@dataclass class click: position: button: bu". Below the code, there is a list of events and their corresponding values. On the right side of the image, there are two circles, one with a photo of a man wearing a headset and the other with a microphone. The background is a beige color.</caption><transcript><audio_185>clicking uh uh keys in the keyboard and then you can say okay I will get my event and is is one of these click classes I will capture the position position uh like attribute over there I will capture it it's a tle so I will capture X and Y and then I will call this function with X and Y whatever</transcript><transcript><audio_186>these X and Y are and I will say do the same thing as a key press class which I will capture only when the key press is a Q and then I will quit my game and the same thing if if it's like up Arrow it will go north right so so you can write this these dispatch Loops in a very</transcript><transcript><audio_187>efficient way with and if you think about how how you need to write this thing using um you know like conditionals it will be super difficult to do so so so python now has this thing that you can finish cring it's just because you know it's new uh but this was only possible due to to the parer</transcript> quite involved and by the way pattern matching now that we're talking about pattern matching is so powerful that you can't have something like like for instance a data class like this click example so you're writing some kind of game and then you're checking like the user is clicking uh uh keys in the keyboard and then you can say okay I will get my event and is is one of these click classes I will capture the position position uh like attribute over there I will capture it it's a tle so I will capture X and Y and then I will call this function with X and Y whatever these X and Y are and I will say do the same thing as a key press class which I will capture only when the key press is a Q and then I will quit my game and the same thing if if it's like up Arrow it will go north right so so you can write this these dispatch Loops in a very efficient way with and if you think about how how you need to write this thing using um you know like conditionals it will be super difficult to do so so so python now has this thing that you can finish cring it's just because you know it's new uh but this was only possible due to to the parer
{"source": "grass-yt-cc-by.0C4eKA5DXFs|shard_10016_22|create_multimodal_data.extract_yt_and_generate_transcripts.62|shard_10016|create_multimodal_data.generate_captions.42|shard_10016|create_multimodal_data.generate_captions.55", "params": {"id": "0C4eKA5DXFs", "channel_id": "UCHLnNgRnfGYDzPCCH8qGbQw", "duration": 4151, "view_count": 107, "age_limit": 0, "like_count": 3, "channel_follower_count": 6170, "license": "Creative Commons Attribution license (reuse allowed)", "uploader_id": "@PyConTaiwanVideo", "yt_tar_file": "/leonardo_work/EUHPC_E03_068/audio/fixed_download/grass-yt-cc-by//shard_10016/0C4eKA5DXFs.tar.gz"}}