This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author terry.reedy
Recipients martin.panter, socketpair, terry.reedy, vstinner
Date 2016-02-12.20:03:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1455307432.94.0.743906310337.issue26318@psf.upfronthosting.co.za>
In-reply-to
Content
3.4 only gets security fixes.  3.5 only gets bug fixes.  Feature changes ('enhancements') are limited to future versions.

This is not a behavior issue because the code and doc match.  https://docs.python.org/3/library/io.html#io.FileIO.name says (as Martin paraphrased) 

"name
    The file name. This is the file descriptor of the file when no name is given in the constructor."

As I remember, this was discussed when io was designed.  The alternatives to name = fd: no name attribute, name = '', name = None.  All are about equally easy to test, as long as the decision is documented, which is clearly is, contrary to the claim otherwise.  I believe the deciding factor is that fd has more information than nothing, even if redundant or useless.

In the absence of sufficient reason to break existing code that follows the doc, which we are generally loathe to do, the design change should be rejected.
History
Date User Action Args
2016-02-12 20:03:52terry.reedysetrecipients: + terry.reedy, vstinner, socketpair, martin.panter
2016-02-12 20:03:52terry.reedysetmessageid: <1455307432.94.0.743906310337.issue26318@psf.upfronthosting.co.za>
2016-02-12 20:03:52terry.reedylinkissue26318 messages
2016-02-12 20:03:52terry.reedycreate