Created
December 20, 2013 23:48
-
-
Save rhizoome/8063489 to your computer and use it in GitHub Desktop.
freeze.dump
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"metadata": { | |
"name": "freeze.dump" | |
}, | |
"nbformat": 3, | |
"nbformat_minor": 0, | |
"worksheets": [ | |
{ | |
"cells": [ | |
{ | |
"cell_type": "code", | |
"collapsed": false, | |
"input": "c = \"\"\"def huhu(gugg=\"huhu\"):\n '''huh'''\n print(huhu)\n\"\"\"\nimport jedi.parser as parser", | |
"language": "python", | |
"metadata": {}, | |
"outputs": [], | |
"prompt_number": 1 | |
}, | |
{ | |
"cell_type": "code", | |
"collapsed": false, | |
"input": "prs = parser.Parser(c)", | |
"language": "python", | |
"metadata": {}, | |
"outputs": [], | |
"prompt_number": 2 | |
}, | |
{ | |
"cell_type": "code", | |
"collapsed": false, | |
"input": "import freeze", | |
"language": "python", | |
"metadata": {}, | |
"outputs": [], | |
"prompt_number": 3 | |
}, | |
{ | |
"cell_type": "code", | |
"collapsed": false, | |
"input": "freeze.dump(prs)", | |
"language": "python", | |
"metadata": {}, | |
"outputs": [ | |
{ | |
"metadata": {}, | |
"output_type": "pyout", | |
"prompt_number": 4, | |
"text": "[\"T: <class 'jedi.parser.Parser'> at 0x7F13C26BF1D0\",\n {'_current': (6, ''),\n '_decorators': [],\n '_scope': \"R: <class 'jedi.parser.representation.Function'> at 0x7F13C016F1F0\",\n 'end_pos': (3, 15),\n 'freshscope': False,\n 'iterator': \"R: <class 'jedi.parser.Parser'> at 0x7F13C26BF1D0\",\n 'module': [\"T: <class 'jedi.parser.representation.SubModule'> at 0x7F13C0142E20\",\n {'_end_pos': (3, 15),\n '_name': None,\n '_start_pos': (1, 0),\n '_sub_module': \"R: <class 'jedi.parser.representation.SubModule'> at 0x7F13C0142E20\",\n 'asserts': [],\n 'docstr': None,\n 'global_vars': [],\n 'imports': [],\n 'is_generator': False,\n 'line_offset': 0,\n 'parent': None,\n 'path': None,\n 'returns': [],\n 'statements': [],\n 'subscopes': [[\"T: <class 'jedi.parser.representation.Function'> at 0x7F13C016F1F0\",\n {'_end_pos': (3, 15),\n '_start_pos': (1, 0),\n '_sub_module': \"R: <class 'jedi.parser.representation.SubModule'> at 0x7F13C0142E20\",\n 'asserts': [],\n 'decorators': [],\n 'docstr': [\"<class 'jedi.parser.token.TokenDocstring'>\",\n {'_start_pos_col': 4,\n '_start_pos_line': 2,\n '_token': \"'''huh'''\",\n '_token_type': 3}],\n 'imports': [],\n 'is_generator': False,\n 'listeners': [\"<class 'set'>\", []],\n 'name': [\"<class 'jedi.parser.representation.Name'>\",\n {'names': ('huhu',)}],\n 'params': [[\"T: <class 'jedi.parser.representation.Param'> at 0x7F13C01701B0\",\n {'annotation_stmt': None,\n 'is_generated': False,\n 'parent_function': \"R: <class 'jedi.parser.representation.Function'> at 0x7F13C016F1F0\",\n 'position_nr': 0}]],\n 'parent': \"R: <class 'jedi.parser.representation.SubModule'> at 0x7F13C0142E20\",\n 'returns': [],\n 'statements': [[\"T: <class 'jedi.parser.representation.Statement'> at 0x7F13C0103050\",\n {'_assignment_details': [],\n '_commands': None,\n '_names_are_set_vars': False,\n '_set_vars': None,\n 'as_names': [],\n 'docstr': None,\n 'token_list': [[\"<class 'jedi.parser.representation.Name'>\",\n {'names': ('print',)}],\n [\"<class 'jedi.parser.token.Token'>\",\n {'_start_pos_col': 9,\n '_start_pos_line': 3,\n '_token': '(',\n '_token_type': 52}],\n [\"<class 'jedi.parser.representation.Name'>\", {'names': ('huhu',)}],\n [\"<class 'jedi.parser.token.Token'>\",\n {'_start_pos_col': 14,\n '_start_pos_line': 3,\n '_token': ')',\n '_token_type': 52}]]}]],\n 'subscopes': [],\n 'use_as_parent': \"R: <class 'jedi.parser.representation.Function'> at 0x7F13C016F1F0\"}]],\n 'temp_used_names': [],\n 'use_as_parent': \"R: <class 'jedi.parser.representation.SubModule'> at 0x7F13C0142E20\",\n 'used_names': [\"<class 'dict'>\",\n {'gugg': [\"<class 'set'>\",\n [\"R: <class 'jedi.parser.representation.Param'> at 0x7F13C01701B0\"]],\n 'huhu': [\"<class 'set'>\",\n [\"R: <class 'jedi.parser.representation.Statement'> at 0x7F13C0103050\"]],\n 'print': [\"<class 'set'>\",\n [\"R: <class 'jedi.parser.representation.Statement'> at 0x7F13C0103050\"]]}]}],\n 'no_docstr': False,\n 'parserline': '',\n 'start_pos': (1, 0),\n 'top_module': \"R: <class 'jedi.parser.representation.SubModule'> at 0x7F13C0142E20\",\n 'user_position': None,\n 'user_scope': None,\n 'user_stmt': None}]" | |
} | |
], | |
"prompt_number": 4 | |
}, | |
{ | |
"cell_type": "code", | |
"collapsed": false, | |
"input": "", | |
"language": "python", | |
"metadata": {}, | |
"outputs": [] | |
} | |
], | |
"metadata": {} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment