[Zope3-dev] Re: Getting rid of ASCII schema field

Tres Seaver tseaver at zope.com
Fri Jan 16 11:51:58 EST 2004


Philipp von Weitershausen wrote:

> one last ward in the schema package remains: the ASCII field. Maybe 
> there's a deeper reason for its existence, I certainly can't see it. 
> 8-byte strings should be stored with the Bytes field. Morover, ASCII is 
> totally equivalent to the Bytes field, so it doesn't even make a 
> difference. The few times where it's used in the Zope 3 source I see no 
> reason for not using Bytes.
> 
> Unless someone has the mercy to enlighten me what ASCII could possibly 
> be useful for, I will remove it next week :).

-1.  Using an ASCII field documents an intent to store only 
"7-bit-clean" values in the string;  no characters > DEL (chr(127)) 
should be allowed.  A number of applications exist which require such a 
constraint (think RFC 822 headers, for instance).

If, in fact, the ASCII field does not *enforce* that constraint, then we 
should remedy that.

Tres.
-- 
===============================================================
Tres Seaver                                tseaver at zope.com
Zope Corporation      "Zope Dealers"       http://www.zope.com




More information about the Zope3-dev mailing list