Antoine Pitrou <pit...@free.fr> added the comment: Actually, I'm not sure there's much point since the "name" attribute is currently read-only:
>>> f = open(1, "wb") >>> f.name = "foo" Traceback (most recent call last): File "<stdin>", line 1, in <module> AttributeError: attribute 'name' of '_io.BufferedWriter' objects is not writable >>> >>> g = open(1, "w") >>> g.name = "bar" Traceback (most recent call last): File "<stdin>", line 1, in <module> AttributeError: attribute 'name' of '_io.TextIOWrapper' objects is not writable ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue9425> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com