How are the regex flags VERSION0(V0), VERSION(1), concurrent=true used ?

Create issue
Issue #254 closed
vishnuprakash created an issue

How are the regex flags VERSION0(V0), VERSION(1), concurrent=true used ?

Can you please provide with one example for each above flag on the pypi regex documentation.

Comments (2)

  1. Mark Amery

    concurrent=True isn’t a flag in the same sense as the others; you simply pass it as a keyword argument to any of the regex functions. This is stated explicitly in the docs now. (Not sure if it was less clear before?)

    VERSION0 and VERSION1 are both passes just like any other flag in this module or in re (i.e. you bitwise OR it with | into the value you pass to the flags= kwarg). It’s perhaps worth documenting that in general (especially since I figure there’s probably a significant minority of users of this package who aren’t already familiar with re), but there’s nothing special about these particular two flags as far as I know.

    Unless I’m missing something, I’m not sure that anything listed here actually needs deeper elucidation in the docs?

  2. Log in to comment