[New-bugs-announce] [issue1702] Word "alias" used in confusing way to compare open() and file()

Devin Jeanpierre report at bugs.python.org
Thu Dec 27 05:28:40 CET 2007


New submission from Devin Jeanpierre:

I was slightly misled by the wording of part of the docs 
(http://docs.python.org/lib/bltin-file-objects.html):
"file() is new in Python 2.2. The older built-in open() is an alias 
for file()."

I actually thought it meant that open was an alias of file, so 
that 'open is file'. However, 
>>> open is file
False

I feel that "alias" is the wrong word to use here, though I don't know 
a suitable replacement.

----------
components: Documentation
messages: 59007
nosy: Devin Jeanpierre
severity: minor
status: open
title: Word "alias" used in confusing way to compare open() and file()
type: rfe

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1702>
__________________________________


More information about the New-bugs-announce mailing list