[issue18534] State clearly that open() 'file' param is "name" attr of the result

2017-10-31 Thread Guido van Rossum
Guido van Rossum added the comment: Agreed it's too subtle to change the behavior. > We may also want to explicitly point out that using os.fsdecode(name) before > passing it to open() will ensure that the name attribute is set to a string > rather than a bytes object. Not sure. Are there ca

[issue18534] State clearly that open() 'file' param is "name" attr of the result

2017-10-28 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue18534] State clearly that open() 'file' param is "name" attr of the result

2013-07-25 Thread Nick Coghlan
Nick Coghlan added the comment: Switching this to a docs bugs, since http://docs.python.org/3/library/functions.html#open doesn't mention this behaviour at all, and http://docs.python.org/3/library/io.html#io.FileIO.name only notes the fact it may be a file descriptor without mentioning the s