{
  "__type": "IngestedDoc",
  "__tag": 4010,
  "_content": {},
  "_ordered_sections": [],
  "item_file": null,
  "item_line": null,
  "item_type": null,
  "aliases": [],
  "example_section_data": {
    "__type": "Section",
    "__tag": 4015,
    "children": [],
    "title": [],
    "level": 0,
    "target": null
  },
  "see_also": [],
  "signature": null,
  "references": null,
  "qa": "development:pycompat",
  "arbitrary": [
    {
      "__type": "Section",
      "__tag": 4015,
      "children": [
        {
          "__type": "Options",
          "__tag": 4034,
          "values": [
            "orphan"
          ]
        }
      ],
      "title": [],
      "level": 0,
      "target": null
    },
    {
      "__type": "Section",
      "__tag": 4015,
      "children": [
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "IPython 6 requires Python 3, so our compatibility module "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "IPython.utils.py3compat"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " is deprecated and will be removed in a future version. In most cases, we recommend you use the "
            },
            {
              "__type": "Link",
              "__tag": 4049,
              "children": [
                {
                  "__type": "Text",
                  "__tag": 4046,
                  "value": "six module"
                }
              ],
              "url": "https://six.readthedocs.io/",
              "title": ""
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " to support compatible code. This is widely used by other projects, so it is familiar to many developers and thoroughly battle-tested."
            }
          ]
        },
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "Our "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "py3compat"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " module provided some more specific unicode conversions than those offered by "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "six"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": ". If you want to use these, copy them into your own code from IPython 5.x. Do not rely on importing them from IPython, as the module may be removed in the future."
            }
          ]
        },
        {
          "__type": "Admonition",
          "__tag": 4056,
          "kind": "seealso",
          "base_type": "note",
          "children": [
            {
              "__type": "AdmonitionTitle",
              "__tag": 4055,
              "children": [
                {
                  "__type": "Text",
                  "__tag": 4046,
                  "value": "seealso "
                }
              ]
            },
            {
              "__type": "DefList",
              "__tag": 4033,
              "children": [
                {
                  "__type": "DefListItem",
                  "__tag": 4037,
                  "dt": {
                    "__type": "Paragraph",
                    "__tag": 4045,
                    "children": [
                      {
                        "__type": "Link",
                        "__tag": 4049,
                        "children": [
                          {
                            "__type": "Text",
                            "__tag": 4046,
                            "value": "Porting Python 2 code to Python 3"
                          }
                        ],
                        "url": "https://docs.python.org/3/howto/pyporting.html",
                        "title": ""
                      }
                    ]
                  },
                  "dd": [
                    {
                      "__type": "Paragraph",
                      "__tag": 4045,
                      "children": [
                        {
                          "__type": "Text",
                          "__tag": 4046,
                          "value": "Official information in the Python docs."
                        }
                      ]
                    }
                  ]
                },
                {
                  "__type": "DefListItem",
                  "__tag": 4037,
                  "dt": {
                    "__type": "Paragraph",
                    "__tag": 4045,
                    "children": [
                      {
                        "__type": "Link",
                        "__tag": 4049,
                        "children": [
                          {
                            "__type": "Text",
                            "__tag": 4046,
                            "value": "Python-Modernize"
                          }
                        ],
                        "url": "https://python-modernize.readthedocs.io/en/latest/",
                        "title": ""
                      }
                    ]
                  },
                  "dd": [
                    {
                      "__type": "Paragraph",
                      "__tag": 4045,
                      "children": [
                        {
                          "__type": "Text",
                          "__tag": 4046,
                          "value": "A tool which helps make code compatible with Python 3."
                        }
                      ]
                    }
                  ]
                },
                {
                  "__type": "DefListItem",
                  "__tag": 4037,
                  "dt": {
                    "__type": "Paragraph",
                    "__tag": 4045,
                    "children": [
                      {
                        "__type": "Link",
                        "__tag": 4049,
                        "children": [
                          {
                            "__type": "Text",
                            "__tag": 4046,
                            "value": "Python-Future"
                          }
                        ],
                        "url": "https://python-future.org/",
                        "title": ""
                      }
                    ]
                  },
                  "dd": [
                    {
                      "__type": "Paragraph",
                      "__tag": 4045,
                      "children": [
                        {
                          "__type": "Text",
                          "__tag": 4046,
                          "value": "Another compatibility tool, which focuses on writing code for Python 3 and   making it work on Python 2."
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        }
      ],
      "title": [
        {
          "__type": "Text",
          "__tag": 4046,
          "value": "Writing code for Python 2 and 3"
        }
      ],
      "level": 0,
      "target": null
    }
  ],
  "local_refs": []
}