Python Forum
can concatenated pickles be separated?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
can concatenated pickles be separated?
#1
if i have pickle.dump(obj,file) output twice will pickle.load() see a separation (or "end of pickle" marker) between them, or will it just keep reading on through the next one? i want to send pickled objects from one process to another through a pipe, and the size could exceed that of the pipe buffer so the reading process will need to keep reading (i don't know if pickle.load() will do that). or do i need to encapsulate the pickle stream in some kind of separator to allow sending multiple pickles to it and it know there is another one (e.g. a streamed sequence)?
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How can histogram bins be separated and reduce number of labels printed on x-axis? cadena 1 881 Sep-07-2022, 09:47 AM
Last Post: Larz60+
  [SOLVED] [BeautifulSoup] Turn select() into comma-separated string? Winfried 0 1,112 Aug-19-2022, 08:07 PM
Last Post: Winfried
  How to print string multiple times separated by delimiter Mekala 1 1,891 May-23-2020, 09:21 AM
Last Post: Yoriz
  Phyton code to load a comma separated csv file in to a dict and then in to a dB mrsenorchuck 2 2,653 Nov-29-2019, 10:59 AM
Last Post: mrsenorchuck
  datasharing between two separated running scripts Ispanicuz 7 4,248 Dec-21-2018, 08:46 PM
Last Post: Gribouillis
  string agg separated by comma shyamal_kesh 1 2,106 Nov-23-2018, 12:57 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

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