fagga/transmission-remote-cli — comment on commit f9251274ea57b9ded9f6b902beb8763ce9bdeef4
File: transmission-remote-cli.py line 729
By Oddegamra:

Instead of keeping a dictionary of function references to get around `eval`, this function could simply call

```python
return getattr(self, id, lambda torrent: None)(torrent)
```

Less chance for things to go wrong compared to eval as well.