{"action":"closed","issue":{"number":136,"created_at":"2011-10-19T01:29:33Z","pull_request":{"diff_url":null,"patch_url":null,"html_url":null},"body":"Originally filed by denilsonsa on 2010-09-01T19:51:06\n\nI've just discovered rdflib project, and thus I don't know too much about the API, but there is at least one function that is not very \"pythonic\".\r\n\r\nThe 'Graph.parse()' method will load the file in-place, and will also return the graph. Built-in Python library does not work this way:\r\n\r\n\"7. The sort() and reverse() methods modify the list in place for economy of space when sorting or reversing a large list. To remind you that they operate by side effect, they don’t return the sorted or reversed list.\"\r\nhttp://docs.python.org/library/stdtypes.html#mutable-sequence-types\r\n\r\nIn order to be more \"pythonic\", the rdflib API should not return objects for operations done in-place. Maybe it could have \"rdflib.graph.load()\" and \"rdflib.graph.loads()\", which would load from file or from string and return a new Graph (somewhat like the API used by 'pickle' module).","comments":0,"title":"rdflib API is not very Pythonic","updated_at":"2011-10-19T01:29:34Z","url":"https://api.github.com/repos/gjhiggins/rdflib/issues/136","id":1989662,"assignee":null,"milestone":null,"closed_at":"2011-10-19T01:29:34Z","user":{"avatar_url":"https://secure.gravatar.com/avatar/918398787dc9e085672703644972e5e4?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"918398787dc9e085672703644972e5e4","url":"https://api.github.com/users/gjhiggins","id":16417,"login":"gjhiggins"},"html_url":"https://github.com/gjhiggins/rdflib/issues/136","labels":[],"state":"closed"},"legacy":{"number":136,"action":"closed","issue":1989662}}