We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.
Already on GitHub?
to your account
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
assignee = None
closed_at = <Date 2009-09-15.00:01:44.932>
created_at = <Date 2005-02-04.01:27:06.000>
labels = ['library']
title = "os.path.splitext don't handle unix hidden file correctly"
updated_at = <Date 2009-09-15.00:01:44.932>
user = 'https://bugs.python.org/falsetru'
activity = <Date 2009-09-15.00:01:44.932>
actor = 'orsenthil'
assignee = 'none'
closed = True
closed_date = None
closer = None
components = ['Library (Lib)']
creation = <Date 2005-02-04.01:27:06.000>
creator = 'falsetru'
dependencies = 
files = 
hgrepos = 
issue_num = 1115886
keywords = 
message_count = 8.0
messages = ['24149', '24150', '24151', '24152', '24153', '24154', '92270', '92638']
nosy_count = 8.0
nosy_names = ['loewis', 'georg.brandl', 'jjlee', 'jimjjewett', 'orsenthil', 'grubert', 'falsetru', 'optimix']
pr_nums = 
priority = 'normal'
resolution = 'fixed'
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue1115886'
versions = ['Python 2.4']
The text was updated successfully, but these errors were encountered:
I expected this.
but got this.
Sorry, something went wrong.
Logged In: YES
from test_posixpath.py ::
self.assertEqual(posixpath.splitext(".ext"), ("", ".ext"))
IMHO should then return (".ext",""). if this is desired ::
return p, ''
return p[:i], p[i:]
Logged In: YES
Interestingly, altering the behaviour of splitext in such a
way does not contradict the documentation, which is:
Split the pathname path into a pair (root, ext) such that
root + ext == path, and ext is empty or begins with a period
and contains at most one period.
Personally I'm in favour of this change (on Unix it makes
sense, while on Windows you can hardly find an
Logged In: YES
I hate to be a stick-in-the-mud, but the existing behaviour
is what I would expect, and seems to be regular -- always
picks the last dot:
Changing it would surely break somebody's code too, of course.
1462106 is a patch, though perhaps not the latest.
python-dev is currently debating whether to fix this behavior or maintain backwards-compatibility.
That suggests that it at least won't be changed in a bugfix version (like 2.4.x), and the group should be changed to 2.6.
After some discussion on python-dev, I fixed this in r54204.
I've read parts of the python-dev discussions, but I don't agree with
now recognises '.ogg' as None.
Alexandru: You commented on a closed issue. If you see any problem
with mimetypes.guess_type() w.r.t to .ogg files, please open a new
open stating your problem.
No branches or pull requests