forked from jython/jython3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
registry
91 lines (80 loc) · 4.34 KB
/
registry
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
# Python Registry -*- sh -*-
# This default registry sets many common options to their default values
# All of these settings could be erased with no change in behavior
# Set the directory to use for caches (currently just package information)
# This directory should be writable by the user
# If this is an absolute path it is used as given
# Otherwise it is interpreted relative to sys.prefix
# (typically the directory of this file)
python.cachedir = cachedir
# Setting this property to true disables the package scan for the cachedir.
# Please be aware that disabling this will break importing * from java packages
#python.cachedir.skip = false
# Properties to check for initializing and updating the package cache
# Hopefully you won't have any need to change these
python.packages.paths = java.class.path, sun.boot.class.path
python.packages.directories = java.ext.dirs
# Set verbosity to error, warning, message, comment, or debug
# for varying levels of informative messages from Jython. Normally
# this option is set from the command line.
python.verbose = warning
# Jython ships with a JLine console (http://jline.sourceforge.net/) out of the
# box. This is selected by default in the Jython command-line application
# (org.python.util,jython) if you do not define python.console to be another
# class on the command line. Alternatively, you could set python.console here,
# but be aware that this will also affect the console in applications that
# embed a PythonInterpreter, or use Jython as a JSR-223 script engine.
#python.console=org.python.util.JLineConsole
# To activate the featureless Jython console explicitly, choose:
#python.console=org.python.core.PlainConsole
# You may also set this to the name of a different console class in
# your classpath that extends PlainConsole. Note that
# org.python.util.ReadlineConsole has been removed in 2.7.
# Setting this to a valid (Java) codec name will cause the console to use a
# different encoding when reading commands from the console.
#python.console.encoding = cp850
# Setting this to false will allow Jython to provide access to
# non-public fields, methods, and constructors of Java objects.
python.security.respectJavaAccessibility = true
# Setting this to true will force Jython will use the first module
# found on sys.path where java File.isFile() returns true.
# Setting this to true has no effect on unix-type filesystems.
# On Windows/HPS+ systems, setting it to true will enable Jython-2.0
# behaviour.
python.options.caseok = false
# Use this registry entry to control the list of builtin modules; you
# can add, remove, or override builtin modules. The value for this
# registry key is a comma separated list of module entries, each entry
# of which has the following allowable forms:
#
# name
# The module name is `name' and the class name is
# org.python.modules.name
#
# name:class
# The module name is `name' and the class name is `class' where
# class must be a fully qualified Java class name
#
# name:null
# The module `name' is removed from the list of builtin modules
#
# A good example would be to use a jni version of os for more
# functionality by having an entry such as os:com.foo.jni.os
#python.modules.builtin = whatever
# This registry entry controls the behaviour of the SRE_STATE code point cache.
# For the complete set of values that can be set here see:
# http://docs.guava-libraries.googlecode.com/git-history/release/javadoc/com/google/common/cache/CacheBuilderSpec.html
# Typically you will want to set weakKeys so as to perform object identity
# comparisons rather than using equals(). Using weakKeys also enables entries
# to be removed when the underlying key is garbage collected.
#
# Values that could be useful to tweak are:
# - concurrencyLevel: this is a hint to the cache as to the level of partitioning to
# use for the intenal map and affects the number of concurrent *write* operations
# - expireAfterAccess: constrains the size of the cache and the order
# in which cache entries are evicted. The current value is chosen somewhat
# arbitrarily so tweak as required.
# - maximumWeight: weighting is based on the length of the int[] returned from
# PyString.toCodePoints(). As such this setting contrains the amount of memory
# that the cache will consume. The current value is 10MB.
#python.sre.cachespec = weakKeys,concurrencyLevel=4,maximumWeight=2621440,expireAfterAccess=30s