What does `pickle.dumps()` return?

Python Professional Hard

Python Professional — Hard

What does `pickle.dumps()` return?

Key points

  • `pickle.dumps()` serializes Python objects
  • The output is a bytes object, not a JSON string
  • It does not return a file path or a compressed archive

Ready to go further?

Related questions