Python Forum
Question about deserializing some numbers (bug??)
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Question about deserializing some numbers (bug??)
#3
(Oct-27-2020, 07:43 AM)Gribouillis Wrote: It seems that you are attempting an invalid operation. pickle.loads() takes for its first argument a bytes sequence that was created by pickle.dumps(). Here you are passing a numpy.float64 instance. One cannot just pass anything to pickle.loads() and expect it to work.

Regardless of invalid operation, can anyone explain why "pickle.loads(np.float64(0.34104))" prints "True"?
Reply


Messages In This Thread
RE: Question about converting numpy float to bytes (bug??) - by hyoxt121 - Oct-27-2020, 09:44 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020