From: gabriele renzi Date: 2003-04-29T07:05:32+09:00 Subject: Re: How to undefine a member variable ? (or at least hide it from YAML) il Mon, 28 Apr 2003 19:53:14 GMT, Simon Vandemoortele ha scritto:: >On Mon, 28 Apr 2003 at 06:16 GMT, Robert wrote: >I am coding an Addressbook container class that contains Contacts. All >contacts have many possible fields like: >"name","comment","birthday","url", etc ... >Many of these are uncommon and will not be used by many people so they >should not appear as empty definitions in my YAML dump _even if someone >once assigned a value to it but then discarded it_. > >Does that clarify the situation ? I'd just put my 0.02 euro in the tread: maybe you could write an attr-like method to automatically unsets the variables, kind of "rem_varname".