Message335822
| Author | ronaldoussoren |
|---|---|
| Recipients | Riccardo Magliocchetti, ronaldoussoren, vinay.sajip |
| Date | 2019-02-18.11:40:56 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1550490056.21.0.177378250898.issue36015@roundup.psfhosted.org> |
| In-reply-to |
| Content | |
|---|---|
In Python 3.7.2: >>> open(2, 'a') <_io.TextIOWrapper name=2 mode='a' encoding='UTF-8'> >>> m = _ >>> m.name 2 >>> type(_) <class 'int'> That is, when opening a file descriptor the name is set to the value of that file descriptor as an integer. BTW. The implementation of PyFile_FromFd is a thin wrapper around the open function. |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2019-02-18 11:40:56 | ronaldoussoren | set | recipients: + ronaldoussoren, vinay.sajip, Riccardo Magliocchetti |
| 2019-02-18 11:40:56 | ronaldoussoren | set | messageid: <1550490056.21.0.177378250898.issue36015@roundup.psfhosted.org> |
| 2019-02-18 11:40:56 | ronaldoussoren | link | issue36015 messages |
| 2019-02-18 11:40:56 | ronaldoussoren | create | |