GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • rustpython_vm

This view

  • Original page
  • New address

GeezerVison is showing rustpython.github.io — rustpython_vm::pyobject - Rust

[−][src]Module rustpython_vm::pyobject

Structs

PyCallable
PyContext
PyEllipsis
PyIterable

An iterable Python object.

PyIterator
PyNotImplemented
PyObject

This is an actual python object. It consists of a typ which is the python class, and carries some rust payload optionally. This rust payload can be a rust float or rust int in case of float and int objects.

PyRef

A reference to a Python object.

Enums

Either
PyArithmaticValue

Traits

BufferProtocol
IdProtocol
IntoPyObject

Implemented by any type that can be returned from a built-in Python function.

ItemProtocol

The python item protocol. Mostly applies to dictionaries. Allows getting, setting and deletion of keys-value pairs.

PyClassDef
PyClassImpl
PyObjectPayload
PyValue
TryFromObject

Implemented by any type that can be created from a Python object.

TryIntoRef

Allows coercion of a types into PyRefs, so that we can write functions that can take refs, pyobject refs or basic types.

TypeProtocol

Type Definitions

PyAttributes

For attributes we do not use a dict, but a hashmap. This is probably faster, unordered, and only supports strings as keys. TODO: class attributes should maintain insertion order (use IndexMap here)

PyComparisonValue
PyEllipsisRef
PyNotImplementedRef
PyObjectRef

The PyObjectRef is one of the most used types. It is a reference to a python object. A single python object can have multiple references, and this reference counting is accounted for by this type. Use the .clone() method to create a new reference and increment the amount of references to the python object by 1.

PyResult

Use this type for functions which return a python object or an exception. Both the python object and the python exception are PyObjectRef types since exceptions are also python objects.

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.