# PyPy Configuration[objspace]

PyPy Configuration[objspace]
general documentation config index command-line overview

# objspace

Contents

- Basic Option Information
- Sub-Options
- Description

# Basic Option Information

- name: objspace
- description: Object Space Options

# Sub-Options

- objspace.name: Object Space name
- objspace.parser: which parser to use for app-level code
- objspace.compiler: which compiler to use for app-level code
- objspace.opcodes: opcodes to enable in the interpreter
  - objspace.opcodes.CALL_LIKELY_BUILTIN: emit a special bytecode for likely calls to builtin functions
  - objspace.opcodes.CALL_METHOD: emit a special bytecode for expr.name()
- objspace.nofaking: disallow faking in the object space
- objspace.usemodules: Which Modules should be used
  - objspace.usemodules._random: use module _random
  - objspace.usemodules.select: use module select
  - objspace.usemodules.clr: use module clr
  - objspace.usemodules.cclp: use module cclp
  - objspace.usemodules._weakref: use module _weakref
  - objspace.usemodules.recparser: use module recparser
  - objspace.usemodules.marshal: use module marshal
  - objspace.usemodules._sre: use module _sre
  - objspace.usemodules.math: use module math
  - objspace.usemodules._cslib: use module _cslib
  - objspace.usemodules._stackless: use module _stackless
  - objspace.usemodules.bz2: use module bz2
  - objspace.usemodules.__pypy__: use module __pypy__
  - objspace.usemodules.time: use module time
  - objspace.usemodules._codecs: use module _codecs
  - objspace.usemodules.dyngram: use module dyngram
  - objspace.usemodules.thread: use module thread
  - objspace.usemodules.rsocket: use module rsocket
  - objspace.usemodules.signal: use module signal
  - objspace.usemodules.unicodedata: use module unicodedata
  - objspace.usemodules.readline: use module readline
  - objspace.usemodules.rctime: use module rctime
  - objspace.usemodules._demo: use module _demo
  - objspace.usemodules.errno: use module errno
  - objspace.usemodules.gc: use module gc
  - objspace.usemodules.mmap: use module mmap
  - objspace.usemodules.operator: use module operator
  - objspace.usemodules._ssl: use module _ssl
  - objspace.usemodules.crypt: use module crypt
  - objspace.usemodules.posix: use module posix
  - objspace.usemodules.Numeric: use module Numeric
  - objspace.usemodules.__builtin__: use module __builtin__
  - objspace.usemodules._pickle_support: use module _pickle_support
  - objspace.usemodules.symbol: use module symbol
  - objspace.usemodules.fcntl: use module fcntl
  - objspace.usemodules.pypyjit: use module pypyjit
  - objspace.usemodules._file: use module _file
  - objspace.usemodules.array: use module array
  - objspace.usemodules.sys: use module sys
- objspace.allworkingmodules: use as many working modules as possible
- objspace.geninterp: specify whether geninterp should be used
- objspace.logbytecodes: keep track of bytecode usage
- objspace.usepycfiles: Write and read pyc files when importing
- objspace.honor__builtins__: Honor the __builtins__ key of a module dictionary
- objspace.std: Standard Object Space Options
  - objspace.std.withtproxy: support transparent proxies
  - objspace.std.withsmallint: use tagged integers
  - objspace.std.withprebuiltint: prebuild commonly used int objects
  - objspace.std.prebuiltintfrom: lowest integer which is prebuilt
  - objspace.std.prebuiltintto: highest integer which is prebuilt
  - objspace.std.withstrjoin: use strings optimized for addition
  - objspace.std.withstrslice: use strings optimized for slicing
  - objspace.std.withprebuiltchar: use prebuilt single-character string objects
  - objspace.std.sharesmallstr: always reuse the prebuilt string objects (the empty string and potentially single-char strings)
  - objspace.std.withrope: use ropes as the string implementation
  - objspace.std.withmultidict: use dictionaries optimized for flexibility
  - objspace.std.withsharingdict: use dictionaries that share the keys part
  - objspace.std.withdictmeasurement: create huge files with masses of information about dictionaries
  - objspace.std.withbucketdict: use dictionaries with chained hash tables (default is open addressing)
  - objspace.std.withsmalldicts: handle small dictionaries differently
  - objspace.std.withrangelist: enable special range list implementation that does not actually create the full list until the resulting list is mutated
  - objspace.std.withtypeversion: version type objects when changing them
  - objspace.std.withshadowtracking: track whether an instance attribute shadows a type attribute
  - objspace.std.withmethodcache: try to cache method lookups
  - objspace.std.withmethodcachecounter: try to cache methods and provide a counter in __pypy__. for testing purposes only.
  - objspace.std.methodcachesizeexp: * 2 ** methodcachesizeexp is the size of the of the method cache *
  - objspace.std.withmultilist: use lists optimized for flexibility
  - objspace.std.withfastslice: make list slicing lazy
  - objspace.std.withchunklist: introducing a new nesting level to slow down list operations
  - objspace.std.withsmartresizablelist: only overallocate O(sqrt(n)) elements for lists
  - objspace.std.optimized_int_add: special case the addition of two integers in BINARY_ADD
  - objspace.std.oldstyle: specify whether the default metaclass should be classobj
  - objspace.std.allopts: enable all thought-to-be-working optimizations

# Description