On 03:54 pm, [EMAIL PROTECTED] wrote:
I'm actually sort of liking this idea. A Pathname class, for
convenience
a subtype of String, but containing the underlying binary
representation
used by the OS. Even non-unicode pathnames could be represented.
On the one hand, I agree with you - except for the part where it's a
subtype of String, that doesn't work. In case I haven't mentioned it
enough times already:
http://twistedmatrix.com/documents/8.1.0/api/twisted.python.filepath.FilePath.html
On the other hand, we've all been on this merry-go-round before:
http://www.python.org/dev/peps/pep-0355/
Note especially the rejection notice: "Subclassing from str is a
particularly bad idea".
Again, one day I'd really like to add one of these to Python. Now is
not the time.
_______________________________________________
Python-3000 mailing list
Python-3000@python.org
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe:
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com