Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 763237
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T16:31:41+00:00 2026-05-14T16:31:41+00:00

I am inspecting the JSON module of python 3.1, and am currently in /Lib/json/scanner.py.

  • 0

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!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T16:31:42+00:00Added an answer on May 14, 2026 at 4:31 pm

    It may be coming from a file, or it may be built-in. On Windows, it appears to be built-in.

    Python 3.1.2 (r312:79149, Mar 21 2010, 00:41:52) [MSC v.1500 32 bit (Intel)] on win32
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import _json
    >>> _json.__file__
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
    AttributeError: 'module' object has no attribute '__file__'
    

    and there is no _json.pyd or _json.dll in the offing.

    If you want to see the source, having a binary file on your machine or not is irrelevant — you’ll need the SVN browser.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I write an application which creates a JSON File following the below structure: {
I have a JSON file and I'm injecting the data into an HTML page.
Hey I guys I wrote a function to force out a json file, but
I have 464 JSON objects. An HTML element needs to be generated from each
I have a Sinatra server that is returning multiple JSON objects from the database
For example, I would like to create a new 'Tweet' object from the following
I get that JSON.parse() prevents an attacker from injecting javascript into the response since
I have a hash that I'm getting from using JSON.parse. I am inserting into
I'm having an issue with inserting JSON into a database, my intention is to
While inspecting delegates in C# and .NET in general, I noticed some interesting facts:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.