{"action":"created","issue":{"url":"https://api.github.com/repos/IIC2233-2016-1/syllabus/issues/675","repository_url":"https://api.github.com/repos/IIC2233-2016-1/syllabus","labels_url":"https://api.github.com/repos/IIC2233-2016-1/syllabus/issues/675/labels{/name}","comments_url":"https://api.github.com/repos/IIC2233-2016-1/syllabus/issues/675/comments","events_url":"https://api.github.com/repos/IIC2233-2016-1/syllabus/issues/675/events","html_url":"https://github.com/IIC2233-2016-1/syllabus/issues/675","id":163528911,"number":675,"title":"Duda respecto a las referencias.","user":{"login":"perojas3","id":14139107,"avatar_url":"https://avatars.githubusercontent.com/u/14139107?v=3","gravatar_id":"","url":"https://api.github.com/users/perojas3","html_url":"https://github.com/perojas3","followers_url":"https://api.github.com/users/perojas3/followers","following_url":"https://api.github.com/users/perojas3/following{/other_user}","gists_url":"https://api.github.com/users/perojas3/gists{/gist_id}","starred_url":"https://api.github.com/users/perojas3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/perojas3/subscriptions","organizations_url":"https://api.github.com/users/perojas3/orgs","repos_url":"https://api.github.com/users/perojas3/repos","events_url":"https://api.github.com/users/perojas3/events{/privacy}","received_events_url":"https://api.github.com/users/perojas3/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-07-02T17:47:54Z","updated_at":"2016-07-02T21:29:53Z","closed_at":null,"body":"Me surgio una duda al hacer la peregunta 1 g) del examen del 2015-1\r\nEs sobr ecomo cambian las referencias. El ejercicio consiste en encontrar lo que retorna un codigo. Mi problema esta en esta funcion:\r\n```python\r\ndef f1(_input):\r\n    if type(_input) in [int, float, bool, str]:\r\n        _input = 2\r\n    else:\r\n        _input[0] = _input[-1]\r\n    return True\r\n```\r\nAl cambiar una referencia de una lista en una funcion, se cambia la lista en todas pates. ¿Pero al cambiar un str o un int no?"},"comment":{"url":"https://api.github.com/repos/IIC2233-2016-1/syllabus/issues/comments/230122966","html_url":"https://github.com/IIC2233-2016-1/syllabus/issues/675#issuecomment-230122966","issue_url":"https://api.github.com/repos/IIC2233-2016-1/syllabus/issues/675","id":230122966,"user":{"login":"negebauer","id":11860880,"avatar_url":"https://avatars.githubusercontent.com/u/11860880?v=3","gravatar_id":"","url":"https://api.github.com/users/negebauer","html_url":"https://github.com/negebauer","followers_url":"https://api.github.com/users/negebauer/followers","following_url":"https://api.github.com/users/negebauer/following{/other_user}","gists_url":"https://api.github.com/users/negebauer/gists{/gist_id}","starred_url":"https://api.github.com/users/negebauer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/negebauer/subscriptions","organizations_url":"https://api.github.com/users/negebauer/orgs","repos_url":"https://api.github.com/users/negebauer/repos","events_url":"https://api.github.com/users/negebauer/events{/privacy}","received_events_url":"https://api.github.com/users/negebauer/received_events","type":"User","site_admin":false},"created_at":"2016-07-02T21:29:53Z","updated_at":"2016-07-02T21:29:53Z","body":"Depende del tipo, mutable o inmutable\r\nSi quieres leer un poco http://stackoverflow.com/questions/8056130/immutable-vs-mutable-types"}}
{"actor":{"display_login":"negebauer"}}