Pickle (Python)

Pickle (Python)

In the computer programming language Python, pickle is the standard mechanism for object serialization; pickling is the common term among Python programmers for serialization (unpickling for deserializing). Pickle uses a simple stack-based virtual machine that records the instructions used to reconstruct the object. This makes pickle vulnerable to security risks by malformed or maliciously constructed data, that may cause the deserializer to import arbitrary modules and instantiate any object[1][2]. Also, not all objects can be pickled, especially ones that hold operating system resources like file handles.

Pickle was originally implemented as the pure Python pickle module, but the cPickle module (also a built-in) offers improved performance (up to 1000 times faster[1]).

There is another Python module that allows to save objects in a file called Cerealizer. Its interface is similar to Pickle; however, Cerealizer is safe[citation needed].

References

External links


Wikimedia Foundation. 2010.

Игры ⚽ Поможем сделать НИР

Look at other dictionaries:

  • Pickle — or pickling may refer to: Food * Pickling, the process of preserving a food by soaking and storing it in vinegar or brine, which has been going on for five thousand years. * Pickled cucumber, a food most commonly referred to as a pickle in the… …   Wikipedia

  • Pickle — bezeichnet: eingelegtes Gemüse (engl.), siehe Einlegen Indisches Pickle Branston Pickle, ein britischer Markenname einer vegetarischen Würzsoße aus Obst oder Gemüse eine Serialisierungsbibliothek der Programmiersprache Python, sowie den Prozess… …   Deutsch Wikipedia

  • Python — У этого термина существуют и другие значения, см. Python (значения). Python Класс языка: му …   Википедия

  • Объектно-ориентированное программирование на Python — Объектно ориентированное программирование на Python  программирование на Python с использованием парадигмы ООП: с самого начала Python проектировался как объектно ориентированный язык программирования[1]. Содержание 1 Введение 1.1 …   Википедия

  • Пайтон — Python Класс языка: функциональный, объектно ориентированный, императивный, аспектно ориентированный Тип исполнения: интерпретация байт кода, компиляция в MSIL, компиляция в байт код Java Появился в: 1990 г …   Википедия

  • Объектно-ориентированное программирование на Питоне — С самого начала Питон проектировался как объектно ориентированный язык программирования [1]. Содержание 1 Введение 1.1 Принципы ООП …   Википедия

  • Serialization — This article is about data structure encoding. For other uses, see Serialization (disambiguation). In computer science, in the context of data storage and transmission, serialization is the process of converting a data structure or object state… …   Wikipedia

  • List of VeggieTales characters — This is a list of primary, secondary, and recurring characters that appear in the animated series VeggieTales. Contents 1 Primary characters 1.1 Bob the Tomato 1.2 Larry the Cucumber 1.3 …   Wikipedia

  • Java Framework de persistence — Persistance (informatique) Pour les articles homonymes, voir persistance. En programmation, la gestion de persistance des données (en anglais : persistence) et éventuellement des états de programme se réfère au mécanisme responsable de la… …   Wikipédia en Français

  • Java Frameworks de persistence — Persistance (informatique) Pour les articles homonymes, voir persistance. En programmation, la gestion de persistance des données (en anglais : persistence) et éventuellement des états de programme se réfère au mécanisme responsable de la… …   Wikipédia en Français

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”