{"action":"created","comment":{"url":"https://api.github.com/repos/pyta-uoft/website/pulls/comments/63305565","id":63305565,"diff_hunk":"@@ -48,6 +48,361 @@ def is_even(num):\n     return num % 2 == 0\n ```\n \n+### E1101: no-member {#E1101}\n+\n+We expect you to access an object(variable, function...) for an existent member.\n+For example, you should not call a variable or function which is not defined.\n+In the following example, the Rectangle class does not have the area()\n+method(member).\n+\n+\n+```python\n+class Rectangle:\n+    def __init__(self, width, height):\n+        \"\"\"\n+        Initialize the Rectangle.\n+\n+        @type self: Rectangle\n+        @type width: int\n+        @type height: int\n+        @rtype: None\n+        \"\"\"\n+        self.width = width\n+        self.height = height\n+\n+r = Rectangle(5, 4)\n+\n+# no such member in Rectangle class\n+print(r.area())  # Error on this line\n+```\n+\n+### E1102: not-callable {#E1102}\n+\n+We expect you to call an object only if it has been inferred to a callable object.\n+In the following example, x is a variable with value 10. We should not call x()\n+ because it is not callable.\n+\n+```python\n+x = 10\n+print(x())  # Error on this line\n+```\n+\n+### E1111: assignment-from-no-return {#E1111}\n+\n+In Python, we expect you to assign to a function call with the infered function\n+does return an object. This error is similar to E1128. In the following example,\n+f() does not return anything. As a result, x has no value if we assign x f().\n+Remember! Whenever you define a function, return some objects otherwise it\n+could not be assigned.\n+\n+```python\n+def f():\n+    print(\"s\")\n+\n+def g():\n+    x = f()  # Error on this line\n+    print(x)\n+```\n+\n+### E1120: no-value-for-parameter {#E1120}\n+\n+We expect you to pass values for each argument (one for each) in a function.\n+In the following example, there should be three values passed to the function\n+instead of two. Remember not to leave any argument alone.\n+\n+```python\n+def get_sum(x, y, z):\n+    \"\"\"\n+    Return the sum of x, y and z.\n+\n+    @type x: int\n+    @type y: int\n+    @type z: int\n+    @rtype: int\n+    \"\"\"\n+    return x + y + z\n+\n+get_sum(1, 2) # Error on this line\n+```\n+\n+### E1121: too-many-function-args {#E1121}\n+\n+In python, we expect you to pass values for each argument (one for each) in a\n+function. It is just the opposite to E1121. In the following example, more\n+values are passed to the function. Do not forget that each position just need\n+one value.\n+\n+```python\n+def get_sum(x, y):\n+    \"\"\"\n+    Return the sum of x and y.\n+\n+    @type x: int\n+    @type y: int\n+    @rtype: int\n+    \"\"\"\n+    return x + y\n+\n+get_sum(1, 2, 3)  # Error on this line\n+```\n+\n+### E1126: invalid-sequence-index {#E1126}\n+\n+For your work in python, we expect you to use a sequence indexed with a valid\n+type. Valid types are ints, slices, and objects with an __index__ method. For\n+ example, inside a list, you should always remember to use the \"index\" to\n+ indicate which element you want.  You should always keep in mind that in\n+ csc108/148, a slice index could only be integer.\n+\n+```python\n+a = ['p', 'y', 'T', 'A']\n+print(a['p'])   # Error on this line\n+```\n+\n+Corrected version\n+\n+```python\n+a = ['p', 'y', 'T', 'A']\n+print(a[0])      # Error on this line\n+```\n+\n+### E1127: invalid-slice-index {#E1127}\n+\n+For your work in python, we expect you to use a slice index which is an integer,\n+None, or an object with an __index__ method. For example, inside a list, whenever\n+you want to get slices of this list, never use the elements but the \"index\". You\n+should always keep in mind that in csc108/148, a slice index could only be\n+integer.\n+\n+```python\n+a = ['p', 'y', 'T', 'A']\n+print(a['p' : 'A'])      # Error on this line\n+```\n+\n+Corrected version\n+\n+```python\n+a = ['p', 'y', 'T', 'A']\n+print(a[0: 3])      # Error on this line","path":"index.md","position":139,"original_position":139,"commit_id":"df6f2e866b141933912ee67a8d840c769ccc2334","original_commit_id":"df6f2e866b141933912ee67a8d840c769ccc2334","user":{"login":"david-yz-liu","id":3333115,"avatar_url":"https://avatars.githubusercontent.com/u/3333115?v=3","gravatar_id":"","url":"https://api.github.com/users/david-yz-liu","html_url":"https://github.com/david-yz-liu","followers_url":"https://api.github.com/users/david-yz-liu/followers","following_url":"https://api.github.com/users/david-yz-liu/following{/other_user}","gists_url":"https://api.github.com/users/david-yz-liu/gists{/gist_id}","starred_url":"https://api.github.com/users/david-yz-liu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/david-yz-liu/subscriptions","organizations_url":"https://api.github.com/users/david-yz-liu/orgs","repos_url":"https://api.github.com/users/david-yz-liu/repos","events_url":"https://api.github.com/users/david-yz-liu/events{/privacy}","received_events_url":"https://api.github.com/users/david-yz-liu/received_events","type":"User","site_admin":false},"body":"There's no error on this line. Also don't put a space after the `:`","created_at":"2016-05-16T02:48:05Z","updated_at":"2016-05-16T02:48:05Z","html_url":"https://github.com/pyta-uoft/website/pull/14#discussion_r63305565","pull_request_url":"https://api.github.com/repos/pyta-uoft/website/pulls/14","_links":{"self":{"href":"https://api.github.com/repos/pyta-uoft/website/pulls/comments/63305565"},"html":{"href":"https://github.com/pyta-uoft/website/pull/14#discussion_r63305565"},"pull_request":{"href":"https://api.github.com/repos/pyta-uoft/website/pulls/14"}}},"pull_request":{"url":"https://api.github.com/repos/pyta-uoft/website/pulls/14","id":70124640,"html_url":"https://github.com/pyta-uoft/website/pull/14","diff_url":"https://github.com/pyta-uoft/website/pull/14.diff","patch_url":"https://github.com/pyta-uoft/website/pull/14.patch","issue_url":"https://api.github.com/repos/pyta-uoft/website/issues/14","number":14,"state":"open","locked":false,"title":"String stringconstant typecheck documentation","user":{"login":"Jasminewwwu","id":18700237,"avatar_url":"https://avatars.githubusercontent.com/u/18700237?v=3","gravatar_id":"","url":"https://api.github.com/users/Jasminewwwu","html_url":"https://github.com/Jasminewwwu","followers_url":"https://api.github.com/users/Jasminewwwu/followers","following_url":"https://api.github.com/users/Jasminewwwu/following{/other_user}","gists_url":"https://api.github.com/users/Jasminewwwu/gists{/gist_id}","starred_url":"https://api.github.com/users/Jasminewwwu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jasminewwwu/subscriptions","organizations_url":"https://api.github.com/users/Jasminewwwu/orgs","repos_url":"https://api.github.com/users/Jasminewwwu/repos","events_url":"https://api.github.com/users/Jasminewwwu/events{/privacy}","received_events_url":"https://api.github.com/users/Jasminewwwu/received_events","type":"User","site_admin":false},"body":null,"created_at":"2016-05-15T15:41:34Z","updated_at":"2016-05-16T02:48:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c4983f077fd18ce0d8227adaef618e81aa3eba63","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/pyta-uoft/website/pulls/14/commits","review_comments_url":"https://api.github.com/repos/pyta-uoft/website/pulls/14/comments","review_comment_url":"https://api.github.com/repos/pyta-uoft/website/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pyta-uoft/website/issues/14/comments","statuses_url":"https://api.github.com/repos/pyta-uoft/website/statuses/df6f2e866b141933912ee67a8d840c769ccc2334","head":{"label":"Jasminewwwu:string_stringconstant_typecheck_documentation","ref":"string_stringconstant_typecheck_documentation","sha":"df6f2e866b141933912ee67a8d840c769ccc2334","user":{"login":"Jasminewwwu","id":18700237,"avatar_url":"https://avatars.githubusercontent.com/u/18700237?v=3","gravatar_id":"","url":"https://api.github.com/users/Jasminewwwu","html_url":"https://github.com/Jasminewwwu","followers_url":"https://api.github.com/users/Jasminewwwu/followers","following_url":"https://api.github.com/users/Jasminewwwu/following{/other_user}","gists_url":"https://api.github.com/users/Jasminewwwu/gists{/gist_id}","starred_url":"https://api.github.com/users/Jasminewwwu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jasminewwwu/subscriptions","organizations_url":"https://api.github.com/users/Jasminewwwu/orgs","repos_url":"https://api.github.com/users/Jasminewwwu/repos","events_url":"https://api.github.com/users/Jasminewwwu/events{/privacy}","received_events_url":"https://api.github.com/users/Jasminewwwu/received_events","type":"User","site_admin":false},"repo":{"id":57925031,"name":"website","full_name":"Jasminewwwu/website","owner":{"login":"Jasminewwwu","id":18700237,"avatar_url":"https://avatars.githubusercontent.com/u/18700237?v=3","gravatar_id":"","url":"https://api.github.com/users/Jasminewwwu","html_url":"https://github.com/Jasminewwwu","followers_url":"https://api.github.com/users/Jasminewwwu/followers","following_url":"https://api.github.com/users/Jasminewwwu/following{/other_user}","gists_url":"https://api.github.com/users/Jasminewwwu/gists{/gist_id}","starred_url":"https://api.github.com/users/Jasminewwwu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jasminewwwu/subscriptions","organizations_url":"https://api.github.com/users/Jasminewwwu/orgs","repos_url":"https://api.github.com/users/Jasminewwwu/repos","events_url":"https://api.github.com/users/Jasminewwwu/events{/privacy}","received_events_url":"https://api.github.com/users/Jasminewwwu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Jasminewwwu/website","description":"","fork":true,"url":"https://api.github.com/repos/Jasminewwwu/website","forks_url":"https://api.github.com/repos/Jasminewwwu/website/forks","keys_url":"https://api.github.com/repos/Jasminewwwu/website/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Jasminewwwu/website/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Jasminewwwu/website/teams","hooks_url":"https://api.github.com/repos/Jasminewwwu/website/hooks","issue_events_url":"https://api.github.com/repos/Jasminewwwu/website/issues/events{/number}","events_url":"https://api.github.com/repos/Jasminewwwu/website/events","assignees_url":"https://api.github.com/repos/Jasminewwwu/website/assignees{/user}","branches_url":"https://api.github.com/repos/Jasminewwwu/website/branches{/branch}","tags_url":"https://api.github.com/repos/Jasminewwwu/website/tags","blobs_url":"https://api.github.com/repos/Jasminewwwu/website/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Jasminewwwu/website/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Jasminewwwu/website/git/refs{/sha}","trees_url":"https://api.github.com/repos/Jasminewwwu/website/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Jasminewwwu/website/statuses/{sha}","languages_url":"https://api.github.com/repos/Jasminewwwu/website/languages","stargazers_url":"https://api.github.com/repos/Jasminewwwu/website/stargazers","contributors_url":"https://api.github.com/repos/Jasminewwwu/website/contributors","subscribers_url":"https://api.github.com/repos/Jasminewwwu/website/subscribers","subscription_url":"https://api.github.com/repos/Jasminewwwu/website/subscription","commits_url":"https://api.github.com/repos/Jasminewwwu/website/commits{/sha}","git_commits_url":"https://api.github.com/repos/Jasminewwwu/website/git/commits{/sha}","comments_url":"https://api.github.com/repos/Jasminewwwu/website/comments{/number}","issue_comment_url":"https://api.github.com/repos/Jasminewwwu/website/issues/comments{/number}","contents_url":"https://api.github.com/repos/Jasminewwwu/website/contents/{+path}","compare_url":"https://api.github.com/repos/Jasminewwwu/website/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Jasminewwwu/website/merges","archive_url":"https://api.github.com/repos/Jasminewwwu/website/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Jasminewwwu/website/downloads","issues_url":"https://api.github.com/repos/Jasminewwwu/website/issues{/number}","pulls_url":"https://api.github.com/repos/Jasminewwwu/website/pulls{/number}","milestones_url":"https://api.github.com/repos/Jasminewwwu/website/milestones{/number}","notifications_url":"https://api.github.com/repos/Jasminewwwu/website/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Jasminewwwu/website/labels{/name}","releases_url":"https://api.github.com/repos/Jasminewwwu/website/releases{/id}","deployments_url":"https://api.github.com/repos/Jasminewwwu/website/deployments","created_at":"2016-05-02T22:21:51Z","updated_at":"2016-05-04T00:29:03Z","pushed_at":"2016-05-15T15:41:34Z","git_url":"git://github.com/Jasminewwwu/website.git","ssh_url":"git@github.com:Jasminewwwu/website.git","clone_url":"https://github.com/Jasminewwwu/website.git","svn_url":"https://github.com/Jasminewwwu/website","homepage":null,"size":59,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"pyta-uoft:master","ref":"master","sha":"3f0b8b99afab148ffe45bbd9cd80f55e1488ec1e","user":{"login":"pyta-uoft","id":18420574,"avatar_url":"https://avatars.githubusercontent.com/u/18420574?v=3","gravatar_id":"","url":"https://api.github.com/users/pyta-uoft","html_url":"https://github.com/pyta-uoft","followers_url":"https://api.github.com/users/pyta-uoft/followers","following_url":"https://api.github.com/users/pyta-uoft/following{/other_user}","gists_url":"https://api.github.com/users/pyta-uoft/gists{/gist_id}","starred_url":"https://api.github.com/users/pyta-uoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pyta-uoft/subscriptions","organizations_url":"https://api.github.com/users/pyta-uoft/orgs","repos_url":"https://api.github.com/users/pyta-uoft/repos","events_url":"https://api.github.com/users/pyta-uoft/events{/privacy}","received_events_url":"https://api.github.com/users/pyta-uoft/received_events","type":"Organization","site_admin":false},"repo":{"id":56062212,"name":"website","full_name":"pyta-uoft/website","owner":{"login":"pyta-uoft","id":18420574,"avatar_url":"https://avatars.githubusercontent.com/u/18420574?v=3","gravatar_id":"","url":"https://api.github.com/users/pyta-uoft","html_url":"https://github.com/pyta-uoft","followers_url":"https://api.github.com/users/pyta-uoft/followers","following_url":"https://api.github.com/users/pyta-uoft/following{/other_user}","gists_url":"https://api.github.com/users/pyta-uoft/gists{/gist_id}","starred_url":"https://api.github.com/users/pyta-uoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pyta-uoft/subscriptions","organizations_url":"https://api.github.com/users/pyta-uoft/orgs","repos_url":"https://api.github.com/users/pyta-uoft/repos","events_url":"https://api.github.com/users/pyta-uoft/events{/privacy}","received_events_url":"https://api.github.com/users/pyta-uoft/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pyta-uoft/website","description":"","fork":false,"url":"https://api.github.com/repos/pyta-uoft/website","forks_url":"https://api.github.com/repos/pyta-uoft/website/forks","keys_url":"https://api.github.com/repos/pyta-uoft/website/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pyta-uoft/website/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pyta-uoft/website/teams","hooks_url":"https://api.github.com/repos/pyta-uoft/website/hooks","issue_events_url":"https://api.github.com/repos/pyta-uoft/website/issues/events{/number}","events_url":"https://api.github.com/repos/pyta-uoft/website/events","assignees_url":"https://api.github.com/repos/pyta-uoft/website/assignees{/user}","branches_url":"https://api.github.com/repos/pyta-uoft/website/branches{/branch}","tags_url":"https://api.github.com/repos/pyta-uoft/website/tags","blobs_url":"https://api.github.com/repos/pyta-uoft/website/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pyta-uoft/website/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pyta-uoft/website/git/refs{/sha}","trees_url":"https://api.github.com/repos/pyta-uoft/website/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pyta-uoft/website/statuses/{sha}","languages_url":"https://api.github.com/repos/pyta-uoft/website/languages","stargazers_url":"https://api.github.com/repos/pyta-uoft/website/stargazers","contributors_url":"https://api.github.com/repos/pyta-uoft/website/contributors","subscribers_url":"https://api.github.com/repos/pyta-uoft/website/subscribers","subscription_url":"https://api.github.com/repos/pyta-uoft/website/subscription","commits_url":"https://api.github.com/repos/pyta-uoft/website/commits{/sha}","git_commits_url":"https://api.github.com/repos/pyta-uoft/website/git/commits{/sha}","comments_url":"https://api.github.com/repos/pyta-uoft/website/comments{/number}","issue_comment_url":"https://api.github.com/repos/pyta-uoft/website/issues/comments{/number}","contents_url":"https://api.github.com/repos/pyta-uoft/website/contents/{+path}","compare_url":"https://api.github.com/repos/pyta-uoft/website/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pyta-uoft/website/merges","archive_url":"https://api.github.com/repos/pyta-uoft/website/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pyta-uoft/website/downloads","issues_url":"https://api.github.com/repos/pyta-uoft/website/issues{/number}","pulls_url":"https://api.github.com/repos/pyta-uoft/website/pulls{/number}","milestones_url":"https://api.github.com/repos/pyta-uoft/website/milestones{/number}","notifications_url":"https://api.github.com/repos/pyta-uoft/website/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pyta-uoft/website/labels{/name}","releases_url":"https://api.github.com/repos/pyta-uoft/website/releases{/id}","deployments_url":"https://api.github.com/repos/pyta-uoft/website/deployments","created_at":"2016-04-12T12:44:56Z","updated_at":"2016-05-15T19:22:43Z","pushed_at":"2016-05-16T02:02:54Z","git_url":"git://github.com/pyta-uoft/website.git","ssh_url":"git@github.com:pyta-uoft/website.git","clone_url":"https://github.com/pyta-uoft/website.git","svn_url":"https://github.com/pyta-uoft/website","homepage":null,"size":119,"stargazers_count":3,"watchers_count":3,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":4,"forks":6,"open_issues":4,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pyta-uoft/website/pulls/14"},"html":{"href":"https://github.com/pyta-uoft/website/pull/14"},"issue":{"href":"https://api.github.com/repos/pyta-uoft/website/issues/14"},"comments":{"href":"https://api.github.com/repos/pyta-uoft/website/issues/14/comments"},"review_comments":{"href":"https://api.github.com/repos/pyta-uoft/website/pulls/14/comments"},"review_comment":{"href":"https://api.github.com/repos/pyta-uoft/website/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pyta-uoft/website/pulls/14/commits"},"statuses":{"href":"https://api.github.com/repos/pyta-uoft/website/statuses/df6f2e866b141933912ee67a8d840c769ccc2334"}}}}