[Types-sig] type declaration syntax

skaller skaller@maxtal.com.au
Fri, 31 Dec 1999 03:38:12 +1100

Skip Montanaro wrote:
>     skaller> I.e. TWO bans fix most problems. The ban on module level
>     skaller> rebindings is a significant restriction.
> I'll say.  The common idiom for trapping stdout or stderr is to rebind
> sys.stdout/stderr to a file-like object.  How would that be accomplished in
> such a straightforward way if module-level rebindings are disallowed?

	Special case the sys module.
A bit messy -- but so is the sys module :-)

John Skaller, mailto:skaller@maxtal.com.au
10/1 Toxteth Rd Glebe NSW 2037 Australia
homepage: http://www.maxtal.com.au/~skaller
voice: 61-2-9660-0850