[Python-Dev] Byte string class hierarchy

Michael Hudson mwh at python.net
Thu Aug 19 16:52:31 CEST 2004


Jack Jansen <Jack.Jansen at cwi.nl> writes:

> I may have missed a crucial bit of the discussion, having been away,
> so if this is completely besides the point let me know. But my feeling
> is that the crucial bit is the type inheritance graph of all the byte
> and string types. And I wonder whether the following graph would help
> us solve most problems (aside from introducing one new one, that may
> be a showstopper):
>
> genericbytes
> 	mutablebytes
> 	bytes
> 		genericstring
> 			string
> 			unicode

Um, I was thinking the hierarchy would look like this:

object
    unicode
    bytes

Cheers,
mwh

-- 
  I saw `cout' being shifted "Hello world" times to the left and
  stopped right there.                                -- Steve Gonedes


More information about the Python-Dev mailing list

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant