[issue9850] obsolete macpath module dangerously broken and should be removed

2010-09-13 Thread Ned Deily
New submission from Ned Deily : The macpath module in the standard library purports to supply "the Mac OS 9 (and earlier) implementation of the os.path module. It can be used to manipulate old-style Macintosh pathnames on Mac OS X (or any other platform). The following functions are availabl

[issue9850] obsolete macpath module dangerously broken and should be removed

2010-09-13 Thread Ned Deily
Ned Deily added the comment: The macpath module in the standard library purports to supply "the Mac OS 9 (and earlier) implementation of the os.path module. It can be used to manipulate old-style Macintosh pathnames on Mac OS X (or any other platform). The following functions are available

[issue9850] obsolete macpath module dangerously broken and should be removed

2010-09-13 Thread Ned Deily
Changes by Ned Deily : -- Removed message: http://bugs.python.org/msg116365 ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue9850] obsolete macpath module dangerously broken and should be removed

2010-09-14 Thread STINNER Victor
STINNER Victor added the comment: The solution may be different depending on Python version. I propose to keep macpath in Python 2.7, just because it's too late to change such thing in Python2. But we may mark macpath as deprecated, eg. "macpath will be removed in Python 3.2" (see above). I s

[issue9850] obsolete macpath module dangerously broken and should be removed

2010-09-14 Thread Ronald Oussoren
Ronald Oussoren added the comment: MacOS9 is already unsupported, except for macpath all traces of OS9 support are gone with the possible exception of distutils (I removed traces of OS9 support code in 3.2 and those got restored when Tarek replaced distutils by the version from the 3.1 branch

[issue9850] obsolete macpath module dangerously broken and should be removed

2010-09-14 Thread Ronald Oussoren
Ronald Oussoren added the comment: I'm -0 on removing the module wholesale because parts of OSX still use MacOS9 style paths (in particular some Carbon APIs and AppleScript). I'm +1 on removing all functions that aren't path manipulation code, that is 'macpath.join' would stay while 'macpath.

[issue9850] obsolete macpath module dangerously broken and should be removed

2010-09-16 Thread Ned Deily
Ned Deily added the comment: Patches in progress. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue9850] obsolete macpath module dangerously broken and should be removed

2010-09-20 Thread Éric Araujo
Éric Araujo added the comment: I agree with Ronald’s proposal. (Re “I don't remember if I redid my OS9-removal work”: Looks like you didn’t.) -- nosy: +eric.araujo ___ Python tracker __

[issue9850] obsolete macpath module dangerously broken and should be removed

2011-03-10 Thread Éric Araujo
Changes by Éric Araujo : -- versions: +Python 3.3 -Python 2.7, Python 3.1, Python 3.2 ___ Python tracker ___ ___ Python-bugs-list maili

[issue9850] obsolete macpath module dangerously broken and should be removed

2011-08-18 Thread Oleg Oshmyan
Oleg Oshmyan added the comment: I fully agree with Ronald’s proposal. And for a start, here is a trivial patch that fixes macpath.join('', ...) [at the moment it just returns its last argument]. By the way, this fix is probably eligible for inclusion in Python 2.7 too. I also have ‘implement

[issue9850] obsolete macpath module dangerously broken and should be removed

2011-08-18 Thread Éric Araujo
Éric Araujo added the comment: Thanks for the patch. Is the function already tested or does someone need to add a test? -- ___ Python tracker ___ __

[issue9850] obsolete macpath module dangerously broken and should be removed

2011-08-18 Thread Oleg Oshmyan
Oleg Oshmyan added the comment: It is already tested but here is a new version of the patch that expands the existing test to cover the situation that was broken (plus another one). -- Added file: http://bugs.python.org/file22943/macpath_join_fix_with_test.patch __