Sha256: 2e40951f05f2ce966f5af269bee7d9074b80b21ec17c7c0051fb678d6562657f

Contents?: true

Size: 497 Bytes

Versions: 3

Compression:

Stored size: 497 Bytes

Contents

require 'python/pickle/instruction'

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

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

      end

      # The `STACK_GLOBAL` instruction.
      STACK_GLOBAL = StackGlobal.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/stack_global.rb
python-pickle-0.1.1 lib/python/pickle/instructions/stack_global.rb
python-pickle-0.1.0 lib/python/pickle/instructions/stack_global.rb