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 6990481
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T19:21:23+00:00 2026-05-27T19:21:23+00:00

The original file name is view.py, forms.py but python automatically adds/saves some file named

  • 0

The original file name is view.py, forms.py but python automatically adds/saves some file named view.pyc, forms.pyc

I want to delete those extra view.pyc and forms.pyc files.

Why do I get those .pyc files?

Or how can I tell python not to create those extra files with .pyc extension?

  • 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-27T19:21:24+00:00Added an answer on May 27, 2026 at 7:21 pm

    pyc files are compiled bytecode files, not backup files

    • 6.1.2 “Compiled” Python files http://docs.python.org/release/1.5.1p1/tut/node43.html

      As an important speed-up of the start-up time for short programs that use a lot of standard modules, if a file called “spam.pyc” exists in the directory where “spam.py” is found, this is assumed to contain an already-“byte-compiled” version of the module spam. The modification time of the version of “spam.py” used to create “spam.pyc” is recorded in “spam.pyc”, and the file is ignored if these don’t match.

    Update:

    To avoid writing pyc files (Python 2.6+)

    • start with the -B flag (python -B)
    • set the PYTHONDONTWRITEBYTECODE environment variable.

    See also How to avoid .pyc files?


    Vim backups are named view.py~

    Disable vim backups using

    :se nobackup
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created a Python file to generate a Mandelbrot set image. The original
is there a way to convert byte[] to its original file format? Byte[] tempByte
Ever since deleting the original settings.settings file I have had endless problems getting the
I'm storing several versions of a file based on a digest of the original
Original Question I want to be able to generate a new (fully valid) MP3
Original Question What I'd like is not a standard C pre-processor, but a variation
original string is a,d,k I want to remove all , and make it to
I want to store confidential data in a digitally signed file, so that I
made a menu out of the following code but the original href in the
I have the following c# method to get a valid file name out of

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.