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

  • Home
  • SEARCH
  • 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'm inserting multiple records into a table A from another table B. Is there
Apart from just inserting and parsing text into a blank Word field, is there
I am inserting the HTML response from an AJAX call into my page, but
A colleague made a small module to retrieve twitter search results based on user
I'm having an issue with inserting JSON into a database, my intention is to
I am inserting a column in a DataGridView programmatically (i.e., not bound to any
Basically I am inserting an image using the listviews inserting event, trying to resize
I'm inserting something in the cache when the user does a login. Now I
If I am inserting elements into a wrap panel and there is still space
I'm inserting a hook in the MFC message loop so that the Qt events

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.