Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I doubt it.

How could anyone refactor something like this in Python

getattr(myobj, 'myprop', None)

Where mypropis dynamically generated?



What do you mean by refactoring a single line?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: