1 Star 0 Fork 0

jx_gao/jython3

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
registry 4.34 KB
一键复制 编辑 原始数据 按行查看 历史
Isaiah Peng 提交于 2016-08-09 15:22 . PEP-420 Implicit namespace package
# 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
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/jx-gao/jython3.git
git@gitee.com:jx-gao/jython3.git
jx-gao
jython3
jython3
master

搜索帮助

23e8dbc6 1850385 7e0993f3 1850385