{
  "sample_id": "python-faq-c343f25d0b9c",
  "total_headings": 130,
  "included_occurrences": 116,
  "unique_questions": 116,
  "duplicate_occurrences_removed": 0,
  "excluded_headings": [
    {
      "source": 1,
      "line": 4,
      "heading": "General Python FAQ"
    },
    {
      "source": 1,
      "line": 13,
      "heading": "General Information"
    },
    {
      "source": 1,
      "line": 295,
      "heading": "Python in the real world"
    },
    {
      "source": 2,
      "line": 4,
      "heading": "Programming FAQ"
    },
    {
      "source": 2,
      "line": 12,
      "heading": "General questions"
    },
    {
      "source": 2,
      "line": 115,
      "heading": "Core language"
    },
    {
      "source": 2,
      "line": 804,
      "heading": "Numbers and strings"
    },
    {
      "source": 2,
      "line": 1072,
      "heading": "Performance"
    },
    {
      "source": 2,
      "line": 1160,
      "heading": "Sequences (tuples/lists)"
    },
    {
      "source": 2,
      "line": 1464,
      "heading": "Objects"
    },
    {
      "source": 2,
      "line": 1747,
      "heading": "I try to use __spam and I get an error about _SomeClassName__spam."
    },
    {
      "source": 2,
      "line": 1783,
      "heading": "My class defines __del__ but it is not called when I delete the object."
    },
    {
      "source": 2,
      "line": 2058,
      "heading": "Modules"
    },
    {
      "source": 3,
      "line": 2,
      "heading": "Design and History FAQ"
    }
  ],
  "categories": {
    "general": 23,
    "programming": 65,
    "design": 28
  },
  "questions": [
    {
      "id": "q-679c5d81af7c",
      "question": "What is Python?",
      "category": "general",
      "occurrences": [
        {
          "source": 1,
          "line": 16,
          "end_line": 16,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/general.rst#L16-L16"
        }
      ],
      "count": 1
    },
    {
      "id": "q-86e4048bd386",
      "question": "What is the Python Software Foundation?",
      "category": "general",
      "occurrences": [
        {
          "source": 1,
          "line": 34,
          "end_line": 34,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/general.rst#L34-L34"
        }
      ],
      "count": 1
    },
    {
      "id": "q-e41ec3b776a9",
      "question": "Are there copyright restrictions on the use of Python?",
      "category": "general",
      "occurrences": [
        {
          "source": 1,
          "line": 48,
          "end_line": 48,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/general.rst#L48-L48"
        }
      ],
      "count": 1
    },
    {
      "id": "q-1529f12f8f5a",
      "question": "Why was Python created in the first place?",
      "category": "general",
      "occurrences": [
        {
          "source": 1,
          "line": 66,
          "end_line": 66,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/general.rst#L66-L66"
        }
      ],
      "count": 1
    },
    {
      "id": "q-b0f08e8f1885",
      "question": "What is Python good for?",
      "category": "general",
      "occurrences": [
        {
          "source": 1,
          "line": 109,
          "end_line": 109,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/general.rst#L109-L109"
        }
      ],
      "count": 1
    },
    {
      "id": "q-d844c00825f9",
      "question": "How does the Python version numbering scheme work?",
      "category": "general",
      "occurrences": [
        {
          "source": 1,
          "line": 128,
          "end_line": 128,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/general.rst#L128-L128"
        }
      ],
      "count": 1
    },
    {
      "id": "q-9e461df61e63",
      "question": "How do I obtain a copy of the Python source?",
      "category": "general",
      "occurrences": [
        {
          "source": 1,
          "line": 169,
          "end_line": 169,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/general.rst#L169-L169"
        }
      ],
      "count": 1
    },
    {
      "id": "q-f6c33f7f6dc9",
      "question": "How do I get documentation on Python?",
      "category": "general",
      "occurrences": [
        {
          "source": 1,
          "line": 186,
          "end_line": 186,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/general.rst#L186-L186"
        }
      ],
      "count": 1
    },
    {
      "id": "q-5e31cae66de6",
      "question": "I've never programmed before. Is there a Python tutorial?",
      "category": "general",
      "occurrences": [
        {
          "source": 1,
          "line": 198,
          "end_line": 198,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/general.rst#L198-L198"
        }
      ],
      "count": 1
    },
    {
      "id": "q-af5525484168",
      "question": "Is there a newsgroup or mailing list devoted to Python?",
      "category": "general",
      "occurrences": [
        {
          "source": 1,
          "line": 208,
          "end_line": 208,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/general.rst#L208-L208"
        }
      ],
      "count": 1
    },
    {
      "id": "q-6d4719752cc1",
      "question": "How do I get a beta test version of Python?",
      "category": "general",
      "occurrences": [
        {
          "source": 1,
          "line": 227,
          "end_line": 227,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/general.rst#L227-L227"
        }
      ],
      "count": 1
    },
    {
      "id": "q-1f9c9c006ed4",
      "question": "How do I submit bug reports and patches for Python?",
      "category": "general",
      "occurrences": [
        {
          "source": 1,
          "line": 239,
          "end_line": 239,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/general.rst#L239-L239"
        }
      ],
      "count": 1
    },
    {
      "id": "q-0d4fb78f6945",
      "question": "Are there any published articles about Python that I can reference?",
      "category": "general",
      "occurrences": [
        {
          "source": 1,
          "line": 249,
          "end_line": 249,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/general.rst#L249-L249"
        }
      ],
      "count": 1
    },
    {
      "id": "q-57d9af2b89c6",
      "question": "Are there any books on Python?",
      "category": "general",
      "occurrences": [
        {
          "source": 1,
          "line": 262,
          "end_line": 262,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/general.rst#L262-L262"
        }
      ],
      "count": 1
    },
    {
      "id": "q-e3edaa99eb30",
      "question": "Where in the world is www.python.org located?",
      "category": "general",
      "occurrences": [
        {
          "source": 1,
          "line": 272,
          "end_line": 272,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/general.rst#L272-L272"
        }
      ],
      "count": 1
    },
    {
      "id": "q-43213d1865eb",
      "question": "Why is it called Python?",
      "category": "general",
      "occurrences": [
        {
          "source": 1,
          "line": 279,
          "end_line": 279,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/general.rst#L279-L279"
        }
      ],
      "count": 1
    },
    {
      "id": "q-998806a4a09e",
      "question": "Do I have to like \"Monty Python's Flying Circus\"?",
      "category": "general",
      "occurrences": [
        {
          "source": 1,
          "line": 289,
          "end_line": 289,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/general.rst#L289-L289"
        }
      ],
      "count": 1
    },
    {
      "id": "q-a37b3bdc0dbc",
      "question": "How stable is Python?",
      "category": "general",
      "occurrences": [
        {
          "source": 1,
          "line": 298,
          "end_line": 298,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/general.rst#L298-L298"
        }
      ],
      "count": 1
    },
    {
      "id": "q-61a88c8f3e1c",
      "question": "How many people are using Python?",
      "category": "general",
      "occurrences": [
        {
          "source": 1,
          "line": 317,
          "end_line": 317,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/general.rst#L317-L317"
        }
      ],
      "count": 1
    },
    {
      "id": "q-d7e047f28d7d",
      "question": "Have any significant projects been done in Python?",
      "category": "general",
      "occurrences": [
        {
          "source": 1,
          "line": 331,
          "end_line": 331,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/general.rst#L331-L331"
        }
      ],
      "count": 1
    },
    {
      "id": "q-c5eca17889d7",
      "question": "What new developments are expected for Python in the future?",
      "category": "general",
      "occurrences": [
        {
          "source": 1,
          "line": 347,
          "end_line": 347,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/general.rst#L347-L347"
        }
      ],
      "count": 1
    },
    {
      "id": "q-0e291870c1fd",
      "question": "Is it reasonable to propose incompatible changes to Python?",
      "category": "general",
      "occurrences": [
        {
          "source": 1,
          "line": 360,
          "end_line": 360,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/general.rst#L360-L360"
        }
      ],
      "count": 1
    },
    {
      "id": "q-3b43ae44c358",
      "question": "Is Python a good language for beginning programmers?",
      "category": "general",
      "occurrences": [
        {
          "source": 1,
          "line": 375,
          "end_line": 375,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/general.rst#L375-L375"
        }
      ],
      "count": 1
    },
    {
      "id": "q-8aa2546c4a9b",
      "question": "Is there a source code-level debugger with breakpoints and single-stepping?",
      "category": "programming",
      "occurrences": [
        {
          "source": 2,
          "line": 15,
          "end_line": 15,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/programming.rst#L15-L15"
        }
      ],
      "count": 1
    },
    {
      "id": "q-b11704555693",
      "question": "Are there tools to help find bugs or perform static analysis?",
      "category": "programming",
      "occurrences": [
        {
          "source": 2,
          "line": 54,
          "end_line": 54,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/programming.rst#L54-L54"
        }
      ],
      "count": 1
    },
    {
      "id": "q-798a68581dfb",
      "question": "How can I create a stand-alone binary from a Python script?",
      "category": "programming",
      "occurrences": [
        {
          "source": 2,
          "line": 73,
          "end_line": 73,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/programming.rst#L73-L73"
        }
      ],
      "count": 1
    },
    {
      "id": "q-49932ef38a78",
      "question": "Are there coding standards or a style guide for Python programs?",
      "category": "programming",
      "occurrences": [
        {
          "source": 2,
          "line": 108,
          "end_line": 108,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/programming.rst#L108-L108"
        }
      ],
      "count": 1
    },
    {
      "id": "q-11c991196478",
      "question": "Why am I getting an UnboundLocalError when the variable has a value?",
      "category": "programming",
      "occurrences": [
        {
          "source": 2,
          "line": 120,
          "end_line": 120,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/programming.rst#L120-L120"
        }
      ],
      "count": 1
    },
    {
      "id": "q-0108b6443c29",
      "question": "What are the rules for local and global variables in Python?",
      "category": "programming",
      "occurrences": [
        {
          "source": 2,
          "line": 193,
          "end_line": 193,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/programming.rst#L193-L193"
        }
      ],
      "count": 1
    },
    {
      "id": "q-89137e163933",
      "question": "Why do lambdas defined in a loop with different values all return the same result?",
      "category": "programming",
      "occurrences": [
        {
          "source": 2,
          "line": 209,
          "end_line": 209,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/programming.rst#L209-L209"
        }
      ],
      "count": 1
    },
    {
      "id": "q-187d1a40a098",
      "question": "How do I share global variables across modules?",
      "category": "programming",
      "occurrences": [
        {
          "source": 2,
          "line": 261,
          "end_line": 261,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/programming.rst#L261-L261"
        }
      ],
      "count": 1
    },
    {
      "id": "q-0ad74914789b",
      "question": "What are the \"best practices\" for using import in a module?",
      "category": "programming",
      "occurrences": [
        {
          "source": 2,
          "line": 289,
          "end_line": 289,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/programming.rst#L289-L289"
        }
      ],
      "count": 1
    },
    {
      "id": "q-7f31b8f63131",
      "question": "Why are default values shared between objects?",
      "category": "programming",
      "occurrences": [
        {
          "source": 2,
          "line": 339,
          "end_line": 339,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/programming.rst#L339-L339"
        }
      ],
      "count": 1
    },
    {
      "id": "q-1fd04bbecd27",
      "question": "How can I pass optional or keyword parameters from one function to another?",
      "category": "programming",
      "occurrences": [
        {
          "source": 2,
          "line": 395,
          "end_line": 395,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/programming.rst#L395-L395"
        }
      ],
      "count": 1
    },
    {
      "id": "q-110cc10fd992",
      "question": "What is the difference between arguments and parameters?",
      "category": "programming",
      "occurrences": [
        {
          "source": 2,
          "line": 416,
          "end_line": 416,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/programming.rst#L416-L416"
        }
      ],
      "count": 1
    },
    {
      "id": "q-7aa780433b21",
      "question": "Why did changing list 'y' also change list 'x'?",
      "category": "programming",
      "occurrences": [
        {
          "source": 2,
          "line": 436,
          "end_line": 436,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/programming.rst#L436-L436"
        }
      ],
      "count": 1
    },
    {
      "id": "q-969fcba70773",
      "question": "How do I write a function with output parameters (call by reference)?",
      "category": "programming",
      "occurrences": [
        {
          "source": 2,
          "line": 511,
          "end_line": 511,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/programming.rst#L511-L511"
        }
      ],
      "count": 1
    },
    {
      "id": "q-2ebc09207d0a",
      "question": "How do you make a higher order function in Python?",
      "category": "programming",
      "occurrences": [
        {
          "source": 2,
          "line": 578,
          "end_line": 578,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/programming.rst#L578-L578"
        }
      ],
      "count": 1
    },
    {
      "id": "q-15713b5bad54",
      "question": "How do I copy an object in Python?",
      "category": "programming",
      "occurrences": [
        {
          "source": 2,
          "line": 637,
          "end_line": 637,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/programming.rst#L637-L637"
        }
      ],
      "count": 1
    },
    {
      "id": "q-04d055611814",
      "question": "How can I find the methods or attributes of an object?",
      "category": "programming",
      "occurrences": [
        {
          "source": 2,
          "line": 653,
          "end_line": 653,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/programming.rst#L653-L653"
        }
      ],
      "count": 1
    },
    {
      "id": "q-2fe1c8e0e452",
      "question": "How can my code discover the name of an object?",
      "category": "programming",
      "occurrences": [
        {
          "source": 2,
          "line": 661,
          "end_line": 661,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/programming.rst#L661-L661"
        }
      ],
      "count": 1
    },
    {
      "id": "q-6593b88702a9",
      "question": "What's up with the comma operator's precedence?",
      "category": "programming",
      "occurrences": [
        {
          "source": 2,
          "line": 702,
          "end_line": 702,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/programming.rst#L702-L702"
        }
      ],
      "count": 1
    },
    {
      "id": "q-1f6a31a8615e",
      "question": "Is there an equivalent of C's \"?:\" ternary operator?",
      "category": "programming",
      "occurrences": [
        {
          "source": 2,
          "line": 723,
          "end_line": 723,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/programming.rst#L723-L723"
        }
      ],
      "count": 1
    },
    {
      "id": "q-44f3e77ef042",
      "question": "Is it possible to write obfuscated one-liners in Python?",
      "category": "programming",
      "occurrences": [
        {
          "source": 2,
          "line": 743,
          "end_line": 743,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/programming.rst#L743-L743"
        }
      ],
      "count": 1
    },
    {
      "id": "q-cb9ca0834b35",
      "question": "What does the slash(/) in the parameter list of a function mean?",
      "category": "programming",
      "occurrences": [
        {
          "source": 2,
          "line": 778,
          "end_line": 778,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/programming.rst#L778-L778"
        }
      ],
      "count": 1
    },
    {
      "id": "q-a83464e5a76f",
      "question": "How do I specify hexadecimal and octal integers?",
      "category": "programming",
      "occurrences": [
        {
          "source": 2,
          "line": 807,
          "end_line": 807,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/programming.rst#L807-L807"
        }
      ],
      "count": 1
    },
    {
      "id": "q-33b426482bd2",
      "question": "Why does -22 // 10 return -3?",
      "category": "programming",
      "occurrences": [
        {
          "source": 2,
          "line": 830,
          "end_line": 830,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/programming.rst#L830-L830"
        }
      ],
      "count": 1
    },
    {
      "id": "q-1e317b890151",
      "question": "How do I get int literal attribute instead of SyntaxError?",
      "category": "programming",
      "occurrences": [
        {
          "source": 2,
          "line": 849,
          "end_line": 849,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/programming.rst#L849-L849"
        }
      ],
      "count": 1
    },
    {
      "id": "q-305e62cad980",
      "question": "How do I convert a string to a number?",
      "category": "programming",
      "occurrences": [
        {
          "source": 2,
          "line": 870,
          "end_line": 870,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/programming.rst#L870-L870"
        }
      ],
      "count": 1
    },
    {
      "id": "q-7d58f6e76211",
      "question": "How do I convert a number to a string?",
      "category": "programming",
      "occurrences": [
        {
          "source": 2,
          "line": 896,
          "end_line": 896,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/programming.rst#L896-L896"
        }
      ],
      "count": 1
    },
    {
      "id": "q-4de77a2f919a",
      "question": "How do I modify a string in place?",
      "category": "programming",
      "occurrences": [
        {
          "source": 2,
          "line": 907,
          "end_line": 907,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/programming.rst#L907-L907"
        }
      ],
      "count": 1
    },
    {
      "id": "q-820319678431",
      "question": "How do I use strings to call functions/methods?",
      "category": "programming",
      "occurrences": [
        {
          "source": 2,
          "line": 939,
          "end_line": 939,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/programming.rst#L939-L939"
        }
      ],
      "count": 1
    },
    {
      "id": "q-37f49c7272d0",
      "question": "Is there an equivalent to Perl's ``chomp()`` for removing trailing newlines from strings?",
      "category": "programming",
      "occurrences": [
        {
          "source": 2,
          "line": 991,
          "end_line": 991,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/programming.rst#L991-L991"
        }
      ],
      "count": 1
    },
    {
      "id": "q-48a8a18405d0",
      "question": "Is there a ``scanf()`` or ``sscanf()`` equivalent?",
      "category": "programming",
      "occurrences": [
        {
          "source": 2,
          "line": 1010,
          "end_line": 1010,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/programming.rst#L1010-L1010"
        }
      ],
      "count": 1
    },
    {
      "id": "q-5ad37021ab1f",
      "question": "What does ``UnicodeDecodeError`` or ``UnicodeEncodeError`` error mean?",
      "category": "programming",
      "occurrences": [
        {
          "source": 2,
          "line": 1025,
          "end_line": 1025,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/programming.rst#L1025-L1025"
        }
      ],
      "count": 1
    },
    {
      "id": "q-7e04bfd8a5b2",
      "question": "Can I end a raw string with an odd number of backslashes?",
      "category": "programming",
      "occurrences": [
        {
          "source": 2,
          "line": 1033,
          "end_line": 1033,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/programming.rst#L1033-L1033"
        }
      ],
      "count": 1
    },
    {
      "id": "q-0f4a1303347d",
      "question": "My program is too slow. How do I speed it up?",
      "category": "programming",
      "occurrences": [
        {
          "source": 2,
          "line": 1075,
          "end_line": 1075,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/programming.rst#L1075-L1075"
        }
      ],
      "count": 1
    },
    {
      "id": "q-9ef11d721564",
      "question": "What is the most efficient way to concatenate many strings together?",
      "category": "programming",
      "occurrences": [
        {
          "source": 2,
          "line": 1134,
          "end_line": 1134,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/programming.rst#L1134-L1134"
        }
      ],
      "count": 1
    },
    {
      "id": "q-1aa27cededee",
      "question": "How do I convert between tuples and lists?",
      "category": "programming",
      "occurrences": [
        {
          "source": 2,
          "line": 1163,
          "end_line": 1163,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/programming.rst#L1163-L1163"
        }
      ],
      "count": 1
    },
    {
      "id": "q-8a8e04b96452",
      "question": "What's a negative index?",
      "category": "programming",
      "occurrences": [
        {
          "source": 2,
          "line": 1180,
          "end_line": 1180,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/programming.rst#L1180-L1180"
        }
      ],
      "count": 1
    },
    {
      "id": "q-dc7b40ae20b9",
      "question": "How do I iterate over a sequence in reverse order?",
      "category": "programming",
      "occurrences": [
        {
          "source": 2,
          "line": 1193,
          "end_line": 1193,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/programming.rst#L1193-L1193"
        }
      ],
      "count": 1
    },
    {
      "id": "q-76aa3f605249",
      "question": "How do you remove duplicates from a list?",
      "category": "programming",
      "occurrences": [
        {
          "source": 2,
          "line": 1204,
          "end_line": 1204,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/programming.rst#L1204-L1204"
        }
      ],
      "count": 1
    },
    {
      "id": "q-e2a1c3b3b541",
      "question": "How do you remove multiple items from a list?",
      "category": "programming",
      "occurrences": [
        {
          "source": 2,
          "line": 1232,
          "end_line": 1232,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/programming.rst#L1232-L1232"
        }
      ],
      "count": 1
    },
    {
      "id": "q-2e8597d2786e",
      "question": "How do you make an array in Python?",
      "category": "programming",
      "occurrences": [
        {
          "source": 2,
          "line": 1247,
          "end_line": 1247,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/programming.rst#L1247-L1247"
        }
      ],
      "count": 1
    },
    {
      "id": "q-06b966dcbc26",
      "question": "How do I create a multidimensional list?",
      "category": "programming",
      "occurrences": [
        {
          "source": 2,
          "line": 1275,
          "end_line": 1275,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/programming.rst#L1275-L1275"
        }
      ],
      "count": 1
    },
    {
      "id": "q-0123a02c8779",
      "question": "How do I apply a method or function to a sequence of objects?",
      "category": "programming",
      "occurrences": [
        {
          "source": 2,
          "line": 1327,
          "end_line": 1327,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/programming.rst#L1327-L1327"
        }
      ],
      "count": 1
    },
    {
      "id": "q-30a75a1650a1",
      "question": "Why does a_tuple[i] += ['item'] raise an exception when the addition works?",
      "category": "programming",
      "occurrences": [
        {
          "source": 2,
          "line": 1349,
          "end_line": 1349,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/programming.rst#L1349-L1349"
        }
      ],
      "count": 1
    },
    {
      "id": "q-2210eb77253a",
      "question": "I want to do a complicated sort: can you do a Schwartzian Transform in Python?",
      "category": "programming",
      "occurrences": [
        {
          "source": 2,
          "line": 1436,
          "end_line": 1436,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/programming.rst#L1436-L1436"
        }
      ],
      "count": 1
    },
    {
      "id": "q-8f14027d7e68",
      "question": "How can I sort one list by values from another list?",
      "category": "programming",
      "occurrences": [
        {
          "source": 2,
          "line": 1447,
          "end_line": 1447,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/programming.rst#L1447-L1447"
        }
      ],
      "count": 1
    },
    {
      "id": "q-51e3a27fcda6",
      "question": "What is a class?",
      "category": "programming",
      "occurrences": [
        {
          "source": 2,
          "line": 1467,
          "end_line": 1467,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/programming.rst#L1467-L1467"
        }
      ],
      "count": 1
    },
    {
      "id": "q-9fe36026887e",
      "question": "What is a method?",
      "category": "programming",
      "occurrences": [
        {
          "source": 2,
          "line": 1482,
          "end_line": 1482,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/programming.rst#L1482-L1482"
        }
      ],
      "count": 1
    },
    {
      "id": "q-3aaebee3736a",
      "question": "What is self?",
      "category": "programming",
      "occurrences": [
        {
          "source": 2,
          "line": 1494,
          "end_line": 1494,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/programming.rst#L1494-L1494"
        }
      ],
      "count": 1
    },
    {
      "id": "q-71f6677ccbf8",
      "question": "How do I check if an object is an instance of a given class or of a subclass of it?",
      "category": "programming",
      "occurrences": [
        {
          "source": 2,
          "line": 1505,
          "end_line": 1505,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/programming.rst#L1505-L1505"
        }
      ],
      "count": 1
    },
    {
      "id": "q-2e193c240430",
      "question": "What is delegation?",
      "category": "programming",
      "occurrences": [
        {
          "source": 2,
          "line": 1579,
          "end_line": 1579,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/programming.rst#L1579-L1579"
        }
      ],
      "count": 1
    },
    {
      "id": "q-51116040ab9f",
      "question": "How do I call a method defined in a base class from a derived class that extends it?",
      "category": "programming",
      "occurrences": [
        {
          "source": 2,
          "line": 1633,
          "end_line": 1633,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/programming.rst#L1633-L1633"
        }
      ],
      "count": 1
    },
    {
      "id": "q-4d644ede0b9b",
      "question": "How can I organize my code to make it easier to change the base class?",
      "category": "programming",
      "occurrences": [
        {
          "source": 2,
          "line": 1648,
          "end_line": 1648,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/programming.rst#L1648-L1648"
        }
      ],
      "count": 1
    },
    {
      "id": "q-7a170d991015",
      "question": "How do I create static class data and static class methods?",
      "category": "programming",
      "occurrences": [
        {
          "source": 2,
          "line": 1665,
          "end_line": 1665,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/programming.rst#L1665-L1665"
        }
      ],
      "count": 1
    },
    {
      "id": "q-883377f8132d",
      "question": "How can I overload constructors (or methods) in Python?",
      "category": "programming",
      "occurrences": [
        {
          "source": 2,
          "line": 1712,
          "end_line": 1712,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/programming.rst#L1712-L1712"
        }
      ],
      "count": 1
    },
    {
      "id": "q-fae97292c4b6",
      "question": "How do I get a list of all instances of a given class?",
      "category": "programming",
      "occurrences": [
        {
          "source": 2,
          "line": 1827,
          "end_line": 1827,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/programming.rst#L1827-L1827"
        }
      ],
      "count": 1
    },
    {
      "id": "q-933d9b86422d",
      "question": "Why does the result of ``id()`` appear to be not unique?",
      "category": "programming",
      "occurrences": [
        {
          "source": 2,
          "line": 1835,
          "end_line": 1835,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/programming.rst#L1835-L1835"
        }
      ],
      "count": 1
    },
    {
      "id": "q-b4cd0000736a",
      "question": "When can I rely on identity tests with the *is* operator?",
      "category": "programming",
      "occurrences": [
        {
          "source": 2,
          "line": 1863,
          "end_line": 1863,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/programming.rst#L1863-L1863"
        }
      ],
      "count": 1
    },
    {
      "id": "q-6dc4404a7319",
      "question": "How can a subclass control what data is stored in an immutable instance?",
      "category": "programming",
      "occurrences": [
        {
          "source": 2,
          "line": 1952,
          "end_line": 1952,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/programming.rst#L1952-L1952"
        }
      ],
      "count": 1
    },
    {
      "id": "q-5ffe4178bf5e",
      "question": "How do I cache method calls?",
      "category": "programming",
      "occurrences": [
        {
          "source": 2,
          "line": 2002,
          "end_line": 2002,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/programming.rst#L2002-L2002"
        }
      ],
      "count": 1
    },
    {
      "id": "q-0d67b46b6175",
      "question": "How do I create a .pyc file?",
      "category": "programming",
      "occurrences": [
        {
          "source": 2,
          "line": 2061,
          "end_line": 2061,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/programming.rst#L2061-L2061"
        }
      ],
      "count": 1
    },
    {
      "id": "q-dee6c1285844",
      "question": "How do I find the current module name?",
      "category": "programming",
      "occurrences": [
        {
          "source": 2,
          "line": 2111,
          "end_line": 2111,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/programming.rst#L2111-L2111"
        }
      ],
      "count": 1
    },
    {
      "id": "q-80fa468e27c3",
      "question": "How can I have modules that mutually import each other?",
      "category": "programming",
      "occurrences": [
        {
          "source": 2,
          "line": 2128,
          "end_line": 2128,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/programming.rst#L2128-L2128"
        }
      ],
      "count": 1
    },
    {
      "id": "q-df22a1ace3a2",
      "question": "__import__('x.y.z') returns <module 'x'>; how do I get z?",
      "category": "programming",
      "occurrences": [
        {
          "source": 2,
          "line": 2183,
          "end_line": 2183,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/programming.rst#L2183-L2183"
        }
      ],
      "count": 1
    },
    {
      "id": "q-a8ad9c5b9fe2",
      "question": "When I edit an imported module and reimport it, the changes don't show up.  Why does this happen?",
      "category": "programming",
      "occurrences": [
        {
          "source": 2,
          "line": 2192,
          "end_line": 2192,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/programming.rst#L2192-L2192"
        }
      ],
      "count": 1
    },
    {
      "id": "q-dca8215f3b21",
      "question": "Why does Python use indentation for grouping of statements?",
      "category": "design",
      "occurrences": [
        {
          "source": 3,
          "line": 11,
          "end_line": 11,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/design.rst#L11-L11"
        }
      ],
      "count": 1
    },
    {
      "id": "q-326b6b47a5b1",
      "question": "Why am I getting strange results with simple arithmetic operations?",
      "category": "design",
      "occurrences": [
        {
          "source": 3,
          "line": 48,
          "end_line": 48,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/design.rst#L48-L48"
        }
      ],
      "count": 1
    },
    {
      "id": "q-60f4c9e0a148",
      "question": "Why are floating-point calculations so inaccurate?",
      "category": "design",
      "occurrences": [
        {
          "source": 3,
          "line": 54,
          "end_line": 54,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/design.rst#L54-L54"
        }
      ],
      "count": 1
    },
    {
      "id": "q-6dfbcd7c5bc7",
      "question": "Why are Python strings immutable?",
      "category": "design",
      "occurrences": [
        {
          "source": 3,
          "line": 95,
          "end_line": 95,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/design.rst#L95-L95"
        }
      ],
      "count": 1
    },
    {
      "id": "q-e5f666886500",
      "question": "Why must 'self' be used explicitly in method definitions and calls?",
      "category": "design",
      "occurrences": [
        {
          "source": 3,
          "line": 112,
          "end_line": 112,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/design.rst#L112-L112"
        }
      ],
      "count": 1
    },
    {
      "id": "q-586c170180fd",
      "question": "Why can't I use an assignment in an expression?",
      "category": "design",
      "occurrences": [
        {
          "source": 3,
          "line": 154,
          "end_line": 154,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/design.rst#L154-L154"
        }
      ],
      "count": 1
    },
    {
      "id": "q-b7bf879b1a77",
      "question": "Why does Python use methods for some functionality (e.g. list.index()) but functions for other (e.g. len(list))?",
      "category": "design",
      "occurrences": [
        {
          "source": 3,
          "line": 169,
          "end_line": 169,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/design.rst#L169-L169"
        }
      ],
      "count": 1
    },
    {
      "id": "q-b74f45a77abc",
      "question": "Why is join() a string method instead of a list or tuple method?",
      "category": "design",
      "occurrences": [
        {
          "source": 3,
          "line": 193,
          "end_line": 193,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/design.rst#L193-L193"
        }
      ],
      "count": 1
    },
    {
      "id": "q-19f38078d172",
      "question": "How fast are exceptions?",
      "category": "design",
      "occurrences": [
        {
          "source": 3,
          "line": 233,
          "end_line": 233,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/design.rst#L233-L233"
        }
      ],
      "count": 1
    },
    {
      "id": "q-ea7766bf8750",
      "question": "Why isn't there a switch or case statement in Python?",
      "category": "design",
      "occurrences": [
        {
          "source": 3,
          "line": 260,
          "end_line": 260,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/design.rst#L260-L260"
        }
      ],
      "count": 1
    },
    {
      "id": "q-57cf1fd2c269",
      "question": "Can't you emulate threads in the interpreter instead of relying on an OS-specific thread implementation?",
      "category": "design",
      "occurrences": [
        {
          "source": 3,
          "line": 302,
          "end_line": 302,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/design.rst#L302-L302"
        }
      ],
      "count": 1
    },
    {
      "id": "q-2448df50c704",
      "question": "Why can't lambda expressions contain statements?",
      "category": "design",
      "occurrences": [
        {
          "source": 3,
          "line": 314,
          "end_line": 314,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/design.rst#L314-L314"
        }
      ],
      "count": 1
    },
    {
      "id": "q-96f04ff4c54f",
      "question": "Can Python be compiled to machine code, C or some other language?",
      "category": "design",
      "occurrences": [
        {
          "source": 3,
          "line": 330,
          "end_line": 330,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/design.rst#L330-L330"
        }
      ],
      "count": 1
    },
    {
      "id": "q-bcbce21b01af",
      "question": "How does Python manage memory?",
      "category": "design",
      "occurrences": [
        {
          "source": 3,
          "line": 339,
          "end_line": 339,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/design.rst#L339-L339"
        }
      ],
      "count": 1
    },
    {
      "id": "q-e4383c51313d",
      "question": "Why doesn't CPython use a more traditional garbage collection scheme?",
      "category": "design",
      "occurrences": [
        {
          "source": 3,
          "line": 377,
          "end_line": 377,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/design.rst#L377-L377"
        }
      ],
      "count": 1
    },
    {
      "id": "q-f1e40ad947e7",
      "question": "Why isn't all memory freed when CPython exits?",
      "category": "design",
      "occurrences": [
        {
          "source": 3,
          "line": 394,
          "end_line": 394,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/design.rst#L394-L394"
        }
      ],
      "count": 1
    },
    {
      "id": "q-b0945a8b3d12",
      "question": "Why are there separate tuple and list data types?",
      "category": "design",
      "occurrences": [
        {
          "source": 3,
          "line": 408,
          "end_line": 408,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/design.rst#L408-L408"
        }
      ],
      "count": 1
    },
    {
      "id": "q-64719256d077",
      "question": "How are lists implemented in CPython?",
      "category": "design",
      "occurrences": [
        {
          "source": 3,
          "line": 434,
          "end_line": 434,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/design.rst#L434-L434"
        }
      ],
      "count": 1
    },
    {
      "id": "q-dbd739e8b413",
      "question": "How are dictionaries implemented in CPython?",
      "category": "design",
      "occurrences": [
        {
          "source": 3,
          "line": 454,
          "end_line": 454,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/design.rst#L454-L454"
        }
      ],
      "count": 1
    },
    {
      "id": "q-c7802a12e583",
      "question": "Why must dictionary keys be immutable?",
      "category": "design",
      "occurrences": [
        {
          "source": 3,
          "line": 473,
          "end_line": 473,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/design.rst#L473-L473"
        }
      ],
      "count": 1
    },
    {
      "id": "q-285347f7a027",
      "question": "Why doesn't list.sort() return the sorted list?",
      "category": "design",
      "occurrences": [
        {
          "source": 3,
          "line": 556,
          "end_line": 556,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/design.rst#L556-L556"
        }
      ],
      "count": 1
    },
    {
      "id": "q-25c0de18cd70",
      "question": "How do you specify and enforce an interface spec in Python?",
      "category": "design",
      "occurrences": [
        {
          "source": 3,
          "line": 574,
          "end_line": 574,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/design.rst#L574-L574"
        }
      ],
      "count": 1
    },
    {
      "id": "q-c840cd2abe17",
      "question": "Why is there no goto?",
      "category": "design",
      "occurrences": [
        {
          "source": 3,
          "line": 615,
          "end_line": 615,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/design.rst#L615-L615"
        }
      ],
      "count": 1
    },
    {
      "id": "q-f9954dfe9adf",
      "question": "Why can't raw strings (r-strings) end with a backslash?",
      "category": "design",
      "occurrences": [
        {
          "source": 3,
          "line": 645,
          "end_line": 645,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/design.rst#L645-L645"
        }
      ],
      "count": 1
    },
    {
      "id": "q-905af27d0963",
      "question": "Why doesn't Python have a \"with\" statement for attribute assignments?",
      "category": "design",
      "occurrences": [
        {
          "source": 3,
          "line": 671,
          "end_line": 671,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/design.rst#L671-L671"
        }
      ],
      "count": 1
    },
    {
      "id": "q-7d3e302be6bb",
      "question": "Why don't generators support the with statement?",
      "category": "design",
      "occurrences": [
        {
          "source": 3,
          "line": 730,
          "end_line": 730,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/design.rst#L730-L730"
        }
      ],
      "count": 1
    },
    {
      "id": "q-689aa2250ba1",
      "question": "Why are colons required for the if/while/def/class statements?",
      "category": "design",
      "occurrences": [
        {
          "source": 3,
          "line": 740,
          "end_line": 740,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/design.rst#L740-L740"
        }
      ],
      "count": 1
    },
    {
      "id": "q-4b40cd72162b",
      "question": "Why does Python allow commas at the end of lists and tuples?",
      "category": "design",
      "occurrences": [
        {
          "source": 3,
          "line": 762,
          "end_line": 762,
          "url": "https://github.com/python/cpython/blob/c343f25d0b9c965f55b86ff82bbc92c70ec69623/Doc/faq/design.rst#L762-L762"
        }
      ],
      "count": 1
    }
  ]
}