{"action":"closed","issue":{"url":"https://api.github.com/repos/IIC2233-2015-2/syllabus/issues/234","labels_url":"https://api.github.com/repos/IIC2233-2015-2/syllabus/issues/234/labels{/name}","comments_url":"https://api.github.com/repos/IIC2233-2015-2/syllabus/issues/234/comments","events_url":"https://api.github.com/repos/IIC2233-2015-2/syllabus/issues/234/events","html_url":"https://github.com/IIC2233-2015-2/syllabus/issues/234","id":108151136,"number":234,"title":"Sobre lambda y PEP8","user":{"login":"eiherrera","id":13739349,"avatar_url":"https://avatars.githubusercontent.com/u/13739349?v=3","gravatar_id":"","url":"https://api.github.com/users/eiherrera","html_url":"https://github.com/eiherrera","followers_url":"https://api.github.com/users/eiherrera/followers","following_url":"https://api.github.com/users/eiherrera/following{/other_user}","gists_url":"https://api.github.com/users/eiherrera/gists{/gist_id}","starred_url":"https://api.github.com/users/eiherrera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eiherrera/subscriptions","organizations_url":"https://api.github.com/users/eiherrera/orgs","repos_url":"https://api.github.com/users/eiherrera/repos","events_url":"https://api.github.com/users/eiherrera/events{/privacy}","received_events_url":"https://api.github.com/users/eiherrera/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/IIC2233-2015-2/syllabus/labels/C%C3%B3digo","name":"Código","color":"fbca04"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-24T15:12:29Z","updated_at":"2015-09-24T15:47:01Z","closed_at":"2015-09-24T15:47:01Z","body":"Tengo instalado el modulo de anaconda en sublime text por lo que me avisa si cometo una falta en pep8. \r\n\r\nCuando asigno lambda a una variable, como por ejemplo f = lambda.... me dice que es un error, que use def para definir una función. El problema es que de esta manera se puede escribir muy facilmente algunas funciones recursivas sin tener que gastar líneas o apretar teclas demás.\r\n\r\n¿Le hago caso al pep8 por el bien de la sintaxis (que en este caso me parece exagerado porque es sólo una línea, se entiende completamente) o me viro por la eficiencia?\r\n\r\nAgrego ejemplo, sacar máximo común divisor, para que vean la diferencia:\r\n\r\n    def mcd(a,b):\r\n        if b==0:\r\n            return a\r\n        return mcd(b, a%b)\r\n\r\nvs\r\n\r\n    f = lambda a, b: a if b == 0 else f(b, a % b)"}}