Patches item #894936, was opened at 2004-02-11 08:36
Message generated for change (Comment added) made by nnorwitz
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=894936&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
>Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Nicolas Fleury (nidoizo)
Assigned to: Nobody/Anonymous (nobody)
Summary: Have a split corresponding with os.path.join

Initial Comment:
I would be nice to have a function to do the exact
opposite of os.path.join, something like an
os.path.splitall or fullsplit.

Rationale:
Currently, on Windows, using os.path.split produce the
following result:
 os.path.split('Z:/xyz') => ('Z:/', 'xyz')
It exceptionaly keep the \ after the drive.  This
exception makes str.split incompatible with
os.path.join that is expecting the \.

Spliting fully a path is useful when transforming
absolute paths to relative paths.  I could also be nice
to have a function to do that in os.path.


----------------------------------------------------------------------

>Comment By: Neal Norwitz (nnorwitz)
Date: 2007-03-15 23:01

Message:
Logged In: YES 
user_id=33168
Originator: NO

This is close enough to a patch so moving.  As a patch, this has more
chance of being resolved one way or the other.

----------------------------------------------------------------------

Comment By: Nicolas Fleury (nidoizo)
Date: 2004-05-25 06:13

Message:
Logged In: YES 
user_id=151545

I have attached a possible implementation (not tested on
Unix).  Feel free to ask if I can do more.

----------------------------------------------------------------------

Comment By: Nicolas Fleury (nidoizo)
Date: 2004-05-25 06:12

Message:
Logged In: YES 
user_id=151545

I have attached a possible implementation (not tested on
Unix).  Feel free to ask if I can do more.

----------------------------------------------------------------------

Comment By: Raymond Hettinger (rhettinger)
Date: 2004-05-20 23:17

Message:
Logged In: YES 
user_id=80475

Do you have a patch in mind?

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=894936&group_id=5470
_______________________________________________
Patches mailing list
Patches@python.org
http://mail.python.org/mailman/listinfo/patches

Reply via email to