[Python-Dev] posixpath module.

Alex Coventry alex_c@MIT.EDU
Sat, 15 Jul 2000 15:23:55 -0400 (EDT)

> > Should posixpath.expandvars throw a SyntaxError if it encounters
> > unbalanced curly braces?
> probably not; code using it might not be prepared
> to handle an exception...
> what does the Unix shell do in this case?

It gives an error:

athena% echo ${HOME
Missing }.
athena% echo ${HOME}

You're probably right about backwards compatibility being worth more
than compatibility with Unix in this case, though.