Qucs-S S-parameter Viewer & RF Synthesis Tools
Loading...
Searching...
No Matches
Functions | Variables
attr.setters Namespace Reference

Functions

 pipe (*setters)
 
 frozen (_, __, ___)
 
 validate (instance, attrib, new_value)
 
 convert (instance, attrib, new_value)
 

Variables

 NO_OP = object()
 

Detailed Description

Commonly used hooks for on_setattr.

Function Documentation

◆ convert()

attr.setters.convert (   instance,
  attrib,
  new_value 
)
Run *attrib*'s converter -- if it has one -- on *new_value* and return the
result.

.. versionadded:: 20.1.0

◆ frozen()

attr.setters.frozen (   _,
  __,
  ___ 
)
Prevent an attribute to be modified.

.. versionadded:: 20.1.0

◆ pipe()

attr.setters.pipe ( setters)
Run all *setters* and return the return value of the last one.

.. versionadded:: 20.1.0

◆ validate()

attr.setters.validate (   instance,
  attrib,
  new_value 
)
Run *attrib*'s validator on *new_value* if it has one.

.. versionadded:: 20.1.0