python - Is there any difference between Pickling and Serialization? -


i have came across these 2 terms while reading python objects. however, there confusion between pickling , serialization since @ 1 place read

the pickle module implements algorithm turning arbitrary python object series of bytes. process called serializing” object.

if serializing , pickling same process, why use different terms them?

you misreading article. pickling , serialisation not synonymous, nor text claim them be.

paraphrasing slighly, text says this:

this module implements algorithm turning object series of bytes. this process called serializing object.

i removed module name, pickle, deliberately. module implements process, algorithm, , process commonly known serialisation.

there other implementations of process. use json or xml serialise data text. there marshal module. other languages have other serialization formats; r language has one, does java. etc.

see wikipedia article on subject:

in computer science, in context of data storage, serialization process of translating data structures or object state format can stored (for example, in file or memory buffer, or transmitted across network connection link) , reconstructed later in same or computer environment.

python picked name pickle because modelled process on how handled in modula-3, called pickling. see pickles: why called that?


Comments

Popular posts from this blog

How to provide Authorization & Authentication using Asp.net, C#? -

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

How to use Authorization & Authentication in Asp.net, C#? -