Message347098
Please also consider following pieces of code.
They (value of int sub classes) can't be returned by fileno().
Python 3.8.0b1 (tags/v3.8.0b1:3b5deb0116, Jun 4 2019, 19:52:55) [MSC v.1916 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> class MyInt(int):pass
...
>>> a=MyInt(6)
>>> a
6
>>> import os.path
>>> os.path.isfile(a)
False
>>> os.path.isfile(True)
False
>>> os.path.isfile(False)
False
>>> |
|
Date |
User |
Action |
Args |
2019-07-02 02:49:01 | zufuliu | set | recipients:
+ zufuliu, paul.moore, larry, tim.golden, zach.ware, steve.dower, aldwinaldwin |
2019-07-02 02:49:01 | zufuliu | set | messageid: <1562035741.42.0.415510847382.issue37436@roundup.psfhosted.org> |
2019-07-02 02:49:01 | zufuliu | link | issue37436 messages |
2019-07-02 02:49:01 | zufuliu | create | |
|