A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/1999-November/001355.html below:

[Python-Dev] just say no...

[Python-Dev] just say no...Greg Stein gstein@lyra.org
Wed, 17 Nov 1999 03:21:18 -0800 (PST)
On Wed, 17 Nov 1999, Tim Peters wrote:
> [MAL]
> > FYI, the next version of the proposal ...
> > File objects opened in text mode will use "t#" and binary ones use "s#".
> 
> Am I the only one who sees magical distinctions between text and binary mode
> as a Really Bad Idea?  I wouldn't have guessed the Unix natives here would
> quietly acquiesce to importing a bit of Windows madness <wink>.

It's a seductive idea... yes, it feels wrong, but then... it seems kind of
right, too...

:-)

Yes. It is a mode. Is it bad? Not sure. You've already told the system
that you want to treat the file differently. Much like you're treating it
differently when you specify 'r' vs. 'w'.

The real annoying thing would be to assume that opening a file as 'r'
means that I *meant* text mode and to start using "t#". In actuality, I
typically open files that way since I do most of my coding on Linux. If
I now have to pay attention to things and open it as 'rb', then I'll be
pissed.

And the change in behavior and bugs that interpreting 'r' as text would
introduce? Ack!

Cheers,
-g

--
Greg Stein, http://www.lyra.org/




RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4