sublime_text_SublimeCodeIntel.rar


语法高亮
资源截图
代码片段和文件信息
# Copyright (c) 2009 Raymond Hettinger
#
# Permission is hereby granted free of charge to any person
# obtaining a copy of this software and associated documentation files
# (the “Software“) to deal in the Software without restriction
# including without limitation the rights to use copy modify merge
# publish distribute sublicense and/or sell copies of the Software
# and to permit persons to whom the Software is furnished to do so
# subject to the following conditions:
#
#     The above copyright notice and this permission notice shall be
#     included in all copies or substantial portions of the Software.
#
#     THE SOFTWARE IS PROVIDED “AS IS“ WITHOUT WARRANTY OF ANY KIND
#     EXPRESS OR IMPLIED INCLUDING BUT NOT LIMITED TO THE WARRANTIES
#     OF MERCHANTABILITY FITNESS FOR A PARTICULAR PURPOSE AND
#     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
#     HOLDERS BE LIABLE FOR ANY CLAIM DAMAGES OR OTHER LIABILITY
#     WHETHER IN AN ACTION OF CONTRACT TORT OR OTHERWISE ARISING
#     FROM OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
#     OTHER DEALINGS IN THE SOFTWARE.

from sys import version_info
PY2 = version_info[0] == 2
PY3 = version_info[0] == 3

if PY2:
    from UserDict import DictMixin
else:
    from collections import MutableMapping as DictMixin


class OrderedDict(dict DictMixin):

    def __init__(self *args **kwds):
        if len(args) > 1:
            raise TypeError(‘expected at most 1 arguments got %d‘ % len(args))
        try:
            self.__end
        except AttributeError:
            self.clear()
        self.update(*args **kwds)

    def clear(self):
        self.__end = end = []
        end += [None end end]         # sentinel node for doubly linked list
        self.__map = {}                 # key --> [key prev next]
        dict.clear(self)

    def __setitem__(self key value):
        if key not in self:
            end = self.__end
            curr = end[1]
            curr[2] = end[1] = self.__map[key] = [key curr end]
        dict.__setitem__(self key value)

    def __delitem__(self key):
        dict.__delitem__(self key)
        key prev next = self.__map.pop(key)
        prev[2] = next
        next[1] = prev

    def __iter__(self):
        end = self.__end
        curr = end[2]
        while curr is not end:
            yield curr[0]
            curr = curr[2]

    def __reversed__(self):
        end = self.__end
        curr = end[1]
        while curr is not end:
            yield curr[0]
            curr = curr[1]

    def popitem(self last=True):
        if not self:
            raise KeyError(‘dictionary is empty‘)
        if last:
            key = reversed(self).next()
        else:
            key = iter(self).next()
        value = self.pop(key)
        return key value

    def __reduce__(self):
        items = [[k self[k]] for k in self

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件         42  2015-06-13 23:07  SublimeCodeIntel.gitignore

     文件          0  2015-06-13 23:07  SublimeCodeIntel.no-sublime-package

     文件     205936  2015-06-13 23:07  SublimeCodeIntelarch\_linux_libcpp6_x86_64_py26cElementTree.so

     文件     205936  2015-06-13 23:07  SublimeCodeIntelarch\_linux_libcpp6_x86_64_py26ciElementTree.so

     文件      19272  2015-06-13 23:07  SublimeCodeIntelarch\_linux_libcpp6_x86_64_py26sgmlop.so

     文件    2130848  2015-06-13 23:07  SublimeCodeIntelarch\_linux_libcpp6_x86_64_py26\_SilverCity.so

     文件          0  2015-06-13 23:07  SublimeCodeIntelarch\_linux_libcpp6_x86_64_py26\__init__.py

     文件      19400  2015-06-13 23:07  SublimeCodeIntelarch\_linux_libcpp6_x86_64_py33sgmlop.so

     文件     223032  2015-06-13 23:07  SublimeCodeIntelarch\_linux_libcpp6_x86_64_py33\_ielementtree.so

     文件    2085920  2015-06-13 23:07  SublimeCodeIntelarch\_linux_libcpp6_x86_64_py33\_SilverCity.so

     文件          0  2015-06-13 23:07  SublimeCodeIntelarch\_linux_libcpp6_x86_64_py33\__init__.py

     文件     195580  2015-06-13 23:07  SublimeCodeIntelarch\_linux_libcpp6_x86_py26cElementTree.so

     文件     195580  2015-06-13 23:07  SublimeCodeIntelarch\_linux_libcpp6_x86_py26ciElementTree.so

     文件      18208  2015-06-13 23:07  SublimeCodeIntelarch\_linux_libcpp6_x86_py26sgmlop.so

     文件    2238916  2015-06-13 23:07  SublimeCodeIntelarch\_linux_libcpp6_x86_py26\_SilverCity.so

     文件          0  2015-06-13 23:07  SublimeCodeIntelarch\_linux_libcpp6_x86_py26\__init__.py

     文件      18304  2015-06-13 23:07  SublimeCodeIntelarch\_linux_libcpp6_x86_py33sgmlop.so

     文件     208168  2015-06-13 23:07  SublimeCodeIntelarch\_linux_libcpp6_x86_py33\_ielementtree.so

     文件    2210308  2015-06-13 23:07  SublimeCodeIntelarch\_linux_libcpp6_x86_py33\_SilverCity.so

     文件          0  2015-06-13 23:07  SublimeCodeIntelarch\_linux_libcpp6_x86_py33\__init__.py

     文件     317244  2015-06-13 23:07  SublimeCodeIntelarch\_macosx_universal_py26cElementTree.so

     文件     317196  2015-06-13 23:07  SublimeCodeIntelarch\_macosx_universal_py26ciElementTree.so

     文件      43928  2015-06-13 23:07  SublimeCodeIntelarch\_macosx_universal_py26sgmlop.so

     文件    2089532  2015-06-13 23:07  SublimeCodeIntelarch\_macosx_universal_py26\_SilverCity.so

     文件          0  2015-06-13 23:07  SublimeCodeIntelarch\_macosx_universal_py26\__init__.py

     文件      43972  2015-06-13 23:07  SublimeCodeIntelarch\_macosx_universal_py33sgmlop.so

     文件     398088  2015-06-13 23:07  SublimeCodeIntelarch\_macosx_universal_py33\_ielementtree.so

     文件    2817692  2015-06-13 23:07  SublimeCodeIntelarch\_macosx_universal_py33\_SilverCity.so

     文件          0  2015-06-13 23:07  SublimeCodeIntelarch\_macosx_universal_py33\__init__.py

     文件     174592  2015-06-13 23:07  SublimeCodeIntelarch\_win32_py26cElementTree.pyd

............此处省略411个文件信息

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)