Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # This:
- values = [getattr(obj, attr) for attr in attributes if not attr.beginswith('_')]
- # Vs. this:
- values = [
- getattr(obj, attr)
- for attr in attributes
- if not attr.beginswith('_')
- ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement