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

this is an idea that I've seen used many times in the past. One of the first refs I saw to this mashup of the keys of a dict and the values in __dict__ was on Activestate in 2006 or so. There are also multiple versions on Stackoverflow.

I'm reminded of the web designer example here (https://gist.github.com/fmeyer/289467) line 89.

I know that people use github for many things, including tracking their config files, etc. However, this seems to be a post by the owner of the repo. Would you ever, I mean _ever_ be happy if someone required this sort of 'library' as a dependency in a project? I know I would not.



An example that you should try: d = addict() d['__dict__'] = None




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

Search: