Antoine Pitrou wrote:
> So, here is an alternative proposal :
> Make it so that textfile() doesn't recognize system-wide defaults (as in
> your proposal), but also provide autotextfile() which would recognize
> those defaults (with a by_content=False optional argument to enable
> content-based guessing).
> 
> textfile() being clearly marked for use by large well thought-out
> applications, and autotextfile() for small scripts and the like.
> Different names make it clear that they are for different uses, and
> allow to spot them easily when looking at source code (either by a human
> reader or a quality measurement tool).

How does your "autotextfile('myfile.txt')" differ from Paul's 
"textfile('myfile.txt', encoding='guess')"?

Cheers,
Nick.

-- 
Nick Coghlan   |   [EMAIL PROTECTED]   |   Brisbane, Australia
---------------------------------------------------------------
             http://www.boredomandlaziness.org
_______________________________________________
Python-3000 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: 
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Reply via email to