PRE-PEP: new Path class
Gerrit Holl
gerrit at nl.linux.org
Thu Jan 8 08:25:07 EST 2004
Michael Chermside wrote:
> I agree... paths should be immutable.
>
> Instead of .normalize_inplace() which changes the behavior of the
> Path, how about .get_normalized_string() (please find a better name)
> which allows access to the normalized version without mutating the
> Path object? (Or perhaps it should be .get_normalized_Path()... I'm
> not sure.)
If we make it immutable, we can simply do path.normalize(), which
returns the normalized path. Or am I overlooking something?
yours,
Gerrit.
--
147. If she have not borne him children, then her mistress may sell her
for money.
-- 1780 BC, Hammurabi, Code of Law
--
PrePEP: Builtin path type
http://people.nl.linux.org/~gerrit/creaties/path/pep-xxxx.html
Asperger's Syndrome - a personal approach:
http://people.nl.linux.org/~gerrit/english/
More information about the Python-list
mailing list