Paths and URLs in Branch.base ?
Alexander Belchenko
bialix at ukr.net
Sun Nov 27 18:23:04 GMT 2005
John A Meinel пишет:
> I am planning on changing things so that all paths internally are
> forward slashes, and just at the interface layer do we deal with
> converting backwards slashes into forward ones.
I'm make attempt to switch all internal code to use '/'. It's not
simply. Because in code often used os.path.* functions that return path
with os.sep so you need every time after using this functions converts
path to forward-slash-form. It make some overhead for windows.
Currently in code used os.path.abspath, os.path.normpath,
os.path.realpath, os.path.join.
I think there is needs to use some class objects for path. That class
will encapsulate all needed operation with paths inside: conversion,
normalization, comparison, splitting, slicing and so on. This class
should hide '/' vs '\' problem inside itself. IMHO.
Alexander
More information about the bazaar
mailing list