I have a bit of code where I would like to know if the path has shell templates that seem to be something that will be defined in a central location. I found that glob.has_magic () provides this (it's just a regular expression: '[*?[]' ). But this method is not listed in the __all__ module __all__ and is not displayed in pydoc.
Should I just copy this regex into my code? (I would rather not do this)
Is there any risk to remove this method in future versions of python, since it does not appear in the documentation?
Chris source share