Top Description Constructors Methods
org.python.core

public Class NewCompilerResources

extends Object
Class Inheritance

This class contains stuff that almost exists in the library already, but with interfaces that I found more suitable. If others agree this should be migrated into the standard lib.
Author
Tobias Ivarsson

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static void
importAll(PyObject module, PyFrame frame)

Called from jython generated code when a statement like "from spam.eggs import *" is executed.

private static void
loadNames(PyObject
the names to load from the module
names
,
PyObject
the fully imported module
module
,
PyObject
the namespace into which names will be loaded
locals
,
boolean
if true, if the name starts with an underscore '_' do not add it to locals
filter
)

From a module, load the attributes found in names into locals.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

NewCompilerResourcesback to summary
public NewCompilerResources()

Method Detail

importAllback to summary
public static void importAll(PyObject module, PyFrame frame)

Called from jython generated code when a statement like "from spam.eggs import *" is executed.

loadNamesback to summary
private static void loadNames(PyObject names, PyObject module, PyObject locals, boolean filter)

From a module, load the attributes found in names into locals.

Parameters
names:PyObject

the names to load from the module

module:PyObject

the fully imported module

locals:PyObject

the namespace into which names will be loaded

filter:boolean

if true, if the name starts with an underscore '_' do not add it to locals