Sha256: afecec46c8ad2ec15041cba44692daf5d27062aa442c5d38b8148d227c8065a1

Contents?: true

Size: 464 Bytes

Versions: 3

Compression:

Stored size: 464 Bytes

Contents

require 'python/pickle/instruction'

module Python
  module Pickle
    module Instructions
      #
      # Represents a pickle `MEMOIZE` instruction.
      #
      # @note introduced in protocol 4.
      #
      class Memoize < Instruction

        #
        # Initializes the `MEMOIZE` instruction.
        #
        def initialize
          super(:MEMOIZE)
        end

      end

      # The `MEMOIZE` instruction.
      MEMOIZE = Memoize.new
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
python-pickle-0.2.0 lib/python/pickle/instructions/memoize.rb
python-pickle-0.1.1 lib/python/pickle/instructions/memoize.rb
python-pickle-0.1.0 lib/python/pickle/instructions/memoize.rb