Python3Script Xojo Plugin |

# Python3Dictionary Class (console safe)

A class that represents a Python 3 dictionary object

Python3EntityBase
Python3Dictionary

class Python3Dictionary implements

IPython3Iterable

#### Constructors

Python3Dictionary (console safe) | Default constructor that constructs a Python3Dictionary with zero elements.

#### Properties

Count (console safe) | Returns number of items in the dictionary

#### Methods

Clear (console safe) | Clears all elements from the dictionary
Contains (console safe) | Checks if the dictionary has a element with a given key
Contains (console safe) | Checks if the dictionary has a element with a given string key
Copy (console safe) | Makes a copy of the dictionary and returns it as new dictionary.
GetKeys (console safe) | Gets list of all Keys in the dictionary and returns them as Python3List.
GetPtr (Inherited) (console safe) | Gets pointed to the actual python object under the hood.
GetValue (console safe) | Gets value by given key from the dictionary.
GetValue (console safe) | Gets value by given string key from the dictionary
GetValues (console safe) | Gets all values from the dictionary and returns them as Python3List
Hash (Inherited) (console safe) | Computes and return the hash value of the object.
Merge (console safe) | Merges other dictionary into the current one.
Remove (console safe) | Removes item from the dictionary by a given key.
Remove (console safe) | Removes item from the dictionary by a given string key.
SetDefault (console safe) | Returns the value corresponding to key from the dictionary. If the key is not in the dict, it is inserted with value defaultValue and defaultValue is returned.
SetValue (console safe) | Sets value in the dictionary by a key.
SetValue (console safe) | Sets value in the dictionary by a string key.
ToString (Inherited) (console safe) | Computes a string representation of the object. Returns the string representation on success, empty string on failure.

#### Supported Platforms:

- macOS Intel 64 bit
- macOS Apple Silicon
- Windows 32 bit
- Windows 64 bit
- Windows ARM 64 bit
- Linux 32 bit
- Linux 64 bit
- Linux ARM 32 bit
- Linux ARM 64 bit