[issue13233] os.acces documentation error

2011-10-20 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the report! -- assignee: docs@python -> ezio.melotti nosy: +ezio.melotti resolution: -> fixed stage: -> committed/rejected status: open -> closed versions: +Python 3.2, Python 3.3 ___ Python tracker

[issue13233] os.acces documentation error

2011-10-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8bf9724dcd49 by Ezio Melotti in branch '2.7': #13233: fix typo. http://hg.python.org/cpython/rev/8bf9724dcd49 -- ___ Python tracker __

[issue13233] os.acces documentation error

2011-10-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1d8fad82c32d by Ezio Melotti in branch '3.2': #13233: fix typo. http://hg.python.org/cpython/rev/1d8fad82c32d New changeset 99c8b93c57cd by Ezio Melotti in branch 'default': #13233: null merge with 3.2. http://hg.python.org/cpython/rev/99c8b93c57cd

[issue13233] os.acces documentation error

2011-10-20 Thread Guilherme Moro
New submission from Guilherme Moro : http://docs.python.org/library/os.html#os.access points out that I should use try: fp = open("myfile") except IOError as e: if e.errno == errno.EACCESS: return "some default data" # Not a permission error. raise else: with fp: