Python Forum

Full Version: Use IDLE to compose and test only
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Just for the benefit of the ones who don't realize it:

I use IDLE and it is an excellent way to perfect and de-bug code. It is a good way to test programs. However, I run programs that take a long time because they work on datasets, typically .csv format, measuring in numerous gigabytes, and often running the sort command. I find my Mac runs these programs much faster when I use Terminal and at the command prompt, I key in python path/example.py or even cd /Volumes/external_drive/projects/directory to get into the directory where the Python file is, and then simply python example.py

On a side note, a gigabyte is 1,000,000,000 bytes, same as a gigagram is 1,000,000,000 grams. They used to call 1,073,741,824 bytes a gigabyte when they called 1024 bytes a kilobyte, because 1024 is 210 conveniently close to 1000 while reflecting the number of possible combinations of 10 binary digits (bits), but they changed that and 1024 bytes is a kibibyte and 1,073,741,824 bytes is a gibibyte, where the "bi" stands for "binary" as opposed to the decimal nature of the metric system.
This looks like gibberish created by chatGBT or some other AI engine.