Python collections.MutableMapping.itervalues() Examples

The following are 30 code examples of collections.MutableMapping.itervalues(). You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may also want to check out all available functions/classes of the module collections.MutableMapping , or try the search function .
Example #1
Source File: _collections.py    From quickstart-taskcat-ci with Apache License 2.0 5 votes vote down vote up
def clear(self):
        with self.lock:
            # Copy pointers to all values, then wipe the mapping
            values = list(itervalues(self._container))
            self._container.clear()

        if self.dispose_func:
            for value in values:
                self.dispose_func(value) 
Example #2
Source File: _collections.py    From cadquery-freecad-module with GNU Lesser General Public License v3.0 5 votes vote down vote up
def clear(self):
        with self.lock:
            # Copy pointers to all values, then wipe the mapping
            values = list(itervalues(self._container))
            self._container.clear()

        if self.dispose_func:
            for value in values:
                self.dispose_func(value) 
Example #3
Source File: _collections.py    From stopstalk-deployment with MIT License 5 votes vote down vote up
def clear(self):
        with self.lock:
            # Copy pointers to all values, then wipe the mapping
            values = list(itervalues(self._container))
            self._container.clear()

        if self.dispose_func:
            for value in values:
                self.dispose_func(value) 
Example #4
Source File: _collections.py    From Financial-Portfolio-Flask with MIT License 5 votes vote down vote up
def clear(self):
        with self.lock:
            # Copy pointers to all values, then wipe the mapping
            values = list(itervalues(self._container))
            self._container.clear()

        if self.dispose_func:
            for value in values:
                self.dispose_func(value) 
Example #5
Source File: _collections.py    From python with Apache License 2.0 5 votes vote down vote up
def clear(self):
        with self.lock:
            # Copy pointers to all values, then wipe the mapping
            values = list(itervalues(self._container))
            self._container.clear()

        if self.dispose_func:
            for value in values:
                self.dispose_func(value) 
Example #6
Source File: _collections.py    From Financial-Portfolio-Flask with MIT License 5 votes vote down vote up
def clear(self):
        with self.lock:
            # Copy pointers to all values, then wipe the mapping
            values = list(itervalues(self._container))
            self._container.clear()

        if self.dispose_func:
            for value in values:
                self.dispose_func(value) 
Example #7
Source File: _collections.py    From Hands-On-Application-Development-with-PyCharm with MIT License 5 votes vote down vote up
def clear(self):
        with self.lock:
            # Copy pointers to all values, then wipe the mapping
            values = list(itervalues(self._container))
            self._container.clear()

        if self.dispose_func:
            for value in values:
                self.dispose_func(value) 
Example #8
Source File: _collections.py    From pipenv-sublime with MIT License 5 votes vote down vote up
def clear(self):
        with self.lock:
            # Copy pointers to all values, then wipe the mapping
            values = list(itervalues(self._container))
            self._container.clear()

        if self.dispose_func:
            for value in values:
                self.dispose_func(value) 
Example #9
Source File: _collections.py    From script.elementum.burst with Do What The F*ck You Want To Public License 5 votes vote down vote up
def clear(self):
        with self.lock:
            # Copy pointers to all values, then wipe the mapping
            values = list(itervalues(self._container))
            self._container.clear()

        if self.dispose_func:
            for value in values:
                self.dispose_func(value) 
Example #10
Source File: _collections.py    From stopstalk-deployment with MIT License 5 votes vote down vote up
def clear(self):
        with self.lock:
            # Copy pointers to all values, then wipe the mapping
            values = list(itervalues(self._container))
            self._container.clear()

        if self.dispose_func:
            for value in values:
                self.dispose_func(value) 
Example #11
Source File: _collections.py    From scalyr-agent-2 with Apache License 2.0 5 votes vote down vote up
def clear(self):
        with self.lock:
            # Copy pointers to all values, then wipe the mapping
            values = list(itervalues(self._container))
            self._container.clear()

        if self.dispose_func:
            for value in values:
                self.dispose_func(value) 
Example #12
Source File: _collections.py    From pySINDy with MIT License 5 votes vote down vote up
def clear(self):
        with self.lock:
            # Copy pointers to all values, then wipe the mapping
            values = list(itervalues(self._container))
            self._container.clear()

        if self.dispose_func:
            for value in values:
                self.dispose_func(value) 
Example #13
Source File: _collections.py    From Fluid-Designer with GNU General Public License v3.0 5 votes vote down vote up
def clear(self):
        with self.lock:
            # Copy pointers to all values, then wipe the mapping
            values = list(itervalues(self._container))
            self._container.clear()

        if self.dispose_func:
            for value in values:
                self.dispose_func(value) 
Example #14
Source File: _collections.py    From kodi with GNU General Public License v3.0 5 votes vote down vote up
def clear(self):
        with self.lock:
            # Copy pointers to all values, then wipe the mapping
            values = list(itervalues(self._container))
            self._container.clear()

        if self.dispose_func:
            for value in values:
                self.dispose_func(value) 
Example #15
Source File: _collections.py    From kodi with GNU General Public License v3.0 5 votes vote down vote up
def clear(self):
        with self.lock:
            # Copy pointers to all values, then wipe the mapping
            values = list(itervalues(self._container))
            self._container.clear()

        if self.dispose_func:
            for value in values:
                self.dispose_func(value) 
Example #16
Source File: _collections.py    From pySINDy with MIT License 5 votes vote down vote up
def clear(self):
        with self.lock:
            # Copy pointers to all values, then wipe the mapping
            values = list(itervalues(self._container))
            self._container.clear()

        if self.dispose_func:
            for value in values:
                self.dispose_func(value) 
Example #17
Source File: _collections.py    From hacktoberfest2018 with GNU General Public License v3.0 5 votes vote down vote up
def clear(self):
        with self.lock:
            # Copy pointers to all values, then wipe the mapping
            values = list(itervalues(self._container))
            self._container.clear()

        if self.dispose_func:
            for value in values:
                self.dispose_func(value) 
Example #18
Source File: _collections.py    From hacktoberfest2018 with GNU General Public License v3.0 5 votes vote down vote up
def clear(self):
        with self.lock:
            # Copy pointers to all values, then wipe the mapping
            values = list(itervalues(self._container))
            self._container.clear()

        if self.dispose_func:
            for value in values:
                self.dispose_func(value) 
Example #19
Source File: _collections.py    From GraphicDesignPatternByPython with MIT License 5 votes vote down vote up
def clear(self):
        with self.lock:
            # Copy pointers to all values, then wipe the mapping
            values = list(itervalues(self._container))
            self._container.clear()

        if self.dispose_func:
            for value in values:
                self.dispose_func(value) 
Example #20
Source File: _collections.py    From pmatic with GNU General Public License v2.0 5 votes vote down vote up
def clear(self):
        with self.lock:
            # Copy pointers to all values, then wipe the mapping
            values = list(itervalues(self._container))
            self._container.clear()

        if self.dispose_func:
            for value in values:
                self.dispose_func(value) 
Example #21
Source File: _collections.py    From pmatic with GNU General Public License v2.0 5 votes vote down vote up
def clear(self):
        with self.lock:
            # Copy pointers to all values, then wipe the mapping
            values = list(itervalues(self._container))
            self._container.clear()

        if self.dispose_func:
            for value in values:
                self.dispose_func(value) 
Example #22
Source File: _collections.py    From pipenv with MIT License 5 votes vote down vote up
def clear(self):
        with self.lock:
            # Copy pointers to all values, then wipe the mapping
            values = list(itervalues(self._container))
            self._container.clear()

        if self.dispose_func:
            for value in values:
                self.dispose_func(value) 
Example #23
Source File: _collections.py    From pipenv with MIT License 5 votes vote down vote up
def clear(self):
        with self.lock:
            # Copy pointers to all values, then wipe the mapping
            values = list(itervalues(self._container))
            self._container.clear()

        if self.dispose_func:
            for value in values:
                self.dispose_func(value) 
Example #24
Source File: _collections.py    From kahoot-hack with GNU General Public License v3.0 5 votes vote down vote up
def clear(self):
        with self.lock:
            # Copy pointers to all values, then wipe the mapping
            values = list(itervalues(self._container))
            self._container.clear()

        if self.dispose_func:
            for value in values:
                self.dispose_func(value) 
Example #25
Source File: _collections.py    From deepWordBug with Apache License 2.0 5 votes vote down vote up
def clear(self):
        with self.lock:
            # Copy pointers to all values, then wipe the mapping
            values = list(itervalues(self._container))
            self._container.clear()

        if self.dispose_func:
            for value in values:
                self.dispose_func(value) 
Example #26
Source File: _collections.py    From deepWordBug with Apache License 2.0 5 votes vote down vote up
def clear(self):
        with self.lock:
            # Copy pointers to all values, then wipe the mapping
            values = list(itervalues(self._container))
            self._container.clear()

        if self.dispose_func:
            for value in values:
                self.dispose_func(value) 
Example #27
Source File: _collections.py    From deepWordBug with Apache License 2.0 5 votes vote down vote up
def clear(self):
        with self.lock:
            # Copy pointers to all values, then wipe the mapping
            values = list(itervalues(self._container))
            self._container.clear()

        if self.dispose_func:
            for value in values:
                self.dispose_func(value) 
Example #28
Source File: _collections.py    From pex with Apache License 2.0 5 votes vote down vote up
def clear(self):
        with self.lock:
            # Copy pointers to all values, then wipe the mapping
            values = list(itervalues(self._container))
            self._container.clear()

        if self.dispose_func:
            for value in values:
                self.dispose_func(value) 
Example #29
Source File: _collections.py    From satori with Apache License 2.0 5 votes vote down vote up
def clear(self):
        with self.lock:
            # Copy pointers to all values, then wipe the mapping
            values = list(itervalues(self._container))
            self._container.clear()

        if self.dispose_func:
            for value in values:
                self.dispose_func(value) 
Example #30
Source File: _collections.py    From satori with Apache License 2.0 5 votes vote down vote up
def clear(self):
        with self.lock:
            # Copy pointers to all values, then wipe the mapping
            values = list(itervalues(self._container))
            self._container.clear()

        if self.dispose_func:
            for value in values:
                self.dispose_func(value)