Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(22)  |  Call(5)  |  Derive(0)  |  Import(17)
list() -> new empty list
list(iterable) -> new list initialized from iterable's items

src/g/n/gns3-gui-HEAD/gns3/websocket_client.py   gns3-gui(Download)
 
            # let the responsible module know about the notification
            from .modules import MODULES
            for module in MODULES:
                if method.startswith(module.__name__.lower()):

src/g/n/gns3-gui-HEAD/gns3/graphics_view.py   gns3-gui(Download)
from .link import Link
from .node import Node
from .modules import MODULES
from .modules.builtin.cloud import Cloud
from .modules.module_error import ModuleError
 
        # reset the modules
        for module in MODULES:
            instance = module.instance()
            instance.reset()
 
        try:
            for module in MODULES:
                instance = module.instance()
                instance.setProjectFilesDir(path)
        try:
            node_module = None
            for module in MODULES:
                instance = module.instance()
                if node_class in instance.nodes():

src/z/o/ZopeHealthWatcher-0.3/Products/ZopeHealthWatcher/dumper.py   ZopeHealthWatcher(Download)
 
import custom
from modules import MODULES
 
def dump_modules():
    return [mod() for mod in MODULES]

src/g/n/gns3-gui-HEAD/gns3/topology.py   gns3-gui(Download)
from .items.node_item import NodeItem
from .servers import Servers
from .modules import MODULES
from .modules.module_error import ModuleError
from .utils.message_box import MessageBox
                try:
                    node_module = None
                    for module in MODULES:
                        instance = module.instance()
                        node_class = module.getNodeClass(topology_node["type"])

src/g/n/gns3-gui-HEAD/gns3/preferences_dialog.py   gns3-gui(Download)
from .pages.general_preferences_page import GeneralPreferencesPage
from .pages.cloud_preferences_page import CloudPreferencesPage
from .modules import MODULES
 
 
 
        # load module preference pages
        for module in MODULES:
            for cls in module.preferencePages():
                preferences_page = cls()

src/g/n/gns3-gui-HEAD/gns3/nodes_view.py   gns3-gui(Download)
import pickle
from .qt import QtCore, QtGui
from .modules import MODULES
 
 
        """
 
        for module in MODULES:
            for node in module.nodes():
                if category != None and category not in node.categories():

src/g/n/gns3-gui-HEAD/gns3/console_view.py   gns3-gui(Download)
from .console_cmd import ConsoleCmd
from .pycutext import PyCutExt
from .modules import MODULES
 
 
            sys.stderr.write(e)
 
        for module in MODULES:
            instance = module.instance()
            instance.notification_signal.connect(self.writeNotification)

src/g/n/gns3-server-HEAD/gns3server/server.py   gns3-server(Download)
from .builtins.server_version import server_version
from .builtins.interfaces import interfaces
from .modules import MODULES
 
import logging
        JSONRPCWebSocket.register_destination("builtin.interfaces", interfaces)
 
        for module in MODULES:
            instance = module(module.__name__.lower(),
                              "127.0.0.1",  # ZeroMQ server address