[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}
/afs/athena.mit.edu/user/a/l/alex_c
athena%
You're probably right about backwards compatibility being worth more
than compatibility with Unix in this case, though.
Alex.