[PATCH][MERGE] Improvements to is_ignored

Jan Hudec bulb at ucw.cz
Thu Jan 12 18:39:59 GMT 2006


On Thu, Jan 12, 2006 at 08:59:44 -0600, John Arbash Meinel wrote:
> Jan Hudec wrote:
> > I am leaning towards using re.UNICODE, because one can always write
> > [A-Za-z0-9_], so the [[:alnum:]] one should mean unicode letters.
> 
> Except we are really only creating matches from file globs. Which means
> we don't have that level of granularity. All we really have is
> * - match a string
> ? - match any character
> [] - select from this list
> [!] - select not from this list
> 
> We might add
> ** - Match including directories, and change * to not match directories
> 
> So we don't have to worry specifically about re.UNICODE or not. (at
> least in these cases).

Some shells support named classes. Eg. zsh recognizes [:alnum:], [:alpha:],
[:ascii:], [:blank:], [:cntrl:], [:digit:], [:graph:], [:lower:], [:print:],
[:punct:], [:space:], [:upper:] and [:xdigit:]. Unfortunately python does not
seem to support named groups and only has escape sequences for handful of
them. Still we may want to support those it does some day. Or we could
understant RE:<regexp> for those who are sufficiently crazy/weird/... to want
it.

-- 
						 Jan 'Bulb' Hudec <bulb at ucw.cz>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060112/1638d647/attachment.pgp 


More information about the bazaar mailing list