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 xtreak
Recipients Divya Rani, xtreak
Date 2018-12-24.05:47:16
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1545630436.1.0.0770528567349.issue35576@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2018-12-24 05:47:18xtreaksetrecipients: + xtreak, Divya Rani
2018-12-24 05:47:16xtreaksetmessageid: <1545630436.1.0.0770528567349.issue35576@roundup.psfhosted.org>
2018-12-24 05:47:16xtreaklinkissue35576 messages
2018-12-24 05:47:16xtreakcreate