Index Ai Academy
Glossary · Phase 7 · Software engineering

Pickle

Python's format for saving objects as bytes. Loading a pickle from an untrusted source can run code, so do not.

Try it now

The bytes 01 02 are the same in both reads. Big-endian reads the big part first: 1 x 256 + 2. Little-endian reads the small part first: 2 x 256 + 1.

Learn it properly

Binary files · Bytes as numbers, endianness, struct records, file signatures and checking uploads. About 45 minutes.

Other terms from the same lesson

  • endianness: Which end of a multi-byte number is stored first: the big part (big-endian) or the small part (little-endian).
  • file signature: The fixed bytes at the start of a file format, such as 89 50 4E 47 for PNG, that show what a file really is whatever its name.
  • hexadecimal: Counting in sixteens, with digits 0 to 9 and a to f; two hex digits show one byte, from 00 to ff.
Keep learning

More in plain English.

1286 terms in the glossary, each with the lesson that teaches it.

1286 terms

The glossary

Every word you'll meet in AI and machine learning, explained in everyday language.

Phase 7 · lesson 45 min

Binary files

Bytes as numbers, endianness, struct records, file signatures and checking uploads.

Never trained an AI? Teach a small one to write, right in your browser. It takes about 20 seconds and needs no account. Teach it to write