[issue39926] unicodedata for Unicode 13.0.0

2020-03-10 Thread Zufu Liu
New submission from Zufu Liu : Unicode 13.0.0 was released on March 10. https://www.unicode.org/versions/latest/ http://www.unicode.org/versions/Unicode13.0.0/ -- messages: 363859 nosy: zufuliu priority: normal severity: normal status: open title: unicodedata for Unicode 13.0.0 type

[issue37436] os.path.isfile() with big number cause OverflowError: fd is greater than maximum

2019-11-12 Thread Zufu Liu
Zufu Liu added the comment: I'm fine with this been closed. Maybe it's better to have a RawFd type like Julia: julia> RawFD RawFD julia> typeof(RawFD) DataType julia> RawFD(0) RawFD(0x) julia> RawFD(0)==0 false Rust has Ra

[issue37436] os.path.isfile() with big number cause OverflowError: fd is greater than maximum

2019-07-01 Thread Zufu Liu
Zufu Liu added the comment: 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", &

[issue37436] os.path.isfile() with big number cause OverflowError: fd is greater than maximum

2019-07-01 Thread Zufu Liu
Zufu Liu added the comment: Personally I prefer TypeError. Use file descriptor is rare, I never used it in Python script. I encountered this because arguments passed in wrong order in my function, then I passed the wrong argument to isfile() without checking. Make isfile() returns False

[issue37436] os.path.isfile() with big number cause OverflowError: fd is greater than maximum

2019-06-27 Thread Zufu Liu
New submission from Zufu Liu : I think it's should be TypeError as Python 2.7. The doc https://docs.python.org/3/library/os.path.html doesn't says it accept file descriptor. Python 3.7.3 (v3.7.3:ef4ec6ed12, Mar 25 2019, 22:22:05) [MSC v.1916 64 bit (AMD64)] on win32 Type "help",