Python collections.abc.MutableMapping.itervalues() Examples

The following are 30 code examples of collections.abc.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.abc.MutableMapping , or try the search function .
Example #1
Source File: _collections.py    From CogAlg 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 #2
Source File: _collections.py    From addon 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 #3
Source File: _collections.py    From Weapon-Detection-And-Classification 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 AWS-Transit-Gateway-Demo-MultiAccount 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 AWS-Transit-Gateway-Demo-MultiAccount 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 #6
Source File: _collections.py    From rules_pip 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 luci-py 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 #8
Source File: _collections.py    From CudaText with Mozilla Public 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 #9
Source File: _collections.py    From CudaText with Mozilla Public 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 #10
Source File: _collections.py    From Cloudmare 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 #11
Source File: _collections.py    From odoo13-x64 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 #12
Source File: _collections.py    From MIA-Dictionary-Addon 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 #13
Source File: _collections.py    From guildai 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 #14
Source File: _collections.py    From bazarr 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 coffeegrindsize 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 #16
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 #17
Source File: _collections.py    From quickstart-redhat-openshift 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 #18
Source File: _collections.py    From Carnets with BSD 3-Clause "New" or "Revised" 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 #19
Source File: _collections.py    From Carnets with BSD 3-Clause "New" or "Revised" 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 V1EngineeringInc-Docs with Creative Commons Attribution Share Alike 4.0 International 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 V1EngineeringInc-Docs with Creative Commons Attribution Share Alike 4.0 International 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 aws-builders-fair-projects 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 #23
Source File: _collections.py    From android_universal 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 alibabacloud-python-sdk-v2 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 #25
Source File: _collections.py    From fxxkpython 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 #26
Source File: _collections.py    From fxxkpython 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 #27
Source File: _collections.py    From fxxkpython 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 #28
Source File: _collections.py    From fxxkpython 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 #29
Source File: _collections.py    From twitter-stock-recommendation 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 #30
Source File: _collections.py    From twitter-stock-recommendation 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)