GitHub PullRequestReviewCommentEvent at 2014-04-12 13:18:10
Repository: sympy
Actor: skirpichev
Payload: {"comment":{"url":"https://api.github.com/repos/sympy/sympy/pulls/comments/11559750","id":11559750,"diff_hunk":"@@ -216,6 +215,38 @@ def subset(self, other):\n         else:\n             raise ValueError(\"Unknown argument '%s'\" % other)\n \n+    def _eval_powerset(self):\n+        return None\n+\n+    def powerset(self):\n+        \"\"\"\n+        Find the Power set of 'self'.\n+\n+        Examples\n+        ========\n+\n+        >>> from sympy import FiniteSet, EmptySet\n+\n+        >>> A = EmptySet()\n+        >>> A.powerset()\n+        {EmptySet()}\n+\n+        >>> A = FiniteSet(1, 2)\n+        >>> p = A.powerset()\n+        >>> all([s in p for s in [FiniteSet(1), FiniteSet(2), FiniteSet(1,2), EmptySet()]])\n+        True\n+\n+        References\n+        ==========\n+        http://en.wikipedia.org/wiki/Power_set","path":"sympy/core/sets.py","position":37,"original_position":37,"commit_id":"29c5fbfaddc85aa83b2e5dba88f76084817d37b3","original_commit_id":"29c5fbfaddc85aa83b2e5dba88f76084817d37b3","user":{"login":"skirpichev","id":2155800,"avatar_url":"https://avatars.githubusercontent.com/u/2155800?","gravatar_id":"0621cf21f5cba395eaa48c7541265738","url":"https://api.github.com/users/skirpichev","html_url":"https://github.com/skirpichev","followers_url":"https://api.github.com/users/skirpichev/followers","following_url":"https://api.github.com/users/skirpichev/following{/other_user}","gists_url":"https://api.github.com/users/skirpichev/gists{/gist_id}","starred_url":"https://api.github.com/users/skirpichev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skirpichev/subscriptions","organizations_url":"https://api.github.com/users/skirpichev/orgs","repos_url":"https://api.github.com/users/skirpichev/repos","events_url":"https://api.github.com/users/skirpichev/events{/privacy}","received_events_url":"https://api.github.com/users/skirpichev/received_events","type":"User","site_admin":false},"body":"add empty line after section header","created_at":"2014-04-12T13:18:10Z","updated_at":"2014-04-12T13:18:10Z","html_url":"https://github.com/sympy/sympy/pull/7329#discussion_r11559750","pull_request_url":"https://api.github.com/repos/sympy/sympy/pulls/7329","_links":{"self":{"href":"https://api.github.com/repos/sympy/sympy/pulls/comments/11559750"},"html":{"href":"https://github.com/sympy/sympy/pull/7329#discussion_r11559750"},"pull_request":{"href":"https://api.github.com/repos/sympy/sympy/pulls/7329"}}}}