Skip to content
Sign UpLog In
Profile icon

chilaxan chilaxan

@chilaxan
Repls
Community
chilaxan
chilaxan
shared a Post
4 years ago
Try/Except using a Decorator
Using type and lambdas to replicate try/except This code uses type to produce a class that inherits from contextlib.ContextDecorator This allows it to
one line try/except with return
Python