diff --git a/comfy/option.py b/comfy/option.py
index 1aacfd9..47cb692 100644
--- a/comfy/option.py
+++ b/comfy/option.py
@@ -1,41 +1,62 @@
-from typing import List, Optional
+from typing import List, Optional, Text, Any
 
 from comfy.schema import BaseOption, Section
 
 
 class Option(BaseOption):
 
-    def __get__(self, section, type=None):
-        # type: (Section, Optional[type]) -> str
-        config_parser = section.config_parser
-        return config_parser.get(section.name, self.name)
+    def unserialize(self, value):
+        # type: (Text) -> Text
+        return value
+
+    def serialize(self, new_value):
+        # type: (Text) -> Text
+        if not isinstance(new_value, str):
+            raise ValueError("New value should be a string.")
+        return str(new_value)
 
 
 class IntOption(BaseOption):
 
-    def __get__(self, section, type=None):
-        # type: (Section, Optional[type]) -> int
-        config_parser = section.config_parser
-        return config_parser.getint(section.name, self.name)
+    def unserialize(self, raw_value):
+        # type: (Text) -> int
+        return int(raw_value)
+
+    def serialize(self, new_value):
+        # type: (int) -> Text
+        if not isinstance(new_value, int):
+            raise ValueError("New value should be an int.")
+
+        return str(new_value)
 
 
 class BoolOption(BaseOption):
 
     truth_values = {"1", "yes", "true"}
 
-    def __get__(self, section, type=None):
-        # type: (Section, Optional[type]) -> bool
-        config_parser = section.config_parser
-        value = config_parser.get(section.name, self.name)
-        return value.lower() in self.truth_values
+    def unserialize(self, raw_value):
+        # type: (Text) -> bool
+        return raw_value.lower() in self.truth_values
+
+    def serialize(self, new_value):
+        # type: (bool) -> Text
+        if not isinstance(new_value, bool):
+            raise ValueError("New value should be a boolean.")
+
+        return str(new_value).lower()
 
 
 class ListOption(BaseOption):
 
-    def __get__(self, section, type=None):
-        # type: (Section, Optional[type]) -> List[str]
-        config_parser = section.config_parser
-        values = config_parser.get(section.name, self.name)
-        if values.strip() == "":
+    def unserialize(self, raw_value):
+        # type: (Text) -> List[Any]
+        if raw_value.strip() == "":
             return []
-        return [value.strip() for value in values.split(",")]
+        return [value.strip() for value in raw_value.split(",")]
+
+    def serialize(self, new_value):
+        # type: (List[Any]) -> Text
+        if not isinstance(new_value, list):
+            raise ValueError("New value should be a list.")
+
+        return ','.join(str(val) for val in new_value)
diff --git a/comfy/schema.py b/comfy/schema.py
index ff2d523..d7ffe3d 100644
--- a/comfy/schema.py
+++ b/comfy/schema.py
@@ -5,7 +5,7 @@ except ImportError:
     from ConfigParser import ConfigParser, NoOptionError
 
 from inspect import getmembers, isclass
-from typing import Any, Optional, Type
+from typing import Any, Optional, Type, Text
 
 from comfy.util import camel_case_to_lower
 
@@ -77,24 +77,49 @@ class Section:
 
 class BaseOption:
     """
-    Base class for options. Subclass this and override __get__ to define new option types.
+    Base class for options.
+
+    Subclass this and override unserialize() and serialize() to define new option types.
     """
 
     def __init__(self):
         self.name = None  # type: str
 
-    def __get__(self, obj, type=None):
-        # type: (Section, Optional[type]) -> Any
+    def unserialize(self, value):
+        # type: (Text) -> Any
         # Override in sub classes.
         raise NotImplementedError()
 
-    def __set__(self, obj, value):
-        # Assignment currently unsupported.
-        raise AttributeError()
+    def serialize(self, new_value):
+        # type: (Any) -> Text
+        """Checks if the value corresponds to the type of option.
+
+        Returns a string, which will be stored in the config_parser instance.
+
+        Raises ValueError if new_value does not meet expectations.
+        """
+        raise NotImplementedError()
+
+    def __get__(self, section, type=None):
+        # type: (Section, Optional[type]) -> Any
+        config_parser = section.config_parser
+
+        raw_value = config_parser.get(section.name, self.name)
+
+        return self.unserialize(raw_value)
+
+    def __set__(self, section, new_value):
+        # type: (Section, Any) -> None
+        config_parser = section.config_parser
+
+        raw_value = self.serialize(new_value)
+
+        config_parser.set(section.name, self.name, raw_value)
+
+    def __delete__(self, section):
+        config_parser = section.config_parser
 
-    def __delete__(self, obj):
-        # Deletion currently unsupported.
-        raise AttributeError()
+        config_parser.remove_option(section.name, self.name)
 
     def set_name(self, name):
         # type: (str) -> None

Support changing and deleting items
Support assignment to existing options like so:

    config.section.opt = 2

The type of the assigned value should correspond to the option:

* `Option` takes strings, and raises ValueError otherwise
* `IntOption` takes integers …
* Etc.

The changed value should be reflected in the underlying `ConfigParser`, but not in the config files on disk.

Likewise, this should work:

    del config.section.opt

… and delete the value from the `ConfigParser`'s section.
diff --git a/tests/test_schema.py b/tests/test_schema.py
index 5c1ab0d..5a0a075 100644
--- a/tests/test_schema.py
+++ b/tests/test_schema.py
@@ -42,11 +42,15 @@ def test_smoke(my_config):
     assert my_config.tmp_directories.vid_tmp == "/tmp/vid"
     assert my_config.tmp_directories.max_files == 1024
 
-    # Assignment and deletion are currently unsupported!
-    with pytest.raises(AttributeError):
-        my_config.tmp_directories.vid_tmp = "/tmp/videos"
-    with pytest.raises(AttributeError):
-        del my_config.tmp_directories.vid_tmp
+    new_val = "/tmp/videos"
+    my_config.tmp_directories.vid_tmp = new_val
+    assert my_config.tmp_directories.vid_tmp == new_val
+    assert my_config.config_parser.get("tmp_directories", "vid_tmp") == new_val
+
+    del my_config.tmp_directories.vid_tmp
+    with pytest.raises(NoOptionError):
+        assert my_config.tmp_directories.vid_tmp == new_val
+
 
 def _test_error(config, Error):
     # type: (str, Exception) -> None

pip install -e .
parse_log_pytest
pytest
pytest pytest-coverage
3.6
pytest --no-header -rA --tb=line --color=no -p no:cacheprovider -W ignore::DeprecationWarning
attrs @ file:///opt/conda/conda-bld/attrs_1642510447205/work
certifi==2021.5.30
-e git+https://github.com/trustyou/comfy.git@86a78b100291864662d2b6f505657fe2a0883d66#egg=comfy
coverage==6.2
importlib-metadata @ file:///tmp/build/80754af9/importlib-metadata_1631916693255/work
iniconfig @ file:///home/linux1/recipes/ci/iniconfig_1610983019677/work
more-itertools @ file:///tmp/build/80754af9/more-itertools_1637733554872/work
packaging @ file:///tmp/build/80754af9/packaging_1637314298585/work
pluggy @ file:///tmp/build/80754af9/pluggy_1615976315926/work
py @ file:///opt/conda/conda-bld/py_1644396412707/work
pyparsing @ file:///tmp/build/80754af9/pyparsing_1635766073266/work
pytest==6.2.4
pytest-cov==4.0.0
pytest-cover==3.0.0
pytest-coverage==0.0
toml @ file:///tmp/build/80754af9/toml_1616166611790/work
tomli==1.2.3
typing_extensions @ file:///opt/conda/conda-bld/typing_extensions_1647553014482/work
zipp @ file:///tmp/build/80754af9/zipp_1633618647012/work

name: comfy
channels:
  - defaults
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r
  - conda-forge
dependencies:
  - _libgcc_mutex=0.1=main
  - _openmp_mutex=5.1=1_gnu
  - attrs=21.4.0=pyhd3eb1b0_0
  - ca-certificates=2025.2.25=h06a4308_0
  - certifi=2021.5.30=py36h06a4308_0
  - importlib-metadata=4.8.1=py36h06a4308_0
  - importlib_metadata=4.8.1=hd3eb1b0_0
  - iniconfig=1.1.1=pyhd3eb1b0_0
  - ld_impl_linux-64=2.40=h12ee557_0
  - libffi=3.3=he6710b0_2
  - libgcc-ng=11.2.0=h1234567_1
  - libgomp=11.2.0=h1234567_1
  - libstdcxx-ng=11.2.0=h1234567_1
  - more-itertools=8.12.0=pyhd3eb1b0_0
  - ncurses=6.4=h6a678d5_0
  - openssl=1.1.1w=h7f8727e_0
  - packaging=21.3=pyhd3eb1b0_0
  - pip=21.2.2=py36h06a4308_0
  - pluggy=0.13.1=py36h06a4308_0
  - py=1.11.0=pyhd3eb1b0_0
  - pyparsing=3.0.4=pyhd3eb1b0_0
  - pytest=6.2.4=py36h06a4308_2
  - python=3.6.13=h12debd9_1
  - readline=8.2=h5eee18b_0
  - setuptools=58.0.4=py36h06a4308_0
  - sqlite=3.45.3=h5eee18b_0
  - tk=8.6.14=h39e8969_0
  - toml=0.10.2=pyhd3eb1b0_0
  - typing_extensions=4.1.1=pyh06a4308_0
  - wheel=0.37.1=pyhd3eb1b0_0
  - xz=5.6.4=h5eee18b_1
  - zipp=3.6.0=pyhd3eb1b0_0
  - zlib=1.2.13=h5eee18b_1
  - pip:
      - coverage==6.2
      - pytest-cov==4.0.0
      - pytest-cover==3.0.0
      - pytest-coverage==0.0
      - tomli==1.2.3
prefix: /opt/conda/envs/comfy

tests/test_schema.py::test_smoke
tests/test_schema.py::test_missing_option tests/test_schema.py::test_wrong_int_value
comfy/option.py comfy/schema.py
comfy/option.py comfy/schema.py