Message332410
Thanks for the report
> 1. For input ".blah." output is "."
Please see issue35538
> 2. For input "..." output is "..."
Please find the tests at https://github.com/python/cpython/blob/master/Lib/test/test_posixpath.py#L111
For completeness this is the behavior in master
./python.exe
Python 3.8.0a0 (heads/master:284b787612, Dec 23 2018, 23:11:33)
[Clang 7.0.2 (clang-700.1.81)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> os.path.splitext("...")
('...', '')
>>> os.path.splitext(".blah.")
('.blah', '.')
You can find links to other discussions in mailing list and other issues raised about this behavior at https://bugs.python.org/issue34931#msg328820 . Though this might be different from the behavior of guava I think this is something discussed extensively in the mailing list and finally to go with this behavior. So I don't think this is a bug but a behavior difference between guava and CPython implementation. |
|
Date |
User |
Action |
Args |
2018-12-24 05:47:18 | xtreak | set | recipients:
+ xtreak, Divya Rani |
2018-12-24 05:47:16 | xtreak | set | messageid: <1545630436.1.0.0770528567349.issue35576@roundup.psfhosted.org> |
2018-12-24 05:47:16 | xtreak | link | issue35576 messages |
2018-12-24 05:47:16 | xtreak | create | |
|