A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2002-December/030812.html below:

[Python-Dev] (no subject)

[Python-Dev] (no subject) [Python-Dev] (no subject)Moore, Paul Paul.Moore@atosorigin.com
Thu, 5 Dec 2002 14:43:23 -0000
> > Guido van Rossum wrote:
> >=20
> > > Why don't you care about the backwards incompatibilities?
> >=20
> > Because it's addressed by using a str subclass.
>=20
> Which strikes *me* as an ugly hack. :-(

And it's dangerous. Code which assumes strings on sys.path and
modifies sys.path will fail silently rather than giving an error.

Example (not too realistic, I admit):

    sys.path =3D [ os.path.abspath(d) for d in sys.path ]

which collapses string subclasses to strings :-(

Paul.



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4