On 8 October 2012 20:14, Stefan Krah <stefan@bytereef.org> wrote:
Guido van Rossum <guido@python.org> wrote:
> Personally I fear '+' much more -- to me, + can be used to add an'^' or '@' are used for concatenation in some languages. At least accidental
> extension without adding a new directory level. If we *have* to
> overload an operator, I'd prefer p/q over p[q] any day.
confusion with xor is pretty unlikely.
# Possibility for accidental validity if configdir is a string
configdir.join("myprogram")
# A bit long
# My personal objection is that one shouldn't have to state "path" in the name: it's not str.stringjoin()
configdir.joinpath("myprogram")
configdir.pathjoin("myprogram")
# There's argument here, but I don't find them intuitive or nice
configdir.subpath("mypogram")
configdir.superpath("mypogram")
# My favorites ('cause my opinion: so there)
configdir.child("myprogram") # Does sorta' imply IO
configdir.get("myprogram") # 'Cause it's short, but it does sorta' imply IO
configdir.goto("myprogam") # "GOTO IS BAD!! BOO!"
# What I'm surprised (but half-glad) hasn't been mentioned
configdir.cd("myprogam") # Not a link, just GMail's silly-ness