durusmail: quixote-users: Drop support for Python 2.1?
Drop support for Python 2.1?
2003-10-28
2003-10-28
Re: Drop support for Python 2.1?
2003-10-28
2003-10-28
Re: Drop support for Python 2.1?
2003-10-28
2003-10-29
2003-10-29
Backticks? (was Re: Drop support for Python 2.1?)
2003-10-30
Backticks? (was Re: Drop support for Python 2.1?)
2003-10-30
Re: Backticks? (was Re: Drop support for Python 2.1?)
2003-10-30
2003-10-30
Doesnt Quixote like CSS?
2003-11-01
2003-11-01
2003-11-04
2003-10-29
Re: Drop support for Python 2.1?
2003-10-29
Drop support for Python 2.1?
Jim Dukarm
2003-10-28
--------- Neil S. skazal: ------------
> I would like to make the htmltext class a subclass of StringType.

This has great possibilities, although I assume that you meant to say
"a subclass of str."

  "Starting in Python 2.2, built-in factory functions such as
  int() and str() are also names for the corresponding types. This is
  now the preferred way to access the type instead of using the types
  module."

I keep worrying about the day when I will have to start generating web
pages using Unicode.  Would it be useful to consider having a twin
called 'uhtmltext' that would be a subclass of unicode instead of str?

> Subclassing builtin types is only supported in Python >= 2.2.  I'm
> wondering how many people would be affected if we dropped support
> for Python 2.1?

No problem here. I am using Python 2.3.2 and am subclassing dict and
list in my own code.

Jim Dukarm
DELTA-X RESEARCH
Victoria BC Canada


reply