"from _json import..." - python
Posted
by RoseOfJericho
on Stack Overflow
See other posts from Stack Overflow
or by RoseOfJericho
Published on 2010-04-23T04:02:19Z
Indexed on
2010/04/23
4:13 UTC
Read the original article
Hit count: 440
Hello, all.
I am inspecting the JSON module of python 3.1, and am currently in /Lib/json/scanner.py. At the top of the file is the following line:
from _json import make_scanner as c_make_scanner
There are five .py files in the module's directory: __init__
(two leading and trailing underscores, it's formatting as bold), decoder, encoder, scanner and tool. There is no file called "json".
My question is: when doing the import, where exactly is "make_scanner" coming from?
Yes, I am very new to Python!
© Stack Overflow or respective owner